datastax / simulacron

Simulacron - An Apache Cassandra® Native Protocol Server Simulator
Apache License 2.0
32 stars 13 forks source link

Statement.checkStatementMatch is matching only on first value for some cases #113

Closed zdenotubel closed 3 years ago

zdenotubel commented 3 years ago

Currently in com.datastax.oss.simulacron.common.request.Statement.checkStatementMatch() when we are trying to match BATCH requests and the match happens based on query ID it will ever check only the first value. Given it is in for loop it looks like a bug.

com.datastax.oss.simulacron.common.request.Statement (line 82)

If you confirm it is a bug I can fix it and create pull request.