@@ -340,19 +340,13 @@ public void readNewer(String channel, EventSink sink) {
340
340
*/
341
341
private Iterator <Column <ByteBuffer >> readManifestForChannel (final String channel , final boolean weak ) {
342
342
final ByteBuffer oldestSlab = weak ? _oldestSlab .getIfPresent (channel ) : null ;
343
- ConsistencyLevel consistency = ConsistencyLevel .CL_LOCAL_ONE ;//CL_LOCAL_QUORUM;;
344
-
343
+ final ConsistencyLevel consistency ;
345
344
RangeBuilder range = new RangeBuilder ().setLimit (50 );
346
345
if (oldestSlab != null ) {
347
346
range .setStart (oldestSlab );
347
+ consistency = ConsistencyLevel .CL_LOCAL_ONE ;
348
348
} else {
349
-
350
- try {
351
- String _sysConsistency = System .getProperty ("read-consistency" );
352
- consistency = ConsistencyLevel .valueOf (_sysConsistency );
353
- } catch (Exception e ){
354
- _log .debug ("encountered exception while parsing " , e );
355
- }
349
+ consistency = ConsistencyLevel .CL_LOCAL_QUORUM ;
356
350
}
357
351
358
352
final Iterator <Column <ByteBuffer >> manifestColumns = executePaginated (
@@ -405,7 +399,7 @@ private boolean readSlab(String channel, ByteBuffer slabId, SlabCursor cursor, b
405
399
// Using a lower consistency level could result in (a) duplicate events because we miss deletes and (b)
406
400
// incorrectly closing or deleting slabs when slabs look empty if we miss adds.
407
401
ColumnList <Integer > eventColumns = execute (
408
- _keyspace .prepareQuery (ColumnFamilies .SLAB , ConsistencyLevel .CL_LOCAL_ONE )
402
+ _keyspace .prepareQuery (ColumnFamilies .SLAB , ConsistencyLevel .CL_LOCAL_QUORUM )
409
403
.getKey (slabId )
410
404
.withColumnRange (start , Constants .OPEN_SLAB_MARKER , false , Integer .MAX_VALUE ));
411
405
0 commit comments