pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: spencer@whiteskycommunications.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14295: Hot standby crash during tsvector rebuild
Date: Fri, 26 Aug 2016 07:26:58 +0000
Message-ID: <20160826072658.15676.7628@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14295
Logged by:          Spencer Thomason
Email address:      spencer@whiteskycommunications.com
PostgreSQL version: 9.4.8
Operating system:   Solaris 11.3 SPARC
Description:        

Hello,
We have a fax server application that performs OCR and uses full text
search.  We have a nightly cron job that purges the stored text for old
records to save space.  The table contains approx 60K rows and the job
deletes the text from around 100-150 records each night and then updates a
tsvector column.  This database is replicated to 4 hot standby slaves, 2 in
the same data center and 2 in a remote location.  We have observed a few
crashes of all the hot standby server when this cron job runs.  All replicas
crash at the same time with the following log entries below.  The master
appears unaffected and continues to function normally.  Unfortunately I'm
unable to reproduce at will but I have observed this with 9.5.3 then we
downgraded to 9.4.8 and the crash just happened again.

Logs from one of the replicas is below:
2016-08-26 06:01:50 UTC FATAL:  unexpected GIN leaf action: 0
2016-08-26 06:01:50 UTC CONTEXT:  xlog redo Insert item, node:
1663/16387/33108 blkno: 6622 isdata: T isleaf: T 3 segments: 2 (add 0 items)
0 unknown action 0 ???
2016-08-26 06:01:50 UTC LOG:  startup process (PID 19593) exited with exit
code 1
2016-08-26 06:01:50 UTC LOG:  terminating any other active server
processes
2016-08-26 06:01:50 UTC WARNING:  terminating connection because of crash of
another server process

The table schema is:
    Column    |           Type           | Modifiers 
--------------+--------------------------+-----------
 id           | uuid                     | not null
 fax_did_id   | character varying(64)    | not null
 file_path    | character varying(255)   | 
 time_stamp   | timestamp with time zone | not null
 remote_id    | character varying(60)    | 
 caller_id    | character varying(40)    | 
 num_pages    | integer                  | 
 ocr_text     | text                     | 
 search_index | tsvector                 | 
 account_id   | integer                  | 
Indexes:
    "fax_rxfax_pkey" PRIMARY KEY, btree (id)
    "fax_rxfax_account_id" btree (account_id)
    "fax_rxfax_fax_did_id" btree (fax_did_id)
    "fax_rxfax_fax_did_id_like" btree (fax_did_id varchar_pattern_ops)
    "fax_rxfax_search_index" gin (search_index)
Foreign-key constraints:
    "fax_rxfax_account_id_fkey" FOREIGN KEY (account_id) REFERENCES
accounts(id) DEFERRABLE INITIALLY DEFERRED
    "fax_rxfax_fax_did_id_fkey" FOREIGN KEY (fax_did_id) REFERENCES
dids(number) DEFERRABLE INITIALLY DEFERRED

Please let me know if there is any other info I can provide.

Thanks,
Spencer



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


view thread (11+ messages)  latest in thread

Message-ID: <20160826072658.15676.7628@wrigleys.postgresql.org>
Permalink:  ../20160826072658.15676.7628@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160826072658.15676.7628@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: spencer@whiteskycommunications.com
  Subject: Re: BUG #14295: Hot standby crash during tsvector rebuild
  In-Reply-To: <20160826072658.15676.7628@wrigleys.postgresql.org>
  References: <20160826072658.15676.7628@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox