Actions
Bug #22129
closedId to start looking for report json should not be zero but highest id causing abysmal performance on postgresql
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No
Description
Since we don't update the starting value when we don't get any report_json, next run will use the same id to check for new reports, but we should use store the highest id in databse instead
Updated by Vincent MEMBRÉ almost 2 years ago
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ almost 2 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/4582
Updated by Vincent MEMBRÉ almost 2 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|bb929d7a4c98d7e166fc917f01c2874d297cc648.
Updated by François ARMAND almost 2 years ago
- Fix check changed from To do to Error - Blocking
The current implementation makes the counter update once and then it never get updated again:
# rudder is shut down rudder=> select * from rudderproperties ; name | value ---------------------+------- reportHandlerLastId | 22287 reportLoggerLastId | 23032 (2 rows) # rudder starts ... rudder=> select * from rudderproperties ; name | value ---------------------+------- reportLoggerLastId | 23032 reportHandlerLastId | 23032 (2 rows) # a run happened rudder=> select * from rudderproperties ; name | value ---------------------+------- reportHandlerLastId | 23032 reportLoggerLastId | 23122 (2 rows) # an other run happens... rudder=> select * from rudderproperties ; name | value ---------------------+------- reportLoggerLastId | 23371 reportHandlerLastId | 23032 (2 rows)
Updated by François ARMAND almost 2 years ago
- Fix check changed from Error - Blocking to Checked
Updated by Vincent MEMBRÉ almost 2 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.2.2 which was released today.
Updated by François ARMAND almost 2 years ago
- Subject changed from Id to start looking for report json should not be zero but highest id. to Id to start looking for report json should not be zero but highest id causing abysmal performance on postgres
Updated by François ARMAND almost 2 years ago
- Subject changed from Id to start looking for report json should not be zero but highest id causing abysmal performance on postgres to Id to start looking for report json should not be zero but highest id causing abysmal performance on postgresql
Actions