Put replication set check in test suite
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
When we add a new table, it needs to be linked by foreign key constraints to existing replicated tables or it needs to be added to one of the _SEED lists in database/
If this is not done, the staging rebuild explodes. This is a problem now we are only doing a full staging rebuild once per week.
We can do the same check in our test suite, catching this error at check in time.
# Setup replication
make _replicate LPCONFIG=
make[1]: Entering directory `/srv/staging.
LPCONFIG currently staging-setup
# Start the slon daemon for the master.
./slon_ctl.py --lag="0 seconds" start \
2010-08-28 19:02:17 INFO Starting node1_node slon daemon.
# Initialize the cluster and create replication sets.
./initialize.py
2010-08-28 19:02:22 ERROR public.
2010-08-28 19:02:22 CRITICAL 1 errors in replication set definitions.
make[1]: *** [_replicate] Error 1
make[1]: Leaving directory `/srv/staging.
make: *** [stagingsetup] Error 2
make: Leaving directory `/srv/staging.
Sat Aug 28 20:02:22 BST 2010 There was a problem running the stagingsetup target
Changed in launchpad-foundations: | |
status: | New → Triaged |
importance: | Undecided → Low |