9 Commits

Author SHA1 Message Date
Erik Nordström
f071f89ade Fix issues in the dist_chunk test
This change fixes issues in the shared `dist_chunk` test that caused
flakiness. Since the test shares a database and state with other tests
running in parallel, it should modify the database (e.g., creating new
tables and chunks) while the test runs. Such modifications will cause
non-deterministic behavior that varies depending on the order the
tests are run in.

To fix this issue, all the table creations have been moved into the
shared setup script and the test itself has been made less dependent
on hard-coded IDs and chunk names. One of the tables used in the has
been changed to use space-partitioning to make chunk placement on
nodes more predictible.
2021-07-29 16:53:12 +03:00
Nikhil
3651e6e102 Move related tests into dist_chunk
The "chunk_drop_replica" test is part of the overall chunk copy/move
functionality. All related tests will go into this dist_chunk test.

Also, fix the earlier flakiness in dist_chunk test by moving the
compress_chunk calls into the shared setup
2021-07-29 16:53:12 +03:00
Ruslan Fomkin
404f1cdbad Create chunk table from access node
Creates a table for chunk replica on the given data node. The table
gets the same schema and name as the chunk. The created chunk replica
table is not added into metadata on the access node or data node.

The primary goal is to use it during copy/move chunk.
2021-07-29 16:53:12 +03:00
Sven Klemm
7b67f72f86 Move timestamp_limits and with_clause_parser test
Move the timestamp_limits and with_clause_parser test to
regresscheck-shared since those tests don't need a private
database incurring less overhead to run those tests.
Also add missing ORDER BY clauses to some of the queries
in timestamp_limits to make the output more stable.
2021-06-23 14:51:09 +02:00
Ruslan Fomkin
3448bcf2af Move gapfill tests into using shared database 2020-12-15 13:16:53 +01:00
Sven Klemm
02d715f216 Add distributed hypertable to regresscheck-shared
This patch sets up a distributed hypertable in the regresscheck-shared
environment to enable running distributed tests.
2020-08-12 21:46:31 +02:00
Sven Klemm
68ba6e073c Add regresscheck-shared sql files to license check
This adds the directories used by regresscheck-shared to the license
check and adds a license where it is currently missing.
2020-07-03 13:00:36 +02:00
Ruslan Fomkin
7a0d6e7c23 Fix compression order in a test
Add missing ORDER BY clause to sort chunks for compression in
deterministic order for the constraint exclusion test.
2020-04-14 23:12:15 +02:00
Sven Klemm
819414df02 Add test infrastructure with shared tables
This PR adds test infrastructure for running tests with shared tables.
This allows having hypertables with specific configurations usable for
all tests. Since these tests also don't require creating a new database
for each test case some of the overhead of the normal tests is removed.
While this will lead to much faster query tests some tests will still
require their own database to test things, but most queres could be moved
to this infrastructure to improve test coverage and speed them up.
2019-10-29 19:02:58 -04:00