in harry-core/src/harry/model/QuiescentChecker.java [203:232]
public static void assertStaticRow(PartitionState partitionState,
List<ResultSetRow> actualRows,
Reconciler.RowState staticRow,
ResultSetRow actualRowState,
Query query,
SchemaSpec schemaSpec,
boolean isWildcardQuery)
{
if (!Arrays.equals(staticRow.vds, actualRowState.sds))
throw new ValidationException(partitionState.toString(schemaSpec),
toString(actualRows),
"Returned static row state doesn't match the one predicted by the model:" +
"\nExpected: %s (%s)" +
"\nActual: %s (%s)." +
"\nQuery: %s",
descriptorsToString(staticRow.vds), staticRow.toString(schemaSpec),
descriptorsToString(actualRowState.sds), actualRowState,
query.toSelectStatement());
if (!isWildcardQuery && !Arrays.equals(staticRow.lts, actualRowState.slts))
throw new ValidationException(partitionState.toString(schemaSpec),
toString(actualRows),
"Timestamps in the static row state don't match ones predicted by the model:" +
"\nExpected: %s (%s)" +
"\nActual: %s (%s)." +
"\nQuery: %s",
Arrays.toString(staticRow.lts), staticRow.toString(schemaSpec),
Arrays.toString(actualRowState.slts), actualRowState,
query.toSelectStatement());
}