Jira (PDB-3311) Improve error message on "index row size" exceptions

10 views
Skip to first unread message

Ryan Senior (JIRA)

unread,
Feb 27, 2017, 3:37:15 PM2/27/17
to puppe...@googlegroups.com
Ryan Senior created an issue
 
PuppetDB / Task PDB-3311
Improve error message on "index row size" exceptions
Issue Type: Task Task
Assignee: Unassigned
Created: 2017/02/27 12:36 PM
Labels: maintenance
Priority: Normal Normal
Reporter: Ryan Senior

The error the user current sees in below:

Retrying after attempt 1 for <node>, due to: org.postgresql.util.PSQLException: ERROR: index row size 3368 exceeds maximum 2712 for index "catalog_resources_type_title_idx"

A common issue is using a fact value as the title of a resource, but missing the brackets:

notify { "some text here: $facts['my_fact']": }

The Puppet docs talk about what will happen here. It assumes that the variable ends at the first character not allowed to be in a variable. So in this case it will take the entire set of facts and have them be the value of the title, followed by the ['my_fact'] part. This string is too long for postgres to index it's normal way and will fail. In this example, all the user needs to do wrap the expression in curly braces:

notify { "some text here: ${facts['my_fact']}": }

There are a couple of changes we should make to make diagnosing these issues easier. Today we retry this command over and over even though it will never successfully store. When we catch this exception we should give up on processing it so we don't clutter the long and waste resources. We should also include more information for this specific exception. Useful bits of information are:

  • File name of the offending resource
  • Line number of the offending resource
  • certname
  • A snippet of the "too long" title (i.e. 250 chars or something) to help users see what the content is
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Ryan Senior (JIRA)

unread,
Mar 8, 2017, 11:56:02 AM3/8/17
to puppe...@googlegroups.com
Ryan Senior updated an issue
Change By: Ryan Senior
Sprint: SE 2017-03-22

Ryan Senior (JIRA)

unread,
Mar 22, 2017, 7:22:02 PM3/22/17
to puppe...@googlegroups.com

Ryan Senior (JIRA)

unread,
Mar 22, 2017, 7:22:02 PM3/22/17
to puppe...@googlegroups.com

Adam Bottchen (JIRA)

unread,
Apr 12, 2017, 6:36:02 PM4/12/17
to puppe...@googlegroups.com
Adam Bottchen commented on Task PDB-3311
 
Re: Improve error message on "index row size" exceptions

Saw this on https://puppetlabs.zendesk.com/agent/tickets/25148. Having the certname, file, and line number would have been easier for the customer to self-diagnose.

Ryan Senior (JIRA)

unread,
Apr 13, 2017, 9:43:02 AM4/13/17
to puppe...@googlegroups.com
Ryan Senior commented on Task PDB-3311

Adam Bottchen Tim Purkerson You should add votes/watchers for this ticket, I think it'd be useful too.

Russell Mull (JIRA)

unread,
Jul 24, 2017, 12:31:03 PM7/24/17
to puppe...@googlegroups.com

Owen Rodabaugh (JIRA)

unread,
Nov 16, 2017, 7:31:03 PM11/16/17
to puppe...@googlegroups.com
Owen Rodabaugh updated an issue
Change By: Owen Rodabaugh
CS Priority: Normal
CS Impact: This error is not at all helpful in understanding the underlying cause(puppet code that isn't quite right). Troubleshooting it can be extremely difficult. 

It can result in performance issues if enough nodes are sending in catalogs with this resource issue. It can also cause exporting of resources to fail for any nodes which have this issue as the catalog never gets into PDB.
CS Severity: 3 - Serious
CS Business Value: 3 - $$$$
CS Frequency: 2 - 5-25% of Customers
This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Wyatt Alt (JIRA)

unread,
Nov 17, 2017, 10:19:03 AM11/17/17
to puppe...@googlegroups.com

Wyatt Alt (JIRA)

unread,
Dec 8, 2017, 11:25:04 AM12/8/17
to puppe...@googlegroups.com
Wyatt Alt updated an issue
 
Change By: Wyatt Alt
Sprint: DISC Data Platform  2017-12-13

Wyatt Alt (JIRA)

unread,
Dec 8, 2017, 11:25:05 AM12/8/17
to puppe...@googlegroups.com
Wyatt Alt updated an issue
Change By: Wyatt Alt
Sprint: DISC 2017-12-13

Jeff Yarnell (JIRA)

unread,
Dec 13, 2017, 5:43:04 PM12/13/17
to puppe...@googlegroups.com
Jeff Yarnell updated an issue
Change By: Jeff Yarnell
Sprint: Data Platform  Next Sprint, Data Platform  2017-12-13

Jeff Yarnell (JIRA)

unread,
Jan 3, 2018, 5:15:06 PM1/3/18
to puppe...@googlegroups.com
Jeff Yarnell updated an issue
Change By: Jeff Yarnell
Sprint: Hopper/Triage, Data Platform 2018-01-03, Data Platform 2017-12-13

Jeff Yarnell (JIRA)

unread,
Jan 3, 2018, 5:16:05 PM1/3/18
to puppe...@googlegroups.com
Jeff Yarnell updated an issue
Change By: Jeff Yarnell
Sprint: Hopper/Triage,  Data Platform 2018-01-03, Data Platform 2017-12-13 , Data Platform 2018-01-17

Jeff Yarnell (JIRA)

unread,
Jan 17, 2018, 5:07:04 PM1/17/18
to puppe...@googlegroups.com
Jeff Yarnell updated an issue
Change By: Jeff Yarnell
Sprint: Data Platform 2018-01-03, Data Platform 2017-12-13, Data Platform 2018-01-17 , Data Platform 2018-01-31

Jeff Yarnell (JIRA)

unread,
Jan 17, 2018, 5:34:03 PM1/17/18
to puppe...@googlegroups.com

Rob Browning (JIRA)

unread,
Apr 17, 2019, 3:16:04 PM4/17/19
to puppe...@googlegroups.com
Rob Browning assigned an issue to Rob Browning
Change By: Rob Browning
Assignee: Rob Browning
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Rob Browning (JIRA)

unread,
Apr 17, 2019, 3:17:04 PM4/17/19
to puppe...@googlegroups.com

Rob Browning (Jira)

unread,
May 11, 2020, 12:32:03 PM5/11/20
to puppe...@googlegroups.com
Rob Browning updated an issue
Change By: Rob Browning
Labels: maintenance pdb/suspended
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

zendesk.jira (Jira)

unread,
Nov 3, 2020, 5:38:03 AM11/3/20
to puppe...@googlegroups.com
zendesk.jira updated an issue
Change By: zendesk.jira
Labels: jira_escalated maintenance

zendesk.jira (Jira)

unread,
Nov 3, 2020, 5:38:04 AM11/3/20
to puppe...@googlegroups.com
zendesk.jira updated an issue
Change By: zendesk.jira
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 41774

Rob Browning (Jira)

unread,
Apr 7, 2021, 12:24:03 PM4/7/21
to puppe...@googlegroups.com
Rob Browning updated an issue
Change By: Rob Browning
Sprint: Data Platform 2018-01-03, Data Platform 2017-12-13, Data Platform 2018-01-17 , HAHA/Grooming
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Zachary Kent (Jira)

unread,
Apr 7, 2021, 2:39:03 PM4/7/21
to puppe...@googlegroups.com
Zachary Kent updated an issue
Change By: Zachary Kent
Sprint: Data Platform 2018-01-03, Data Platform 2017-12-13, Data Platform 2018-01-17, HAHA/Grooming HA 2020-04-21

Zachary Kent (Jira)

unread,
May 21, 2021, 4:05:02 PM5/21/21
to puppe...@googlegroups.com
Zachary Kent updated an issue
Change By: Zachary Kent
Fix Version/s: PDB 7.4.0

Austin Blatt (Jira)

unread,
Jun 17, 2021, 5:08:01 PM6/17/21
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Fix Version/s: PDB 6.16.2

Austin Blatt (Jira)

unread,
Jun 17, 2021, 5:15:02 PM6/17/21
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Release Notes: Not Needed
Reply all
Reply to author
Forward
0 new messages