Skip to content

Fix shared locking in lmdb map resizing - #281

Merged
vtnerd merged 1 commit into
developfrom
fix/resize_locking
Aug 8, 2026
Merged

Fix shared locking in lmdb map resizing#281
vtnerd merged 1 commit into
developfrom
fix/resize_locking

Conversation

@vtnerd

@vtnerd vtnerd commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Alternative to #280 that starts with a smaller map size, and uses a boost provided "fair" shared_lock (as opposed to the gross spin lock).

@mahnunchik

Copy link
Copy Markdown
Contributor

@vtnerd I confirm that this fix solves the issue #280

With default settings, the LWS node was able to scan 100 almost simultaneous scan requests without any problems.

@mahnunchik

Copy link
Copy Markdown
Contributor

I still cannot find the real cause. Now, at random times, hundreds of messages appear in the logs:

Unable to lookup webhook on tx in pool: MDB_BAD_RSLOT: Invalid reuse of reader locktable slot

But scanning continues without hanging

@vtnerd

vtnerd commented Aug 6, 2026

Copy link
Copy Markdown
Owner Author

This is almost certainly a separate issue. There was a recent PR related to this, but it seems like the issue persists.

@vtnerd

vtnerd commented Aug 6, 2026

Copy link
Copy Markdown
Owner Author

Yes, this is a bug with subaddresses+webhooks. Thanks for catching this. It'll have to be re-worked somehow.

@vtnerd

vtnerd commented Aug 6, 2026

Copy link
Copy Markdown
Owner Author

Ill merge this and start a new PR for this new issue.

@vtnerd
vtnerd merged commit b2e9db0 into develop Aug 8, 2026
18 checks passed
@vtnerd
vtnerd deleted the fix/resize_locking branch August 8, 2026 02:18
vtnerd added a commit that referenced this pull request Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants