Skip to content
Snippets Groups Projects
Commit f4115528 authored by Kamil Braun's avatar Kamil Braun
Browse files

test: pylib: fix `read_barrier` implementation

The previous implementation didn't actually do a read barrier, because
the statement failed on an early prepare/validate step which happened
before read barrier was even performed.

Change it to a statement which does not fail and doesn't perform any
schema change but requires a read barrier.

This breaks one test which uses `RandomTables.verify_schema()` when only
one node is alive, but `verify_schema` performs a read barrier. Unbreak
it by skipping the read barrier in this case (it makes sense in this
particular test).

Closes #13933

(cherry picked from commit 64dc76db)
Backport note: skipped the test_snapshot.py change, as the test doesn't
exist on this branch.
parent 9c941aba
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment