the number of items to keep in the failed queue can not be downsized. the problem is that we always only remove max. 1 item with the ltrim. the fix is to trim the list to exactly the size we want.
we also don't need to check the size of the failed queue before trimming, as we can simply ltrim all the time now.
Coverage increased (+0.2%) to 71.024% when pulling 48db99f0b39a07d13f4c7c4c171f75d4ba6dfdd3 on uberall:fail-queue-max-items-resize into b55a7c821534faf0083881974e566bc4bc588e11 on gresrun:master.
the number of items to keep in the failed queue can not be downsized. the problem is that we always only remove max. 1 item with the
ltrim
. the fix is to trim the list to exactly the size we want. we also don't need to check the size of the failed queue before trimming, as we can simplyltrim
all the time now.