Actions
Bug #14392
closedIf a rule targets too many groups, policy generation fails
Status:
Released
Priority:
N/A
Assignee:
Category:
Performance and scalability
Target version:
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Very Small
Priority:
69
Name check:
Fix check:
Regression:
Description
With a very very large list of groups in a rules, the historization (part of policy generation) fails because we have a pkey constraint on table rulesgroupjoin (rules id + serialization of groups of rules)
However, this pk creates a btree, that cannot index long text - error is
ERROR: index row size 3528 exceeds maximum 2712 for index "rulesgroupjoin_pkey" ASTUCE : Values larger than 1/3 of a buffer page cannot be indexed. Consider a function index of an MD5 hash of the value, or use full text indexing.
dropping the pkey solves the issue
alter table rulesgroupjoin drop constraint rulesgroupjoin_pkey;
recreating an index is still necessary for correct perf of historization though:
CREATE INDEX rule_id_group on rulesgroupjoin (rulePkeyId);
Updated by Alexis Mousset almost 6 years ago
- Subject changed from if rules uses too numerous, policy generation fails because historisation fails to If rules uses too numerous, policy generation fails because historisation fails
Updated by Nicolas CHARLES almost 6 years ago
- Subject changed from If rules uses too numerous, policy generation fails because historisation fails to If rules uses too much groups, policy generation fails because historisation fails
Updated by François ARMAND almost 6 years ago
- Target version changed from 4.1.20 to 4.1.21
Updated by Nicolas CHARLES almost 6 years ago
- Status changed from New to In progress
Updated by Nicolas CHARLES almost 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/2150
Updated by François ARMAND almost 6 years ago
- Subject changed from If rules uses too much groups, policy generation fails because historisation fails to If rules uses too many groups, policy generation fails
- Description updated (diff)
Updated by Nicolas CHARLES almost 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|1bd78d339efc70822aa78079eba8dbb09d3a7e7a.
Updated by François ARMAND over 5 years ago
- Subject changed from If rules uses too many groups, policy generation fails to If a rule uses too many groups, policy generation fails
Updated by Vincent MEMBRÉ over 5 years ago
- Subject changed from If a rule uses too many groups, policy generation fails to If a rule targets too many groups, policy generation fails
- Priority changed from 70 to 69
Updated by Vincent MEMBRÉ over 5 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.1.21, 4.3.11 and 5.0.9 which were released today.
Actions