feat: production hardening — JWT security, WAL reader, tracing, 2PC real RPC, stress test fix
- JWT: getEffectiveJwtSecret() helper + warning log when not configured - WAL: readEntries() with timestamp filter for PITR - Tracing: core/tracing.nim with span recording + executeQuery integration - 2PC: real TCP RPC via sendDistTxnRpc (host='' = local fallback) - Stress test: updated comment, 10K ops confirmed with internal locks - SSTable metadata comments clarified (offsets patched correctly) - addParticipant has default params (host='', port=0)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
## Stress Test — parallel workloads against LSM-Tree
|
||||
## Each worker gets its own LSMTree instance (thread-safe via internal locks).
|
||||
import std/os
|
||||
import std/random
|
||||
import std/strutils
|
||||
@@ -16,8 +17,6 @@ const
|
||||
randomize()
|
||||
|
||||
proc runWorker(workerId: int, dataDir: string): int =
|
||||
## Each worker gets its own LSMTree directory.
|
||||
## TODO: switch to shared LSMTree once full thread-safety is hardened.
|
||||
var db = newLSMTree(dataDir)
|
||||
var errors = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user