{
    "id": "pdoc175-wait-budget",
    "title": "Ограничить ожидание занятого остатка и сохранить причину отказа",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Первый предел",
            "500 мс ожидания блокировки"
        ],
        [
            "Второй предел",
            "1 с выполнения запроса"
        ],
        [
            "Коды PDO",
            "4294967221; 4294967292"
        ],
        [
            "Остаток после двух отказов",
            3
        ],
        [
            "Владелец блокировки",
            "откатил работу и завершился"
        ],
        [
            "Результат",
            "wait-budget.csv"
        ]
    ],
    "checks": {
        "lock_error": true,
        "query_error": true,
        "both_exceptions": true,
        "lock_effective": true,
        "query_effective": true,
        "bounded_lock_time": true,
        "bounded_query_time": true,
        "messages_present": true,
        "quantity_unchanged": true,
        "child_stopped": true,
        "child_rollback": true,
        "no_forced_stop": true,
        "no_open_transaction": true,
        "artifact_written": true,
        "owned_objects_removed": true
    },
    "observations": {
        "attempts": [
            {
                "budget": "lock-first",
                "effective": {
                    "lock_ms": 500,
                    "query_seconds": 3
                },
                "diagnostics": {
                    "exception": true,
                    "sqlstate": "HY000",
                    "driver_code": 4294967221,
                    "warning": false,
                    "message_present": true
                },
                "elapsed_ms": 578.841
            },
            {
                "budget": "query-first",
                "effective": {
                    "lock_ms": 3000,
                    "query_seconds": 1
                },
                "diagnostics": {
                    "exception": true,
                    "sqlstate": "HY000",
                    "driver_code": 4294967292,
                    "warning": false,
                    "message_present": true
                },
                "elapsed_ms": 1099.147
            }
        ],
        "stored_row": {
            "sku": "CAB",
            "qty": "3"
        },
        "lock_child": {
            "pid": 2087,
            "stopped": true,
            "exit_code": 0,
            "rolled_back": true
        }
    },
    "runtime": {
        "php": "7.4.33",
        "extension": "1.0.0",
        "pdo": "7.4.33",
        "driver": "cubrid",
        "server_version": "11.3.5.1274",
        "client_version": "11.2.0",
        "database": "phpmanual175",
        "transport": "isolated_loopback_broker",
        "autocommit": true
    },
    "owned_objects": [
        {
            "type": "TABLE",
            "name": "pdoc175_budget_26ea72bc7f"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "pdoc175_budget_26ea72bc7f"
        }
    ]
}
