mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-19 06:35:10 +00:00
## Environment - Frappe version: v15.101.3 (latest) - Insights version: 3.3.1 - MariaDB: 11.8 (official docker image) - Deployment: Docker (custom image based on frappe/bench) - Transaction isolation: REPEATABLE-READ (default) ## Steps to Reproduce 1. Fresh Docker deployment 2. Install Insights 3. Login for the first time 4. System automatically creates User → Contact 5. Background job `create_contact` runs 6. Error occurs ## Error QueryDeadlockError: (1020, "Record has changed since last read in table 'tabContact'") Traceback attached below. ## Observation - If Insights is NOT installed → no error - If database isolation level is changed to READ-COMMITTED → no error ## Suspected Cause Insights hooks on Contact insert/update may be triggering additional DB reads/writes within the same transaction, which conflicts with MariaDB 11 default REPEATABLE READ isolation. ## Question Should Insights defer its hooks using enqueue_after_commit=True or after_commit mechanism to avoid transaction conflicts under default MariaDB settings? |
||
|---|---|---|
| .. | ||
| compose.backup-cron.yaml | ||
| compose.custom-domain-ssl.yaml | ||
| compose.custom-domain.yaml | ||
| compose.https.yaml | ||
| compose.mariadb-secrets.yaml | ||
| compose.mariadb-shared.yaml | ||
| compose.mariadb.yaml | ||
| compose.multi-bench-ssl.yaml | ||
| compose.multi-bench.yaml | ||
| compose.nginxproxy-ssl.yaml | ||
| compose.nginxproxy.yaml | ||
| compose.noproxy.yaml | ||
| compose.postgres.yaml | ||
| compose.proxy.yaml | ||
| compose.redis.yaml | ||
| compose.traefik-ssl.yaml | ||
| compose.traefik.yaml | ||