[GH-ISSUE #242] Error: DEV: Applied tree fixes did not change 88 pending operation(s) failing to execute #110

Closed
opened 2026-05-23 08:31:01 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @darkjedi9922 on GitHub (Aug 18, 2023).
Original GitHub issue: https://github.com/appy-one/acebase/issues/242

Originally assigned to: @appy-one on GitHub.

Hello again, thank you for the previous fix (issue #239). Now I am getting a new error with following steps:

  1. Add a "large" dataset (e.g. 110 records)
  2. Remove these records with a query
  3. Add the same dataset again. This fails with error:
Error: DEV: Applied tree fixes did not change 88 pending operation(s) failing to execute. Debug this, check fixHistory!
    at processOperations (S:\Projects\debug\acebase\dist\cjs\storage\binary\index.js:3328:23)
    at processOperations (S:\Projects\debug\acebase\dist\cjs\storage\binary\index.js:3396:24)
    at async _mergeNode (S:\Projects\debug\acebase\dist\cjs\storage\binary\index.js:3399:25)
    at async Object.write [as _customWriteFunction] (S:\Projects\debug\acebase\dist\cjs\storage\binary\index.js:1945:28)
    at async AceBaseStorage._updateNode (S:\Projects\debug\acebase\dist\cjs\storage\binary\index.js:1957:26)
    at async AceBaseStorage.updateNode (S:\Projects\debug\acebase\dist\cjs\storage\binary\index.js:1891:27)
    at async LocalApi.update (S:\Projects\debug\acebase\dist\cjs\api-local.js:70:24)
    at async DataReference.update (S:\Projects\debug\acebase\node_modules\acebase-core\dist\cjs\data-reference.js:232:36)
    at async S:\Projects\debug\acebase\spec\custom-test.js:25:5

Node.js v18.15.0

There are also another messages before the final error, like:

[custom-test] Could not update tree for "/table": Cannot read properties of undefined (reading 'entries'), undefined
[custom-test] Could not update tree for "/table" (retry 1): Cannot read properties of undefined (reading 'entries'), undefined
[custom-test] Could not update tree for "/table" (retry 22): Failed to rebuild leaf: Tx failed, rolled back. See .info for details, rebuild-leaf-failed,tx-failed

The test where the problem is reproduced: https://github.com/darkjedi9922/acebase-bug-reproduce/blob/bug-reproduce-2/spec/custom-test.js

Originally created by @darkjedi9922 on GitHub (Aug 18, 2023). Original GitHub issue: https://github.com/appy-one/acebase/issues/242 Originally assigned to: @appy-one on GitHub. Hello again, thank you for the previous fix (issue #239). Now I am getting a new error with following steps: 1. Add a "large" dataset (e.g. 110 records) 2. Remove these records with a query 3. Add the same dataset again. This fails with error: ``` Error: DEV: Applied tree fixes did not change 88 pending operation(s) failing to execute. Debug this, check fixHistory! at processOperations (S:\Projects\debug\acebase\dist\cjs\storage\binary\index.js:3328:23) at processOperations (S:\Projects\debug\acebase\dist\cjs\storage\binary\index.js:3396:24) at async _mergeNode (S:\Projects\debug\acebase\dist\cjs\storage\binary\index.js:3399:25) at async Object.write [as _customWriteFunction] (S:\Projects\debug\acebase\dist\cjs\storage\binary\index.js:1945:28) at async AceBaseStorage._updateNode (S:\Projects\debug\acebase\dist\cjs\storage\binary\index.js:1957:26) at async AceBaseStorage.updateNode (S:\Projects\debug\acebase\dist\cjs\storage\binary\index.js:1891:27) at async LocalApi.update (S:\Projects\debug\acebase\dist\cjs\api-local.js:70:24) at async DataReference.update (S:\Projects\debug\acebase\node_modules\acebase-core\dist\cjs\data-reference.js:232:36) at async S:\Projects\debug\acebase\spec\custom-test.js:25:5 Node.js v18.15.0 ``` There are also another messages before the final error, like: ``` [custom-test] Could not update tree for "/table": Cannot read properties of undefined (reading 'entries'), undefined [custom-test] Could not update tree for "/table" (retry 1): Cannot read properties of undefined (reading 'entries'), undefined [custom-test] Could not update tree for "/table" (retry 22): Failed to rebuild leaf: Tx failed, rolled back. See .info for details, rebuild-leaf-failed,tx-failed ``` The test where the problem is reproduced: https://github.com/darkjedi9922/acebase-bug-reproduce/blob/bug-reproduce-2/spec/custom-test.js
gitea-mirror 2026-05-23 08:31:01 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@appy-one commented on GitHub (Aug 19, 2023):

I applied a fix for this in 1.29.4, thanks again for supplying a good PR with example code!

Do you like AceBase? 👇🏼

Sponsor AceBase Spread the word contribute

<!-- gh-comment-id:1684881394 --> @appy-one commented on GitHub (Aug 19, 2023): I applied a fix for this in 1.29.4, thanks again for supplying a good PR with example code! Do you like AceBase? 👇🏼 [![Sponsor AceBase](https://user-images.githubusercontent.com/26569719/168233053-8e56b243-4140-40ab-9a30-4cb3cc149bfe.svg)](https://github.com/sponsors/appy-one) [![Spread the word](https://user-images.githubusercontent.com/26569719/169265089-3d593555-e1ad-4390-986b-877ac2c38a47.svg)](https://twitter.com/intent/tweet?button=&url=https://github.com/appy-one/acebase&text=I'm+using+@AcebaseRealtime+in+my+project+to+make+my+life+easier!&button=) [![contribute](https://user-images.githubusercontent.com/26569719/169265318-30c4c6a5-7c89-46a0-a7a2-ef433a8192f4.svg)](https://github.com/appy-one/acebase#contributing)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase#110
No description provided.