Jira Link: DB-2179
Right now, our C++ tests are done in a generic way by manually sending protobufs; see src/yb/client/serializable-txn-test.cc for instance. This is fairly unintuitive to code and might miss query layer-specific problems (e.g. #1532 which affects SQL but not CQL). libpq offers a good way to do C++ tests by sending SQL command strings instead. I have nearly finished counter transaction tests written using libpq with variants at the SERIALIZABLE and REPEATABLE READ isolation levels. After that, it might be good to start adding similar libpq tests of other things we want to check.
Jira Link: DB-2179 Right now, our C++ tests are done in a generic way by manually sending protobufs; see src/yb/client/serializable-txn-test.cc for instance. This is fairly unintuitive to code and might miss query layer-specific problems (e.g. #1532 which affects SQL but not CQL). libpq offers a good way to do C++ tests by sending SQL command strings instead. I have nearly finished counter transaction tests written using libpq with variants at the
SERIALIZABLE
andREPEATABLE READ
isolation levels. After that, it might be good to start adding similar libpq tests of other things we want to check.