2025-12-12 13:27:26,575 - INFO - ya.test - pytest_runtest_setup: ####################################################################################################
2025-12-12 13:27:26,575 - INFO - ya.test - pytest_runtest_setup: test_insert_deadlock[v1-true-client0]
2025-12-12 13:27:26,575 - INFO - ya.test - pytest_runtest_setup: ####################################################################################################
2025-12-12 13:27:26,575 - INFO - ya.test - pytest_runtest_setup: Test setup
2025-12-12 13:27:26,631 - INFO - ya.test - pytest_runtest_call: Test call (class_name: test_insert.py::TestS3, test_name: test_insert_deadlock[v1-true-client0])
2025-12-12 13:27:26,632 - DEBUG - botocore.hooks - _emit: Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f51af1290d0>
2025-12-12 13:27:26,635 - DEBUG - botocore.hooks - _emit: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x7f51af238dd0>
2025-12-12 13:27:26,635 - DEBUG - botocore.hooks - _emit: Event creating-client-class.s3: calling handler <function lazy_call.<locals>._handler at 0x7f51ae4d8050>
2025-12-12 13:27:26,635 - DEBUG - botocore.hooks - _emit: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x7f51af238ad0>
2025-12-12 13:27:26,638 - DEBUG - botocore.endpoint - create_endpoint: Setting s3 timeout as (60, 60)
2025-12-12 13:27:26,643 - DEBUG - botocore.client - _register_legacy_retries: Registering retry handlers for service: s3
2025-12-12 13:27:26,643 - DEBUG - botocore.utils - register: Registering S3 region redirector handler
2025-12-12 13:27:26,644 - DEBUG - boto3.resources.factory - load_from_definition: Loading s3:s3
2025-12-12 13:27:26,646 - DEBUG - boto3.resources.factory - load_from_definition: Loading s3:Bucket
2025-12-12 13:27:26,646 - DEBUG - boto3.resources.model - _load_name_with_category: Renaming Bucket attribute name
2025-12-12 13:27:26,648 - DEBUG - botocore.hooks - _emit: Event creating-resource-class.s3.Bucket: calling handler <function lazy_call.<locals>._handler at 0x7f51ae4d8ad0>
2025-12-12 13:27:26,648 - DEBUG - boto3.resources.action - __call__: Calling s3:create_bucket with {'Bucket': 'insert_bucket', 'ACL': 'public-read-write'}
2025-12-12 13:27:26,649 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.CreateBucket: calling handler <function validate_bucket_name at 0x7f51af12af90>
2025-12-12 13:27:26,649 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.CreateBucket: calling handler <function remove_bucket_from_url_paths_from_model at 0x7f51af151850>
2025-12-12 13:27:26,649 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.CreateBucket: calling handler <bound method S3RegionRedirectorv2.annotate_request_context of <botocore.utils.S3RegionRedirectorv2 object at 0x7f5193345cd0>>
2025-12-12 13:27:26,650 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.CreateBucket: calling handler <function generate_idempotent_uuid at 0x7f51af12ad50>
2025-12-12 13:27:26,650 - DEBUG - botocore.hooks - _emit: Event before-endpoint-resolution.s3: calling handler <function customize_endpoint_resolver_builtins at 0x7f51af151a90>
2025-12-12 13:27:26,650 - DEBUG - botocore.hooks - _emit: Event before-endpoint-resolution.s3: calling handler <bound method S3RegionRedirectorv2.redirect_from_cache of <botocore.utils.S3RegionRedirectorv2 object at 0x7f5193345cd0>>
2025-12-12 13:27:26,650 - DEBUG - botocore.regions - construct_endpoint: Calling endpoint provider with parameters: {'Bucket': 'insert_bucket', 'Region': 'yandex', 'UseFIPS': False, 'UseDualStack': False, 'Endpoint': 'http://localhost:12075', 'ForcePathStyle': True, 'Accelerate': False, 'UseGlobalEndpoint': False, 'DisableAccessPoints': True, 'DisableMultiRegionAccessPoints': False, 'UseArnRegion': True}
2025-12-12 13:27:26,652 - DEBUG - botocore.regions - construct_endpoint: Endpoint provider result: http://localhost:12075/insert_bucket
2025-12-12 13:27:26,652 - DEBUG - botocore.regions - auth_schemes_to_signing_ctx: Selecting from endpoint provider's list of auth schemes: "sigv4". User selected auth scheme is: "None"
2025-12-12 13:27:26,652 - DEBUG - botocore.regions - auth_schemes_to_signing_ctx: Selected auth type "v4" as "v4" with signing context params: {'region': 'yandex', 'signing_name': 's3', 'disableDoubleEncoding': True}
2025-12-12 13:27:26,653 - DEBUG - botocore.hooks - _emit: Event before-call.s3.CreateBucket: calling handler <function add_expect_header at 0x7f51af12b410>
2025-12-12 13:27:26,653 - DEBUG - botocore.hooks - _emit: Event before-call.s3.CreateBucket: calling handler <function add_recursion_detection_header at 0x7f51af129310>
2025-12-12 13:27:26,653 - DEBUG - botocore.hooks - _emit: Event before-call.s3.CreateBucket: calling handler <function inject_api_version_header_if_needed at 0x7f51af150e90>
2025-12-12 13:27:26,654 - DEBUG - botocore.endpoint - make_request: Making request for OperationModel(name=CreateBucket) with params: {'url_path': '', 'query_string': {}, 'method': 'PUT', 'headers': {'x-amz-acl': 'public-read-write', 'User-Agent': 'Boto3/1.29.6 md/Botocore#1.31.80 ua/2.0 os/linux#5.15.0-157-generic md/arch#x86_64 lang/python#3.12.9 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.31.80 Resource'}, 'body': b'', 'auth_path': '/insert_bucket/', 'url': 'http://localhost:12075/insert_bucket', 'context': {'client_region': 'yandex', 'client_config': <botocore.config.Config object at 0x7f5193346f40>, 'has_streaming_input': False, 'auth_type': 'v4', 's3_redirect': {'redirected': False, 'bucket': 'insert_bucket', 'params': {'Bucket': 'insert_bucket', 'ACL': 'public-read-write'}}, 'signing': {'region': 'yandex', 'signing_name': 's3', 'disableDoubleEncoding': True}}}
2025-12-12 13:27:26,654 - DEBUG - botocore.hooks - _emit: Event request-created.s3.CreateBucket: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f5193344dd0>>
2025-12-12 13:27:26,655 - DEBUG - botocore.hooks - _emit: Event choose-signer.s3.CreateBucket: calling handler <bound method ClientCreator._default_s3_presign_to_sigv2 of <botocore.client.ClientCreator object at 0x7f51940f86a0>>
2025-12-12 13:27:26,655 - DEBUG - botocore.hooks - _emit: Event choose-signer.s3.CreateBucket: calling handler <function set_operation_specific_signer at 0x7f51af12abd0>
2025-12-12 13:27:26,655 - DEBUG - botocore.hooks - _emit: Event before-sign.s3.CreateBucket: calling handler <function remove_arn_from_signing_path at 0x7f51af1519d0>
2025-12-12 13:27:26,656 - DEBUG - botocore.auth - add_auth: Calculating signature using v4 auth.
2025-12-12 13:27:26,656 - DEBUG - botocore.auth - add_auth: CanonicalRequest:
PUT
/insert_bucket

host:localhost:12075
x-amz-acl:public-read-write
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20251212T132726Z

host;x-amz-acl;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2025-12-12 13:27:26,656 - DEBUG - botocore.auth - add_auth: StringToSign:
AWS4-HMAC-SHA256
20251212T132726Z
20251212/yandex/s3/aws4_request
3fb12b6680287da84bff3ced5ba17675bd4bde93a408215ec1b247240431a4d2
2025-12-12 13:27:26,656 - DEBUG - botocore.auth - add_auth: Signature:
d7eb930727fa4b983ca68b6068d62f14976744e973d0828e476b5ea82457b6a6
2025-12-12 13:27:26,656 - DEBUG - botocore.hooks - _emit: Event request-created.s3.CreateBucket: calling handler <function add_retry_headers at 0x7f51af151790>
2025-12-12 13:27:26,657 - DEBUG - botocore.endpoint - _do_get_response: Sending http request: <AWSPreparedRequest stream_output=False, method=PUT, url=http://localhost:12075/insert_bucket, headers={'x-amz-acl': b'public-read-write', 'User-Agent': b'Boto3/1.29.6 md/Botocore#1.31.80 ua/2.0 os/linux#5.15.0-157-generic md/arch#x86_64 lang/python#3.12.9 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.31.80 Resource', 'X-Amz-Date': b'20251212T132726Z', 'X-Amz-Content-SHA256': b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': b'AWS4-HMAC-SHA256 Credential=key/20251212/yandex/s3/aws4_request, SignedHeaders=host;x-amz-acl;x-amz-content-sha256;x-amz-date, Signature=d7eb930727fa4b983ca68b6068d62f14976744e973d0828e476b5ea82457b6a6', 'amz-sdk-invocation-id': b'c7697afb-b0e5-4afd-b53f-4d841de93199', 'amz-sdk-request': b'attempt=1', 'Content-Length': '0'}>
2025-12-12 13:27:26,671 - DEBUG - botocore.parsers - parse: Response headers: {'Server': 'Werkzeug/2.2.3 Python/3.12.9', 'Date': 'Fri, 12 Dec 2025 13:27:26 GMT', 'x-amzn-requestid': 'onCo0SwOvQXXcSDjt6IINtlYJRjWJwiIguWwDojkh2M2q1xihoHI', 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '167', 'Access-Control-Allow-Origin': '*', 'Connection': 'close'}
2025-12-12 13:27:26,671 - DEBUG - botocore.parsers - parse: Response body:
b'<CreateBucketResponse xmlns="http://s3.amazonaws.com/doc/2006-03-01"><CreateBucketResponse><Bucket>insert_bucket</Bucket></CreateBucketResponse></CreateBucketResponse>'
2025-12-12 13:27:26,672 - DEBUG - botocore.hooks - _emit: Event needs-retry.s3.CreateBucket: calling handler <botocore.retryhandler.RetryHandler object at 0x7f51936e9aa0>
2025-12-12 13:27:26,676 - DEBUG - botocore.retryhandler - __call__: No retry needed.
2025-12-12 13:27:26,676 - DEBUG - botocore.hooks - _emit: Event needs-retry.s3.CreateBucket: calling handler <bound method S3RegionRedirectorv2.redirect_from_error of <botocore.utils.S3RegionRedirectorv2 object at 0x7f5193345cd0>>
2025-12-12 13:27:26,677 - DEBUG - boto3.resources.action - __call__: Response: {'ResponseMetadata': {'RequestId': 'onCo0SwOvQXXcSDjt6IINtlYJRjWJwiIguWwDojkh2M2q1xihoHI', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Werkzeug/2.2.3 Python/3.12.9', 'date': 'Fri, 12 Dec 2025 13:27:26 GMT', 'x-amzn-requestid': 'onCo0SwOvQXXcSDjt6IINtlYJRjWJwiIguWwDojkh2M2q1xihoHI', 'content-type': 'text/html; charset=utf-8', 'content-length': '167', 'access-control-allow-origin': '*', 'connection': 'close'}, 'RetryAttempts': 0}}
2025-12-12 13:27:26,677 - DEBUG - boto3.resources.collection - pages: Calling paginated s3:list_objects with {'Bucket': 'insert_bucket'}
2025-12-12 13:27:26,678 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.ListObjects: calling handler <function set_list_objects_encoding_type_url at 0x7f51af150890>
2025-12-12 13:27:26,678 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.ListObjects: calling handler <function validate_bucket_name at 0x7f51af12af90>
2025-12-12 13:27:26,679 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.ListObjects: calling handler <function remove_bucket_from_url_paths_from_model at 0x7f51af151850>
2025-12-12 13:27:26,679 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.ListObjects: calling handler <bound method S3RegionRedirectorv2.annotate_request_context of <botocore.utils.S3RegionRedirectorv2 object at 0x7f5193345cd0>>
2025-12-12 13:27:26,679 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.ListObjects: calling handler <function generate_idempotent_uuid at 0x7f51af12ad50>
2025-12-12 13:27:26,679 - DEBUG - botocore.hooks - _emit: Event before-endpoint-resolution.s3: calling handler <function customize_endpoint_resolver_builtins at 0x7f51af151a90>
2025-12-12 13:27:26,680 - DEBUG - botocore.hooks - _emit: Event before-endpoint-resolution.s3: calling handler <bound method S3RegionRedirectorv2.redirect_from_cache of <botocore.utils.S3RegionRedirectorv2 object at 0x7f5193345cd0>>
2025-12-12 13:27:26,681 - DEBUG - botocore.regions - construct_endpoint: Calling endpoint provider with parameters: {'Bucket': 'insert_bucket', 'Region': 'yandex', 'UseFIPS': False, 'UseDualStack': False, 'Endpoint': 'http://localhost:12075', 'ForcePathStyle': True, 'Accelerate': False, 'UseGlobalEndpoint': False, 'DisableMultiRegionAccessPoints': False, 'UseArnRegion': True}
2025-12-12 13:27:26,681 - DEBUG - botocore.regions - construct_endpoint: Endpoint provider result: http://localhost:12075/insert_bucket
2025-12-12 13:27:26,682 - DEBUG - botocore.regions - auth_schemes_to_signing_ctx: Selecting from endpoint provider's list of auth schemes: "sigv4". User selected auth scheme is: "None"
2025-12-12 13:27:26,682 - DEBUG - botocore.regions - auth_schemes_to_signing_ctx: Selected auth type "v4" as "v4" with signing context params: {'region': 'yandex', 'signing_name': 's3', 'disableDoubleEncoding': True}
2025-12-12 13:27:26,682 - DEBUG - botocore.hooks - _emit: Event before-call.s3.ListObjects: calling handler <function add_expect_header at 0x7f51af12b410>
2025-12-12 13:27:26,682 - DEBUG - botocore.hooks - _emit: Event before-call.s3.ListObjects: calling handler <function add_recursion_detection_header at 0x7f51af129310>
2025-12-12 13:27:26,682 - DEBUG - botocore.hooks - _emit: Event before-call.s3.ListObjects: calling handler <function inject_api_version_header_if_needed at 0x7f51af150e90>
2025-12-12 13:27:26,683 - DEBUG - botocore.endpoint - make_request: Making request for OperationModel(name=ListObjects) with params: {'url_path': '', 'query_string': {'encoding-type': 'url'}, 'method': 'GET', 'headers': {'User-Agent': 'Boto3/1.29.6 md/Botocore#1.31.80 ua/2.0 os/linux#5.15.0-157-generic md/arch#x86_64 lang/python#3.12.9 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.31.80 Resource'}, 'body': b'', 'auth_path': '/insert_bucket/', 'url': 'http://localhost:12075/insert_bucket?encoding-type=url', 'context': {'client_region': 'yandex', 'client_config': <botocore.config.Config object at 0x7f5193346f40>, 'has_streaming_input': False, 'auth_type': 'v4', 'encoding_type_auto_set': True, 's3_redirect': {'redirected': False, 'bucket': 'insert_bucket', 'params': {'Bucket': 'insert_bucket', 'EncodingType': 'url'}}, 'signing': {'region': 'yandex', 'signing_name': 's3', 'disableDoubleEncoding': True}}}
2025-12-12 13:27:26,683 - DEBUG - botocore.hooks - _emit: Event request-created.s3.ListObjects: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f5193344dd0>>
2025-12-12 13:27:26,684 - DEBUG - botocore.hooks - _emit: Event choose-signer.s3.ListObjects: calling handler <bound method ClientCreator._default_s3_presign_to_sigv2 of <botocore.client.ClientCreator object at 0x7f51940f86a0>>
2025-12-12 13:27:26,684 - DEBUG - botocore.hooks - _emit: Event choose-signer.s3.ListObjects: calling handler <function set_operation_specific_signer at 0x7f51af12abd0>
2025-12-12 13:27:26,684 - DEBUG - botocore.hooks - _emit: Event before-sign.s3.ListObjects: calling handler <function remove_arn_from_signing_path at 0x7f51af1519d0>
2025-12-12 13:27:26,684 - DEBUG - botocore.auth - add_auth: Calculating signature using v4 auth.
2025-12-12 13:27:26,684 - DEBUG - botocore.auth - add_auth: CanonicalRequest:
GET
/insert_bucket
encoding-type=url
host:localhost:12075
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20251212T132726Z

host;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2025-12-12 13:27:26,684 - DEBUG - botocore.auth - add_auth: StringToSign:
AWS4-HMAC-SHA256
20251212T132726Z
20251212/yandex/s3/aws4_request
a3fc1678a46cbdf42c2b90bf4e94c0edfc3d7ea81280b483ccc33c1596e0419a
2025-12-12 13:27:26,685 - DEBUG - botocore.auth - add_auth: Signature:
e0a238ec3482768d961250ad11d42fcd23ccb54c4b02042a0acfe7d5d84b815a
2025-12-12 13:27:26,685 - DEBUG - botocore.hooks - _emit: Event request-created.s3.ListObjects: calling handler <function add_retry_headers at 0x7f51af151790>
2025-12-12 13:27:26,685 - DEBUG - botocore.endpoint - _do_get_response: Sending http request: <AWSPreparedRequest stream_output=False, method=GET, url=http://localhost:12075/insert_bucket?encoding-type=url, headers={'User-Agent': b'Boto3/1.29.6 md/Botocore#1.31.80 ua/2.0 os/linux#5.15.0-157-generic md/arch#x86_64 lang/python#3.12.9 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.31.80 Resource', 'X-Amz-Date': b'20251212T132726Z', 'X-Amz-Content-SHA256': b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': b'AWS4-HMAC-SHA256 Credential=key/20251212/yandex/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=e0a238ec3482768d961250ad11d42fcd23ccb54c4b02042a0acfe7d5d84b815a', 'amz-sdk-invocation-id': b'b8b6b1e2-2b12-49f7-83d4-7563f6dfc785', 'amz-sdk-request': b'attempt=1'}>
2025-12-12 13:27:26,692 - DEBUG - botocore.parsers - parse: Response headers: {'Server': 'Werkzeug/2.2.3 Python/3.12.9', 'Date': 'Fri, 12 Dec 2025 13:27:26 GMT', 'x-amzn-requestid': '3QAAuBNiijM48Rr5Bu1IbJaEMAtqpPyFGtv6pWhYhNwPePXIFy5Q', 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '236', 'Access-Control-Allow-Origin': '*', 'Connection': 'close'}
2025-12-12 13:27:26,692 - DEBUG - botocore.parsers - parse: Response body:
b'<?xml version="1.0" encoding="UTF-8"?><ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>insert_bucket</Name><MaxKeys>1000</MaxKeys><EncodingType>url</EncodingType><IsTruncated>false</IsTruncated></ListBucketResult>'
2025-12-12 13:27:26,693 - DEBUG - botocore.hooks - _emit: Event needs-retry.s3.ListObjects: calling handler <botocore.retryhandler.RetryHandler object at 0x7f51936e9aa0>
2025-12-12 13:27:26,693 - DEBUG - botocore.retryhandler - __call__: No retry needed.
2025-12-12 13:27:26,693 - DEBUG - botocore.hooks - _emit: Event needs-retry.s3.ListObjects: calling handler <bound method S3RegionRedirectorv2.redirect_from_error of <botocore.utils.S3RegionRedirectorv2 object at 0x7f5193345cd0>>
2025-12-12 13:27:26,694 - DEBUG - botocore.hooks - _emit: Event after-call.s3.ListObjects: calling handler <function decode_list_object at 0x7f51af150950>
2025-12-12 13:27:26,694 - DEBUG - boto3.resources.factory - load_from_definition: Loading s3:ObjectSummary
2025-12-12 13:27:26,694 - DEBUG - boto3.resources.model - _load_name_with_category: Renaming ObjectSummary attribute key
2025-12-12 13:27:26,698 - DEBUG - botocore.hooks - _emit: Event creating-resource-class.s3.ObjectSummary: calling handler <function lazy_call.<locals>._handler at 0x7f51ae4d8c50>
2025-12-12 13:27:26,744 - DEBUG - root - create_query_impl: Request: content {
  type: ANALYTICS
  name: "simple"
  acl {
    visibility: PRIVATE
  }
  limits {
    execution_timeout {
    }
  }
  text: "\n            pragma s3.UseBlocksSink = \"true\";\n            pragma s3.AtomicUploadCommit = \"true\";\n            pragma s3.InFlightMemoryLimit = \"1\";\n\n            insert into `h836650710154320997_test_insert_deadlockibucket`.`/test/`\n            with (format = \"parquet\")\n            select Random(data) from AS_TABLE(ListReplicate(<|data:\"x\"u|>, 1000000));\n            "
  syntax: YQL_V1
}
execute_mode: RUN
idempotency_key: "65190f73-d6f0-42e6-977d-13b061a7289d"

2025-12-12 13:27:26,780 - DEBUG - root - create_query_impl: Result: query_id: "ptqudq7r3goq0bigdh4j"

2025-12-12 13:27:26,796 - DEBUG - root - describe_query: Result: query {
  meta {
    common {
      id: "ptqudq7r3goq0bigdh4j"
      created_by: "root@builtin"
      modified_by: "root@builtin"
      created_at {
        seconds: 1765546046
        nanos: 756839000
      }
      modified_at {
        seconds: 1765546046
        nanos: 756839000
      }
      revision: 1
    }
    execute_mode: RUN
    status: STARTING
    last_job_query_revision: 1
    last_job_id: "ptjudq7r3gopugj0ehbn-ptqudq7r3goq0bigdh4j"
    started_by: "root@builtin"
    submitted_at {
      seconds: 1765546046
      nanos: 756839000
    }
  }
  content {
    type: ANALYTICS
    name: "simple"
    acl {
      visibility: PRIVATE
    }
    limits {
      execution_timeout {
      }
    }
    text: "\n            pragma s3.UseBlocksSink = \"true\";\n            pragma s3.AtomicUploadCommit = \"true\";\n            pragma s3.InFlightMemoryLimit = \"1\";\n\n            insert into `h836650710154320997_test_insert_deadlockibucket`.`/test/`\n            with (format = \"parquet\")\n            select Random(data) from AS_TABLE(ListReplicate(<|data:\"x\"u|>, 1000000));\n            "
    syntax: YQL_V1
  }
}

2025-12-12 13:27:27,310 - DEBUG - root - describe_query: Result: query {
  meta {
    common {
      id: "ptqudq7r3goq0bigdh4j"
      created_by: "root@builtin"
      modified_by: "root@builtin"
      created_at {
        seconds: 1765546046
        nanos: 756839000
      }
      modified_at {
        seconds: 1765546046
        nanos: 756839000
      }
      revision: 1
    }
    started_at {
      seconds: 1765546046
      nanos: 986000000
    }
    execute_mode: RUN
    status: FAILING
    last_job_query_revision: 1
    last_job_id: "ptjudq7r3gopugj0ehbn-ptqudq7r3goq0bigdh4j"
    started_by: "root@builtin"
    submitted_at {
      seconds: 1765546046
      nanos: 756839000
    }
  }
  content {
    type: ANALYTICS
    name: "simple"
    acl {
      visibility: PRIVATE
    }
    limits {
      execution_timeout {
      }
    }
    text: "\n            pragma s3.UseBlocksSink = \"true\";\n            pragma s3.AtomicUploadCommit = \"true\";\n            pragma s3.InFlightMemoryLimit = \"1\";\n\n            insert into `h836650710154320997_test_insert_deadlockibucket`.`/test/`\n            with (format = \"parquet\")\n            select Random(data) from AS_TABLE(ListReplicate(<|data:\"x\"u|>, 1000000));\n            "
    syntax: YQL_V1
  }
  plan {
    json: "{\"Detailed\":{\"Operations\":[{\"Id\":3,\"Name\":\"DqStage\",\"Streams\":{\"Program\":[{\"Name\":\"AsStruct\"},{\"Name\":\"Replicate\"},{\"Name\":\"ToFlow\"},{\"Name\":\"OrderedFlatMap\"},{\"Name\":\"ExpandMap\"},{\"Name\":\"FromFlow\"},{\"Name\":\"WideToBlocks\"}]}},{\"Id\":2,\"Name\":\"DqQuery!\",\"DependsOn\":[3]},{\"Id\":1,\"Name\":\"Commit!\",\"DependsOn\":[2]}],\"OperationRoot\":1,\"Providers\":[],\"OperationStats\":{\"Commit!\":1,\"DqQuery!\":1,\"DqStage\":1}},\"Basic\":{\"nodes\":[{\"id\":3,\"level\":1,\"name\":\"DqStage #3\",\"type\":\"op\"},{\"id\":2,\"level\":2,\"name\":\"DqQuery!\",\"type\":\"op\"},{\"id\":1,\"level\":3,\"name\":\"Commit!\",\"type\":\"op\"}],\"links\":[{\"source\":3,\"target\":2},{\"source\":2,\"target\":1}]}}"
  }
  issue {
    message: "Query failed with code INTERNAL_ERROR at 2025-12-12T13:27:27.151712Z"
    severity: 1
    issues {
      message: "Writing deadlock occurred, please increase write actor memory limit (used 1214548 bytes for 1 partitions) (appeared 1 time at 2025-12-12T13:27:27.141924Z)"
      severity: 1
    }
  }
  statistics {
    json: "{\"Graph=0\":{\"Tasks\":{\"sum\":1,\"count\":1,\"avg\":1,\"max\":1,\"min\":1},\"CpuTimeUs\":{\"sum\":\"68ms\",\"count\":1,\"avg\":\"68ms\",\"max\":\"68ms\",\"min\":\"68ms\"},\"EgressRows\":{\"sum\":276480,\"count\":1,\"avg\":276480,\"max\":276480,\"min\":276480},\"MaxMemoryUsage\":{\"sum\":1671936,\"count\":1,\"avg\":1671936,\"max\":1671936,\"min\":1671936},\"IngressQueuedBytes\":{\"sum\":0,\"count\":1,\"avg\":0,\"max\":0,\"min\":0},\"IngressQueuedRows\":{\"sum\":0,\"count\":1,\"avg\":0,\"max\":0,\"min\":0}}}"
  }
  ast {
    data: "(\n(let $1 (Configure! world (DataSource \'\"config\") \'\"DqEngine\" \'\"force\"))\n(let $2 (DataSource \'\"s3\" \'\"$all\"))\n(let $3 (Configure! $1 $2 \'\"Attr\" \'\"useblockssink\" \'\"true\"))\n(let $4 (Configure! $3 $2 \'\"Attr\" \'\"atomicuploadcommit\" \'\"true\"))\n(let $5 (Configure! $4 $2 \'\"Attr\" \'\"inflightmemorylimit\" \'\"1\"))\n(let $6 (DataSink \'\"s3\" \'\"h836650710154320997_test_insert_deadlockibucket\"))\n(let $7 (S3SinkSettings \'\"test/\" \'(\'(\'\"multipart\" \'\"true\") \'(\'\"block_output\" \'\"true\")) (SecureParam \'\"cluster:default_h836650710154320997_test_insert_deadlockibucket\") \'\".parquet\" (StructType \'(\'\"column0\" (DataType \'Double)))))\n(return (Commit! (DqQuery! $5 \'((DqStage \'() (lambda \'() (WideToBlocks (FromFlow (ExpandMap (OrderedFlatMap (ToFlow (Replicate (AsStruct \'(\'\"data\" (Utf8 \'\"x\"))) (Uint64 \'1000000))) (lambda \'($8) (Just (AsStruct \'(\'\"column0\" (Random (DependsOn (Member $8 \'\"data\")))))))) (lambda \'($9) (Member $9 \'\"column0\")))))) \'() \'((DqSink \'0 $6 $7))))) $6))\n)\n"
  }
}

2025-12-12 13:27:27,828 - DEBUG - root - describe_query: Result: ... (repeated, see above) ...
2025-12-12 13:27:28,349 - DEBUG - root - describe_query: Result: query {
  meta {
    common {
      id: "ptqudq7r3goq0bigdh4j"
      created_by: "root@builtin"
      modified_by: "root@builtin"
      created_at {
        seconds: 1765546046
        nanos: 756839000
      }
      modified_at {
        seconds: 1765546046
        nanos: 756839000
      }
      revision: 1
    }
    started_at {
      seconds: 1765546046
      nanos: 986000000
    }
    finished_at {
      seconds: 1765546047
      nanos: 999000000
    }
    execute_mode: RUN
    status: FAILED
    last_job_query_revision: 1
    last_job_id: "ptjudq7r3gopugj0ehbn-ptqudq7r3goq0bigdh4j"
    started_by: "root@builtin"
    submitted_at {
      seconds: 1765546046
      nanos: 756839000
    }
  }
  content {
    type: ANALYTICS
    name: "simple"
    acl {
      visibility: PRIVATE
    }
    limits {
      execution_timeout {
      }
    }
    text: "\n            pragma s3.UseBlocksSink = \"true\";\n            pragma s3.AtomicUploadCommit = \"true\";\n            pragma s3.InFlightMemoryLimit = \"1\";\n\n            insert into `h836650710154320997_test_insert_deadlockibucket`.`/test/`\n            with (format = \"parquet\")\n            select Random(data) from AS_TABLE(ListReplicate(<|data:\"x\"u|>, 1000000));\n            "
    syntax: YQL_V1
  }
  plan {
    json: "{\"Detailed\":{\"Operations\":[{\"Id\":3,\"Name\":\"DqStage\",\"Streams\":{\"Program\":[{\"Name\":\"AsStruct\"},{\"Name\":\"Replicate\"},{\"Name\":\"ToFlow\"},{\"Name\":\"OrderedFlatMap\"},{\"Name\":\"ExpandMap\"},{\"Name\":\"FromFlow\"},{\"Name\":\"WideToBlocks\"}]}},{\"Id\":2,\"Name\":\"DqQuery!\",\"DependsOn\":[3]},{\"Id\":1,\"Name\":\"Commit!\",\"DependsOn\":[2]}],\"OperationRoot\":1,\"Providers\":[],\"OperationStats\":{\"Commit!\":1,\"DqQuery!\":1,\"DqStage\":1}},\"Basic\":{\"nodes\":[{\"id\":3,\"level\":1,\"name\":\"DqStage #3\",\"type\":\"op\"},{\"id\":2,\"level\":2,\"name\":\"DqQuery!\",\"type\":\"op\"},{\"id\":1,\"level\":3,\"name\":\"Commit!\",\"type\":\"op\"}],\"links\":[{\"source\":3,\"target\":2},{\"source\":2,\"target\":1}]}}"
  }
  issue {
    message: "Query failed with code INTERNAL_ERROR at 2025-12-12T13:27:27.151712Z"
    severity: 1
    issues {
      message: "Writing deadlock occurred, please increase write actor memory limit (used 1214548 bytes for 1 partitions) (appeared 1 time at 2025-12-12T13:27:27.141924Z)"
      severity: 1
    }
  }
  statistics {
    json: "{\"Graph=0\":{\"Tasks\":{\"sum\":1,\"count\":1,\"avg\":1,\"max\":1,\"min\":1},\"CpuTimeUs\":{\"sum\":\"68ms\",\"count\":1,\"avg\":\"68ms\",\"max\":\"68ms\",\"min\":\"68ms\"},\"EgressRows\":{\"sum\":276480,\"count\":1,\"avg\":276480,\"max\":276480,\"min\":276480},\"MaxMemoryUsage\":{\"sum\":1671936,\"count\":1,\"avg\":1671936,\"max\":1671936,\"min\":1671936},\"IngressQueuedBytes\":{\"sum\":0,\"count\":1,\"avg\":0,\"max\":0,\"min\":0},\"IngressQueuedRows\":{\"sum\":0,\"count\":1,\"avg\":0,\"max\":0,\"min\":0}}}"
  }
  ast {
    data: "(\n(let $1 (Configure! world (DataSource \'\"config\") \'\"DqEngine\" \'\"force\"))\n(let $2 (DataSource \'\"s3\" \'\"$all\"))\n(let $3 (Configure! $1 $2 \'\"Attr\" \'\"useblockssink\" \'\"true\"))\n(let $4 (Configure! $3 $2 \'\"Attr\" \'\"atomicuploadcommit\" \'\"true\"))\n(let $5 (Configure! $4 $2 \'\"Attr\" \'\"inflightmemorylimit\" \'\"1\"))\n(let $6 (DataSink \'\"s3\" \'\"h836650710154320997_test_insert_deadlockibucket\"))\n(let $7 (S3SinkSettings \'\"test/\" \'(\'(\'\"multipart\" \'\"true\") \'(\'\"block_output\" \'\"true\")) (SecureParam \'\"cluster:default_h836650710154320997_test_insert_deadlockibucket\") \'\".parquet\" (StructType \'(\'\"column0\" (DataType \'Double)))))\n(return (Commit! (DqQuery! $5 \'((DqStage \'() (lambda \'() (WideToBlocks (FromFlow (ExpandMap (OrderedFlatMap (ToFlow (Replicate (AsStruct \'(\'\"data\" (Utf8 \'\"x\"))) (Uint64 \'1000000))) (lambda \'($8) (Just (AsStruct \'(\'\"column0\" (Random (DependsOn (Member $8 \'\"data\")))))))) (lambda \'($9) (Member $9 \'\"column0\")))))) \'() \'((DqSink \'0 $6 $7))))) $6))\n)\n"
  }
}

2025-12-12 13:27:28,366 - DEBUG - root - describe_query: Result: ... (repeated, see above) ...
2025-12-12 13:27:28,368 - INFO - ya.test - pytest_runtest_teardown: Test teardown
