Jira (PDB-4975) PDB will not start when sync is configured and garbage collection is disabled

26 views
Skip to first unread message

Jarret Lavallee (Jira)

unread,
Dec 3, 2020, 6:36:03 PM12/3/20
to puppe...@googlegroups.com
Jarret Lavallee created an issue
 
PuppetDB / Bug PDB-4975
PDB will not start when sync is configured and garbage collection is disabled
Issue Type: Bug Bug
Affects Versions: PDB 6.13.1
Assignee: Unassigned
Components: PuppetDB
Created: 2020/12/03 3:35 PM
Priority: Normal Normal
Reporter: Jarret Lavallee

PuppetDB hangs indefinately when starting in 6.13.1 when sync is enabled and garbage collection is disabled. This looks to have been caused by https://tickets.puppetlabs.com/browse/PDB-4938.

PuppetDB stops logging and stays in maintenance mode. The last logs output are as follows.

2020-12-03T13:03:26.752-06:00 INFO [c.z.h.HikariDataSource] PDBReadPool - Start completed.
2020-12-03T13:03:26.850-06:00 INFO [c.z.h.HikariDataSource] PDBWritePool - Starting...
2020-12-03T13:03:26.851-06:00 INFO [c.z.h.HikariDataSource] PDBWritePool - Start completed.

The workaround is to enable garbage collection or disable sync. We enabled garbage collection by setting gc-interval = 20160 in database.ini

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

zendesk.jira (Jira)

unread,
Dec 3, 2020, 6:37:04 PM12/3/20
to puppe...@googlegroups.com
zendesk.jira updated an issue
Change By: zendesk.jira
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 42226

zendesk.jira (Jira)

unread,
Dec 3, 2020, 6:38:04 PM12/3/20
to puppe...@googlegroups.com

Austin Blatt (Jira)

unread,
Dec 3, 2020, 6:40:04 PM12/3/20
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
This only affects {{pe-puppetdb}}.

PuppetDB hangs indefinately when starting in 6.13.1 when sync is enabled and garbage collection is disabled. This looks to have been caused by https://tickets.puppetlabs.com/browse/PDB-4938. In that ticket, in order to prevent deadlocks between initial garbage collection and initial sync on startup, we serialized the initial garbage collection and sync with a promise. When the initial garbage collection completes it delivers on a promise and the initial sync can start. If gc is disabled, the promise is never delivered and sync can never run. The startup process hangs with puppetdb in maintenance mode and nothing more in the logs.

PuppetDB stops logging and stays in maintenance mode. The last logs output are as follows.

{code}

2020-12-03T13:03:26.752-06:00 INFO [c.z.h.HikariDataSource] PDBReadPool - Start completed.
2020-12-03T13:03:26.850-06:00 INFO [c.z.h.HikariDataSource] PDBWritePool - Starting...
2020-12-03T13:03:26.851-06:00 INFO [c.z.h.HikariDataSource] PDBWritePool - Start completed.
{code}


The workaround is to enable garbage collection or disable sync. We enabled garbage collection by setting {{gc-interval = 20160}} in {{database.ini}}

Austin Blatt (Jira)

unread,
Dec 3, 2020, 6:41:02 PM12/3/20
to puppe...@googlegroups.com

Austin Blatt (Jira)

unread,
Dec 3, 2020, 6:42:03 PM12/3/20
to puppe...@googlegroups.com

Jarret Lavallee (Jira)

unread,
Dec 9, 2020, 10:11:03 AM12/9/20
to puppe...@googlegroups.com

Austin Blatt (Jira)

unread,
Dec 9, 2020, 12:25:05 PM12/9/20
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Fix Version/s: PDB 7.0.1
Fix Version/s: PDB 6.14.0

Austin Blatt (Jira)

unread,
Dec 9, 2020, 12:26:02 PM12/9/20
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Release Notes: Bug Fix
Release Notes Summary: PuppetDB will start if gc-interval is set to 0 in an HA install of PE

Austin Blatt (Jira)

unread,
Feb 5, 2021, 12:31:02 PM2/5/21
to puppe...@googlegroups.com
Austin Blatt updated an issue
Change By: Austin Blatt
Fix Version/s: PDB 7.0.1
Fix Version/s: PDB 7.1.0

Austin Blatt (Jira)

unread,
Feb 9, 2021, 12:31:04 PM2/9/21
to puppe...@googlegroups.com

Austin Blatt (Jira)

unread,
Feb 9, 2021, 12:31:04 PM2/9/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages