Re: Weird glitches for N messages sent to list simultaneously - Mailing list pgsql-www

From Alvaro Herrera
Subject Re: Weird glitches for N messages sent to list simultaneously
Date
Msg-id 20160606232543.GA435900@alvherre.pgsql
Whole thread Raw
In response to Re: Weird glitches for N messages sent to list simultaneously  (Stephen Frost <sfrost@snowman.net>)
List pgsql-www
Stephen Frost wrote:

> What it looks like is that, when a message comes in, mj2 does a queue
> run, which will happily process everything in the queue that it sees
> when it starts up, but if messages come in while the queue is being run
> they seem to get missed until the next queue run, which isn't happening
> til the next email arrives.
> 
> I've got basically no idea why it isn't immediately re-running the
> queue when it finishes, or why there isn't some other process to kick it
> when there's messages in the queue to be processed..
> 
> Looks like Alvaro is taking a look at it also, perhaps he'll have more
> insight into what's happening inside mj2.

Thanks for the vote of confidence, but I don't actually know what is
happening inside Mj2 because the trace logs are essentially useless.
The theory of the race condition sounds like a good guess.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-www by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Weird glitches for N messages sent to list simultaneously
Next
From: Magnus Hagander
Date:
Subject: Re: Symlink redirection breaks FTP site re-organisation