KamoCRM

Bound the bulk folder index and stop it on structural failure

FixEmailService
Shipped
5 ஆகஸ்ட், 2026 அன்று 10:37 PM UTC
Author
Kamo
Commit
cb01025

Uncommitted work from a concurrent session, swept in so the tree is clean. The bulk index walked pages with totalPages set to Integer.MAX_VALUE and no ceiling, so a folder whose paging misbehaved would walk forever. It now stops after a fixed number of pages, caps the page size, and aborts once enough consecutive failures with no successes show that indexing is structurally broken rather than hitting the occasional bad message.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing