Needed to be done in order to be able to control serial consistency and regular consistency levels separately.
For instance, it was not possible to set serial consistency to LOCAL_SERIAL and regular consistency to QUORUM.
We have following code handling it all over the place:
if (cl.isSerialConsistency()) statement.setSerialConsistencyLevel(JavaDriverClient.from(cl)); else statement.setConsistencyLevel(JavaDriverClient.from(cl));
With the fix it beacome possible to set serial and regular consistency separately, also it is possible to specify consistency in yaml file per query, in case you want to stress with dirrefent consistency levels, in following manner:
cql: update blogposts set lwt_ind = 10000001 where domain = ? and published_date = ? if lwt_ind < 0