Skip to content

Commit

Permalink
updated to CLTWO
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshsbbv committed Mar 5, 2024
1 parent 3a17878 commit e59d42b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ private Iterator<Column<ByteBuffer>> readManifestForChannel(final String channel
range.setStart(oldestSlab);
consistency = ConsistencyLevel.CL_LOCAL_ONE;
} else {
consistency = ConsistencyLevel.CL_LOCAL_QUORUM;
consistency = ConsistencyLevel.CL_TWO;
}

final Iterator<Column<ByteBuffer>> manifestColumns = executePaginated(
Expand Down Expand Up @@ -399,7 +399,7 @@ private boolean readSlab(String channel, ByteBuffer slabId, SlabCursor cursor, b
// Using a lower consistency level could result in (a) duplicate events because we miss deletes and (b)
// incorrectly closing or deleting slabs when slabs look empty if we miss adds.
ColumnList<Integer> eventColumns = execute(
_keyspace.prepareQuery(ColumnFamilies.SLAB, ConsistencyLevel.CL_LOCAL_QUORUM)
_keyspace.prepareQuery(ColumnFamilies.SLAB, ConsistencyLevel.CL_TWO)
.getKey(slabId)
.withColumnRange(start, Constants.OPEN_SLAB_MARKER, false, Integer.MAX_VALUE));

Expand Down

0 comments on commit e59d42b

Please sign in to comment.