Thursday, July 14, 2022

[389-users] Re: Retro Changelog trimming not working

On 13-07-2022 18:49, Thierry Bordaz wrote:
On 7/13/22 5:08 PM, Kees Bakker wrote:
On 13-07-2022 16:31, Thierry Bordaz wrote:
On 7/13/22 3:18 PM, Kees Bakker wrote:
On 13-07-2022 13:39, Kees Bakker wrote:
On 13-07-2022 13:01, Kees Bakker wrote:
Hi,

[...]
In other words, with 1.4.3.28 I don't get to see the message with first_time and cur_time. I'm
quite puzzled how that can happen. The code is like this (stripped a bit):
    if (!ts.ts_s_trimming) {
        int must_trim = 0;
        /* See if we need to trim */
        /* Has enough time elapsed since our last check? */
        if (cur_time - ts.ts_s_last_trim >= (ts.ts_c_max_age)) {


I agree with you, the use of ts_c_max_age is wrong. The trimming mechanism should run periodically, whatever the maxage of the records. Here we should check an interval of time, (each hour or 10 min...). Would you please open a ticket for that ?


Done.
https://github.com/389ds/389-ds-base/issues/5368
--
Kees

No comments:

Post a Comment