Chris Browne cbbrowne at lists.slony.info
Tue Apr 28 14:48:21 PDT 2009
Update of /home/cvsd/slony1/slony1-engine/tests/testdatestyles
In directory main.slony.info:/tmp/cvs-serv6415/testdatestyles

Modified Files:
      Tag: REL_2_0_STABLE
	generate_dml.sh 
Log Message:
Revise tests to NOT use poll_cluster to "wait until everything has
propagated according to sl_status" - instead, we use SYNC/WAIT FOR
EVENT, which submits an event against the origin, and then waits until
that specific event has propagated.

This means we're testing WAIT FOR EVENT a lot more stringently, and
allows tests to run a lot quicker in cases where it takes a while
for the nodes to decide they are instantaneously "in sync"


Index: generate_dml.sh
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/tests/testdatestyles/generate_dml.sh,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -C2 -d -r1.3 -r1.3.2.1
*** generate_dml.sh	27 Oct 2006 14:45:51 -0000	1.3
--- generate_dml.sh	28 Apr 2009 21:48:19 -0000	1.3.2.1
***************
*** 85,89 ****
    eval port=\$PORT${originnode}
    generate_initdata
-   launch_poll
    status "loading data from $mktmp/generate.data"
    $pgbindir/psql -h $host -p $port -d $db -U $user < $mktmp/generate.data 1> $mktmp/initdata.log 2> $mktmp/initdata.log
--- 85,88 ----
***************
*** 91,94 ****
--- 90,94 ----
      warn 3 "do_initdata failed, see $mktmp/initdata.log for details"
    fi 
+   wait_for_catchup
    status "done"
  }



More information about the Slony1-commit mailing list