Jira (PDB-4901) Only gc the oldest report/event partition in the normal case

5 views
Skip to first unread message

Rob Browning (Jira)

unread,
Sep 24, 2020, 6:36:04 PM9/24/20
to puppe...@googlegroups.com
Rob Browning created an issue
 
PuppetDB / Improvement PDB-4901
Only gc the oldest report/event partition in the normal case
Issue Type: Improvement Improvement
Assignee: Rob Browning
Created: 2020/09/24 3:35 PM
Priority: Normal Normal
Reporter: Rob Browning

Only drop the oldest report or events partition during the normal, periodic gc, when there's more than one candidate. This is intended to decrease the length of time we might block pdb operations since with the current arrangement, the drop will attempt to acquire an exclusive lock on the entire table (i.e. reports, not just the partition), and so will block all subsequent access to that table, until it finishes.

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

Rob Browning (Jira)

unread,
Oct 19, 2020, 6:44:02 PM10/19/20
to puppe...@googlegroups.com

Rob Browning (Jira)

unread,
Oct 19, 2020, 6:45:03 PM10/19/20
to puppe...@googlegroups.com
Rob Browning updated an issue
Change By: Rob Browning
Release Notes: Enhancement
Release Notes Summary: PuppetDB will only drop the oldest report or events partition during the normal, periodic gc when there's more than one candidate. This is intended to decrease the length of time we might block pdb operations since with the current arrangement, the drop will attempt to acquire an exclusive lock on the entire table (i.e. reports, not just the partition), and so will block all subsequent access to that table, until it finishes.
Reply all
Reply to author
Forward
0 new messages