提交 06afd1cd 编写于 作者: K Kalen Krempely 提交者: Kalen Krempely

gprecoverseg: add multi-host tablespace test

Skip gprecoverseg tablespace tests until tablespaces successfully work
with pg_rewind.
Co-authored-by: NMark Sliva <msliva@pivotal.io>
(cherry picked from commit aae20c86)
上级 1e5ad514
......@@ -227,3 +227,41 @@ Feature: gprecoverseg tests
And the segments are synchronized
# validate the the new segment has the correct setting by getting admin connection to that segment
Then the saved primary segment reports the same value for sql "show data_checksums" db "template1" as was saved
@skip # tablespaces are being reworked and currently do not work with pg_rewind
@concourse_cluster
Scenario: incremental recovery works with tablespaces on a multi-host environment
Given the database is running
And a tablespace is created with data
And user stops all primary processes
And user can start transactions
When the user runs "gprecoverseg -a"
Then gprecoverseg should return a return code of 0
And the segments are synchronized
And the tablespace is valid
Given another tablespace is created with data
When the user runs "gprecoverseg -ra"
Then gprecoverseg should return a return code of 0
And the segments are synchronized
And the tablespace is valid
And the other tablespace is valid
@skip # tablespaces are being reworked and currently do not work with pg_rewind
@concourse_cluster
Scenario: full recovery works with tablespaces on a multi-host environment
Given the database is running
And a tablespace is created with data
And user stops all primary processes
And user can start transactions
When the user runs "gprecoverseg -a -F"
Then gprecoverseg should return a return code of 0
And the segments are synchronized
And the tablespace is valid
Given another tablespace is created with data
When the user runs "gprecoverseg -ra"
Then gprecoverseg should return a return code of 0
And the segments are synchronized
And the tablespace is valid
And the other tablespace is valid
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册