Bug 223 - slonik can wait for a node it just uninstalled
Summary: slonik can wait for a node it just uninstalled
Status: RESOLVED FIXED
Alias: None
Product: Slony-I
Classification: Unclassified
Component: slonik (show other bugs)
Version: devel
Hardware: PC Linux
: low enhancement
Assignee: Steve Singer
URL:
Depends on:
Blocks:
 
Reported: 2011-06-21 06:00 UTC by Steve Singer
Modified: 2011-07-07 14:34 UTC (History)
1 user (show)

See Also:


Attachments
fix for bug 223 (1.43 KB, patch)
2011-07-04 10:27 UTC, Steve Singer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Singer 2011-06-21 06:00:22 UTC
Create a slonik cluster with a few nodes (say 1,2,3).

The perform an uninstall node on 1 and 2.

Start slonik back up and init cluster(id=1);  and store node(id=2);

Start slonik up again.

uninstall node(id=3);
subscribe set(id=1, provider=1,receiver=3);

slonik will print stuff like:
'waiting for events  (3,5000000077) only at (3,0) to be confirmed on node 1'

When slonik sees an uninstall node it needs to erase the remembered 'last event' from that node.

This was observed with 2.1.0 beta 2
Comment 1 Steve Singer 2011-07-04 10:27:19 UTC
Created attachment 112 [details]
fix for bug 223

Fix for bug #223
Comment 2 Steve Singer 2011-07-04 10:29:06 UTC
Please arrange a review for this patch.
Attached or available at https://github.com/ssinger/slony1-engine/tree/bug223
Comment 3 Jan Wieck 2011-07-07 07:19:08 UTC
Looks like the right solution to me.