Closed (fixed)
Project:
Entity Usage
Version:
5.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2026 at 15:42 UTC
Updated:
29 Sep 2026 at 09:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
csakiistvanComment #4
csakiistvan✅ Tested and works — replayed the batch worker loop on 8.x-2.x with a script (each chunk:
enableBulkInsert(),registerUsage(),bulkInsert(), exception caught), where chunk 2 hits a duplicate key and chunk 3 holds 200 valid rows only. Before the MR chunk 3 failed on chunk 2's row with a 156296-character exception message and left 3 rows inentity_usage; after applying the MR and runningddev drush cr, chunk 2 still fails on its real duplicate but chunk 3 succeeds and the table holds 203 rows, andlogBulkException()cuts a 200000-character message to 4134 characters. A fulldrush entity-usage:recreategives the same result patched and unpatched.Comment #7
alexpott@julien tekrane - nice find and I agree with the solution.
I'm adding tests and working on a 5.x version too.
Comment #8
alexpottComment #11
alexpott