Re: duplicate key error, thread safety problem?
Hannu Krosing <
hannu@...>
2006-02-01 08:02:17 GMT
Ühel kenal päeval, T, 2006-01-31 kell 20:14, kirjutas Michael Crozier:
> Hi,
>
> I encountered some duplicate key errors in my slony cluster today. Clearly,
> an event/log was replicated more than once.
>
> I believe that this may be due to "the Solaris threading issue", but I can't
> find enough clear information about this problem to determine whether I
> failed to avoid it in the build of Postgresql and Slony.
>
> Detais:
> Solaris 9 sparc, 7.3.13, compiled with --thread-safety
> Solaris 10 opteron, 8.0.6, compiled with --thread-safety
> All the slon's were running from the 8.0.6 instance/build.
>
> I was able to manually remove the offending rows and get the slon's processing
> events again, but I'm worried about a few things:
>
> 1. How is my data? Do I need to re-sync?
Possible. Check your data :)
> 2. How can I prove that this problem is related to threading issue?
I don't think it is related to threading issue.
If you have had more than 2G (_xxx_cluster_.sl_log_1.log_xid > 2G)
transactions executed during the replication, without reindexing
sl_log_1, then indexes on xxid starts misbehaving, resulting both in
duplicate key errors *and* some events not being replicated (i.e. data
(Continue reading)