Tags and Properties for Check-in 9c7e0c5485
- branch=shared-store inherited from [eae917e9e9]
- ci-pass=6a3bb20f63817bf28c568d7537040dba added by [320145a89d] on 2026-11-21 13:14:05
- closed added by [67ae9cd5ef] on 2026-11-21 13:14:25
- sym-shared-store inherited from [eae917e9e9]
|
2026-11-21
| ||
| 13:14 | • Edit [9c7e0c5485]: Mark "Closed". artifact: 67ae9cd5ef user: quarry | |
| 13:14 | • Edit [9c7e0c5485]: Add "ci-pass" with value "6a3bb20f63817bf28c568d7537040dba". artifact: 320145a89d user: quarry | |
| 13:04 |
Shared journal store: a new journal turns WAL under the exclusive lock; test signal order
shared.sh: the neighbour pic appended its ledger line after signalling that it was holding, so on a slow runner the line could land after the test had cleared the ledger (after-started:2 saw 1 line, expected 0). It now writes the line first. store.c: PRAGMA journal_mode=WAL ran in every open. SQLite does not wait for other connections when changing the journal mode, so four pics creating one journal at once could fail with 'database is locked' (about 1 in 160 under load). The change of mode now happens only while creating or migrating, with the journal lock held exclusively. closed check-in: 9c7e0c5485 user: dmestas tags: shared-store | |
| 12:03 |
Shared journal store: several pic processes on one workspace, one conversation each
Each conversation has a lease (an exclusive flock beside the journal) that its process holds while it advances it and that the kernel drops when the process and its forked children are gone. Taking a lease claims the conversation's request and settles what a dead owner left; open recovers only conversations whose lease is free. The journal lock is held shared and taken exclusive only to create or migrate the schema. SQLite runs in normal locking mode with the fair busy handler; dev builds stop on a write begun under an open read. pic run takes only requests nobody is running. A second pic asking into a conversation in use is refused with its owner's pid. An edit that misses in a file another conversation changed says so and shows the file; a write to such a file is refused once. New test/pic/shared.sh: two-process crash matrix, kill -9 beside a live pic, claim and admission races, stale-file results. No schema change. check-in: eae917e9e9 user: dmestas tags: shared-store | |