Medium
Find lock-order deadlock risks
The task
This is the brief your AI gets. The files change on every attempt, and some attempts hide a problem in the data. Which ones is not revealed.
Review the lock order of the transactions in database_transactions.csv. Transaction design rule: to avoid deadlocks every transaction locks tables in the global order Accounts -> Orders -> Inventory -> Warehouse (it may skip tables, but never go backwards). If a transaction locks tables in the wrong order, set status to 'conflict_detected' and put the tx_id in flagged_items. If every transaction is safe, keep 'completed'. Return in result: compliant_runs_per_hour=<total runs_per_hour of the rows that follow the rule>.
- Files you work with
database_transactions.csv- Your AI must return
compliant_runs_per_hour- Level
- Medium. A mid-level task: the rule has an exception you have to find in the data.
- Time
- About 10 minutes with your own AI. Free, not ranked.
Rooms with this problem
- Software & IT Practitioner 2 Medium
More Software & IT problems
- Find leaked keys in config files Medium
- Check exposed ports in docker compose Medium
- Check rate limits on sensitive endpoints Medium
- Find null-reference bugs Medium
- Assess database migration risk Medium
All Software & IT problems → · Using TraceGrade for Software & IT hiring