2025-11-14 10:12:17,202 - INFO - ya.test - pytest_runtest_setup: ####################################################################################################
2025-11-14 10:12:17,202 - INFO - ya.test - pytest_runtest_setup: test_insert_deadlock[v1-true-client0]
2025-11-14 10:12:17,203 - INFO - ya.test - pytest_runtest_setup: ####################################################################################################
2025-11-14 10:12:17,203 - INFO - ya.test - pytest_runtest_setup: Test setup
2025-11-14 10:12:17,313 - INFO - ya.test - pytest_runtest_call: Test call (class_name: test_insert.py::TestS3, test_name: test_insert_deadlock[v1-true-client0])
2025-11-14 10:12:17,315 - DEBUG - botocore.hooks - _emit: Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f7b2bf20e90>
2025-11-14 10:12:17,318 - DEBUG - botocore.hooks - _emit: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x7f7b2c030b90>
2025-11-14 10:12:17,318 - DEBUG - botocore.hooks - _emit: Event creating-client-class.s3: calling handler <function lazy_call.<locals>._handler at 0x7f7b2b1e7d10>
2025-11-14 10:12:17,318 - DEBUG - botocore.hooks - _emit: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x7f7b2c030890>
2025-11-14 10:12:17,322 - DEBUG - botocore.endpoint - create_endpoint: Setting s3 timeout as (60, 60)
2025-11-14 10:12:17,326 - DEBUG - botocore.client - _register_legacy_retries: Registering retry handlers for service: s3
2025-11-14 10:12:17,327 - DEBUG - botocore.utils - register: Registering S3 region redirector handler
2025-11-14 10:12:17,328 - DEBUG - boto3.resources.factory - load_from_definition: Loading s3:s3
2025-11-14 10:12:17,330 - DEBUG - boto3.resources.factory - load_from_definition: Loading s3:Bucket
2025-11-14 10:12:17,331 - DEBUG - boto3.resources.model - _load_name_with_category: Renaming Bucket attribute name
2025-11-14 10:12:17,332 - DEBUG - botocore.hooks - _emit: Event creating-resource-class.s3.Bucket: calling handler <function lazy_call.<locals>._handler at 0x7f7b167c47d0>
2025-11-14 10:12:17,333 - DEBUG - boto3.resources.action - __call__: Calling s3:create_bucket with {'Bucket': 'insert_bucket', 'ACL': 'public-read-write'}
2025-11-14 10:12:17,333 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.CreateBucket: calling handler <function validate_bucket_name at 0x7f7b2bf22d50>
2025-11-14 10:12:17,334 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.CreateBucket: calling handler <function remove_bucket_from_url_paths_from_model at 0x7f7b2bf45610>
2025-11-14 10:12:17,334 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.CreateBucket: calling handler <bound method S3RegionRedirectorv2.annotate_request_context of <botocore.utils.S3RegionRedirectorv2 object at 0x7f7b0f1d85b0>>
2025-11-14 10:12:17,334 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.CreateBucket: calling handler <function generate_idempotent_uuid at 0x7f7b2bf22b10>
2025-11-14 10:12:17,334 - DEBUG - botocore.hooks - _emit: Event before-endpoint-resolution.s3: calling handler <function customize_endpoint_resolver_builtins at 0x7f7b2bf45850>
2025-11-14 10:12:17,334 - DEBUG - botocore.hooks - _emit: Event before-endpoint-resolution.s3: calling handler <bound method S3RegionRedirectorv2.redirect_from_cache of <botocore.utils.S3RegionRedirectorv2 object at 0x7f7b0f1d85b0>>
2025-11-14 10:12:17,335 - DEBUG - botocore.regions - construct_endpoint: Calling endpoint provider with parameters: {'Bucket': 'insert_bucket', 'Region': 'yandex', 'UseFIPS': False, 'UseDualStack': False, 'Endpoint': 'http://localhost:26453', 'ForcePathStyle': True, 'Accelerate': False, 'UseGlobalEndpoint': False, 'DisableAccessPoints': True, 'DisableMultiRegionAccessPoints': False, 'UseArnRegion': True}
2025-11-14 10:12:17,336 - DEBUG - botocore.regions - construct_endpoint: Endpoint provider result: http://localhost:26453/insert_bucket
2025-11-14 10:12:17,336 - 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-11-14 10:12:17,336 - 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-11-14 10:12:17,337 - DEBUG - botocore.hooks - _emit: Event before-call.s3.CreateBucket: calling handler <function add_expect_header at 0x7f7b2bf231d0>
2025-11-14 10:12:17,337 - DEBUG - botocore.hooks - _emit: Event before-call.s3.CreateBucket: calling handler <function add_recursion_detection_header at 0x7f7b2bf210d0>
2025-11-14 10:12:17,338 - DEBUG - botocore.hooks - _emit: Event before-call.s3.CreateBucket: calling handler <function inject_api_version_header_if_needed at 0x7f7b2bf44c50>
2025-11-14 10:12:17,338 - 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:26453/insert_bucket', 'context': {'client_region': 'yandex', 'client_config': <botocore.config.Config object at 0x7f7b0f8033a0>, '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-11-14 10:12:17,339 - DEBUG - botocore.hooks - _emit: Event request-created.s3.CreateBucket: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f7b0f802770>>
2025-11-14 10:12:17,339 - 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 0x7f7b0ebcbf30>>
2025-11-14 10:12:17,339 - DEBUG - botocore.hooks - _emit: Event choose-signer.s3.CreateBucket: calling handler <function set_operation_specific_signer at 0x7f7b2bf22990>
2025-11-14 10:12:17,340 - DEBUG - botocore.hooks - _emit: Event before-sign.s3.CreateBucket: calling handler <function remove_arn_from_signing_path at 0x7f7b2bf45790>
2025-11-14 10:12:17,340 - DEBUG - botocore.auth - add_auth: Calculating signature using v4 auth.
2025-11-14 10:12:17,340 - DEBUG - botocore.auth - add_auth: CanonicalRequest:
PUT
/insert_bucket

host:localhost:26453
x-amz-acl:public-read-write
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20251114T101217Z

host;x-amz-acl;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2025-11-14 10:12:17,341 - DEBUG - botocore.auth - add_auth: StringToSign:
AWS4-HMAC-SHA256
20251114T101217Z
20251114/yandex/s3/aws4_request
fc56706d4f144d2a4b4e06a389934505f2aeca02558b01e11bb23000772192f5
2025-11-14 10:12:17,341 - DEBUG - botocore.auth - add_auth: Signature:
85db9bed200d7d39eb5cd4de44274ba9415a5f873f4de91388271692d46645e5
2025-11-14 10:12:17,341 - DEBUG - botocore.hooks - _emit: Event request-created.s3.CreateBucket: calling handler <function add_retry_headers at 0x7f7b2bf45550>
2025-11-14 10:12:17,342 - DEBUG - botocore.endpoint - _do_get_response: Sending http request: <AWSPreparedRequest stream_output=False, method=PUT, url=http://localhost:26453/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'20251114T101217Z', 'X-Amz-Content-SHA256': b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': b'AWS4-HMAC-SHA256 Credential=key/20251114/yandex/s3/aws4_request, SignedHeaders=host;x-amz-acl;x-amz-content-sha256;x-amz-date, Signature=85db9bed200d7d39eb5cd4de44274ba9415a5f873f4de91388271692d46645e5', 'amz-sdk-invocation-id': b'1646cbf1-46ee-411c-a546-2824901addc4', 'amz-sdk-request': b'attempt=1', 'Content-Length': '0'}>
2025-11-14 10:12:17,355 - DEBUG - botocore.parsers - parse: Response headers: {'Server': 'Werkzeug/2.2.3 Python/3.12.9', 'Date': 'Fri, 14 Nov 2025 10:12:17 GMT', 'x-amzn-requestid': 'O86xObqbYGBIZrldIgGcEwOdmlKZsaqe4vM0HDi0gMa0oSxE746m', 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '167', 'Access-Control-Allow-Origin': '*', 'Connection': 'close'}
2025-11-14 10:12:17,355 - 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-11-14 10:12:17,356 - DEBUG - botocore.hooks - _emit: Event needs-retry.s3.CreateBucket: calling handler <botocore.retryhandler.RetryHandler object at 0x7f7b0ee27ee0>
2025-11-14 10:12:17,357 - DEBUG - botocore.retryhandler - __call__: No retry needed.
2025-11-14 10:12:17,357 - DEBUG - botocore.hooks - _emit: Event needs-retry.s3.CreateBucket: calling handler <bound method S3RegionRedirectorv2.redirect_from_error of <botocore.utils.S3RegionRedirectorv2 object at 0x7f7b0f1d85b0>>
2025-11-14 10:12:17,357 - DEBUG - boto3.resources.action - __call__: Response: {'ResponseMetadata': {'RequestId': 'O86xObqbYGBIZrldIgGcEwOdmlKZsaqe4vM0HDi0gMa0oSxE746m', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Werkzeug/2.2.3 Python/3.12.9', 'date': 'Fri, 14 Nov 2025 10:12:17 GMT', 'x-amzn-requestid': 'O86xObqbYGBIZrldIgGcEwOdmlKZsaqe4vM0HDi0gMa0oSxE746m', 'content-type': 'text/html; charset=utf-8', 'content-length': '167', 'access-control-allow-origin': '*', 'connection': 'close'}, 'RetryAttempts': 0}}
2025-11-14 10:12:17,358 - DEBUG - boto3.resources.collection - pages: Calling paginated s3:list_objects with {'Bucket': 'insert_bucket'}
2025-11-14 10:12:17,359 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.ListObjects: calling handler <function set_list_objects_encoding_type_url at 0x7f7b2bf44650>
2025-11-14 10:12:17,359 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.ListObjects: calling handler <function validate_bucket_name at 0x7f7b2bf22d50>
2025-11-14 10:12:17,359 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.ListObjects: calling handler <function remove_bucket_from_url_paths_from_model at 0x7f7b2bf45610>
2025-11-14 10:12:17,360 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.ListObjects: calling handler <bound method S3RegionRedirectorv2.annotate_request_context of <botocore.utils.S3RegionRedirectorv2 object at 0x7f7b0f1d85b0>>
2025-11-14 10:12:17,360 - DEBUG - botocore.hooks - _emit: Event before-parameter-build.s3.ListObjects: calling handler <function generate_idempotent_uuid at 0x7f7b2bf22b10>
2025-11-14 10:12:17,360 - DEBUG - botocore.hooks - _emit: Event before-endpoint-resolution.s3: calling handler <function customize_endpoint_resolver_builtins at 0x7f7b2bf45850>
2025-11-14 10:12:17,360 - DEBUG - botocore.hooks - _emit: Event before-endpoint-resolution.s3: calling handler <bound method S3RegionRedirectorv2.redirect_from_cache of <botocore.utils.S3RegionRedirectorv2 object at 0x7f7b0f1d85b0>>
2025-11-14 10:12:17,361 - DEBUG - botocore.regions - construct_endpoint: Calling endpoint provider with parameters: {'Bucket': 'insert_bucket', 'Region': 'yandex', 'UseFIPS': False, 'UseDualStack': False, 'Endpoint': 'http://localhost:26453', 'ForcePathStyle': True, 'Accelerate': False, 'UseGlobalEndpoint': False, 'DisableMultiRegionAccessPoints': False, 'UseArnRegion': True}
2025-11-14 10:12:17,361 - DEBUG - botocore.regions - construct_endpoint: Endpoint provider result: http://localhost:26453/insert_bucket
2025-11-14 10:12:17,362 - 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-11-14 10:12:17,362 - 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-11-14 10:12:17,363 - DEBUG - botocore.hooks - _emit: Event before-call.s3.ListObjects: calling handler <function add_expect_header at 0x7f7b2bf231d0>
2025-11-14 10:12:17,363 - DEBUG - botocore.hooks - _emit: Event before-call.s3.ListObjects: calling handler <function add_recursion_detection_header at 0x7f7b2bf210d0>
2025-11-14 10:12:17,363 - DEBUG - botocore.hooks - _emit: Event before-call.s3.ListObjects: calling handler <function inject_api_version_header_if_needed at 0x7f7b2bf44c50>
2025-11-14 10:12:17,363 - 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:26453/insert_bucket?encoding-type=url', 'context': {'client_region': 'yandex', 'client_config': <botocore.config.Config object at 0x7f7b0f8033a0>, '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-11-14 10:12:17,364 - DEBUG - botocore.hooks - _emit: Event request-created.s3.ListObjects: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f7b0f802770>>
2025-11-14 10:12:17,364 - 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 0x7f7b0ebcbf30>>
2025-11-14 10:12:17,364 - DEBUG - botocore.hooks - _emit: Event choose-signer.s3.ListObjects: calling handler <function set_operation_specific_signer at 0x7f7b2bf22990>
2025-11-14 10:12:17,365 - DEBUG - botocore.hooks - _emit: Event before-sign.s3.ListObjects: calling handler <function remove_arn_from_signing_path at 0x7f7b2bf45790>
2025-11-14 10:12:17,365 - DEBUG - botocore.auth - add_auth: Calculating signature using v4 auth.
2025-11-14 10:12:17,365 - DEBUG - botocore.auth - add_auth: CanonicalRequest:
GET
/insert_bucket
encoding-type=url
host:localhost:26453
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20251114T101217Z

host;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2025-11-14 10:12:17,366 - DEBUG - botocore.auth - add_auth: StringToSign:
AWS4-HMAC-SHA256
20251114T101217Z
20251114/yandex/s3/aws4_request
de7ef38f3ab95d1bb1a4f14e90c4848ec7ab134d6950764eedcd32f38f054904
2025-11-14 10:12:17,366 - DEBUG - botocore.auth - add_auth: Signature:
6aadf10b98d860f3936aa257b06d18a7217ca81f3da9c422796db186c38022e5
2025-11-14 10:12:17,366 - DEBUG - botocore.hooks - _emit: Event request-created.s3.ListObjects: calling handler <function add_retry_headers at 0x7f7b2bf45550>
2025-11-14 10:12:17,366 - DEBUG - botocore.endpoint - _do_get_response: Sending http request: <AWSPreparedRequest stream_output=False, method=GET, url=http://localhost:26453/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'20251114T101217Z', 'X-Amz-Content-SHA256': b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': b'AWS4-HMAC-SHA256 Credential=key/20251114/yandex/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=6aadf10b98d860f3936aa257b06d18a7217ca81f3da9c422796db186c38022e5', 'amz-sdk-invocation-id': b'6ce66f2b-377d-4605-8c42-7de8e32321c9', 'amz-sdk-request': b'attempt=1'}>
2025-11-14 10:12:17,373 - DEBUG - botocore.parsers - parse: Response headers: {'Server': 'Werkzeug/2.2.3 Python/3.12.9', 'Date': 'Fri, 14 Nov 2025 10:12:17 GMT', 'x-amzn-requestid': 'ACSH2SoYu56YgqChPJ1M3arIQaDGC3Ouu6vHPXqvrMwEaESLzRWf', 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '236', 'Access-Control-Allow-Origin': '*', 'Connection': 'close'}
2025-11-14 10:12:17,373 - 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-11-14 10:12:17,374 - DEBUG - botocore.hooks - _emit: Event needs-retry.s3.ListObjects: calling handler <botocore.retryhandler.RetryHandler object at 0x7f7b0ee27ee0>
2025-11-14 10:12:17,374 - DEBUG - botocore.retryhandler - __call__: No retry needed.
2025-11-14 10:12:17,374 - DEBUG - botocore.hooks - _emit: Event needs-retry.s3.ListObjects: calling handler <bound method S3RegionRedirectorv2.redirect_from_error of <botocore.utils.S3RegionRedirectorv2 object at 0x7f7b0f1d85b0>>
2025-11-14 10:12:17,375 - DEBUG - botocore.hooks - _emit: Event after-call.s3.ListObjects: calling handler <function decode_list_object at 0x7f7b2bf44710>
2025-11-14 10:12:17,375 - DEBUG - boto3.resources.factory - load_from_definition: Loading s3:ObjectSummary
2025-11-14 10:12:17,375 - DEBUG - boto3.resources.model - _load_name_with_category: Renaming ObjectSummary attribute key
2025-11-14 10:12:17,376 - DEBUG - botocore.hooks - _emit: Event creating-resource-class.s3.ObjectSummary: calling handler <function lazy_call.<locals>._handler at 0x7f7b167c4950>
2025-11-14 10:12:17,406 - 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 `h312535344814300260_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: "bbbbe300-9ce2-4d0a-8e56-e8e9bbc30faf"

2025-11-14 10:12:17,427 - DEBUG - root - create_query_impl: Result: query_id: "ptqudsej28ikoutue4t1"

2025-11-14 10:12:17,440 - DEBUG - root - describe_query: Result: query {
  meta {
    common {
      id: "ptqudsej28ikoutue4t1"
      created_by: "root@builtin"
      modified_by: "root@builtin"
      created_at {
        seconds: 1763115137
        nanos: 412311000
      }
      modified_at {
        seconds: 1763115137
        nanos: 412311000
      }
      revision: 1
    }
    execute_mode: RUN
    status: STARTING
    last_job_query_revision: 1
    last_job_id: "ptjudsej28ikmp6h7irs-ptqudsej28ikoutue4t1"
    started_by: "root@builtin"
    submitted_at {
      seconds: 1763115137
      nanos: 412311000
    }
  }
  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 `h312535344814300260_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-11-14 10:12:17,952 - DEBUG - root - describe_query: Result: query {
  meta {
    common {
      id: "ptqudsej28ikoutue4t1"
      created_by: "root@builtin"
      modified_by: "root@builtin"
      created_at {
        seconds: 1763115137
        nanos: 412311000
      }
      modified_at {
        seconds: 1763115137
        nanos: 412311000
      }
      revision: 1
    }
    started_at {
      seconds: 1763115137
      nanos: 612000000
    }
    execute_mode: RUN
    status: FAILING
    last_job_query_revision: 1
    last_job_id: "ptjudsej28ikmp6h7irs-ptqudsej28ikoutue4t1"
    started_by: "root@builtin"
    submitted_at {
      seconds: 1763115137
      nanos: 412311000
    }
  }
  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 `h312535344814300260_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-11-14T10:12:17.764612Z"
    severity: 1
    issues {
      message: "Writing deadlock occurred, please increase write actor memory limit (used 1214548 bytes for 1 partitions) (appeared 1 time at 2025-11-14T10:12:17.753740Z)"
      severity: 1
    }
  }
  statistics {
    json: "{\"Graph=0\":{\"Tasks\":{\"sum\":1,\"count\":1,\"avg\":1,\"max\":1,\"min\":1},\"CpuTimeUs\":{\"sum\":\"54ms\",\"count\":1,\"avg\":\"54ms\",\"max\":\"54ms\",\"min\":\"54ms\"},\"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\" \'\"h312535344814300260_test_insert_deadlockibucket\"))\n(let $7 (S3SinkSettings \'\"test/\" \'(\'(\'\"multipart\" \'\"true\") \'(\'\"block_output\" \'\"true\")) (SecureParam \'\"cluster:default_h312535344814300260_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-11-14 10:12:18,463 - DEBUG - root - describe_query: Result: ... (repeated, see above) ...
2025-11-14 10:12:18,974 - DEBUG - root - describe_query: Result: query {
  meta {
    common {
      id: "ptqudsej28ikoutue4t1"
      created_by: "root@builtin"
      modified_by: "root@builtin"
      created_at {
        seconds: 1763115137
        nanos: 412311000
      }
      modified_at {
        seconds: 1763115137
        nanos: 412311000
      }
      revision: 1
    }
    started_at {
      seconds: 1763115137
      nanos: 612000000
    }
    finished_at {
      seconds: 1763115138
      nanos: 615000000
    }
    execute_mode: RUN
    status: FAILED
    last_job_query_revision: 1
    last_job_id: "ptjudsej28ikmp6h7irs-ptqudsej28ikoutue4t1"
    started_by: "root@builtin"
    submitted_at {
      seconds: 1763115137
      nanos: 412311000
    }
  }
  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 `h312535344814300260_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-11-14T10:12:17.764612Z"
    severity: 1
    issues {
      message: "Writing deadlock occurred, please increase write actor memory limit (used 1214548 bytes for 1 partitions) (appeared 1 time at 2025-11-14T10:12:17.753740Z)"
      severity: 1
    }
  }
  statistics {
    json: "{\"Graph=0\":{\"Tasks\":{\"sum\":1,\"count\":1,\"avg\":1,\"max\":1,\"min\":1},\"CpuTimeUs\":{\"sum\":\"54ms\",\"count\":1,\"avg\":\"54ms\",\"max\":\"54ms\",\"min\":\"54ms\"},\"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\" \'\"h312535344814300260_test_insert_deadlockibucket\"))\n(let $7 (S3SinkSettings \'\"test/\" \'(\'(\'\"multipart\" \'\"true\") \'(\'\"block_output\" \'\"true\")) (SecureParam \'\"cluster:default_h312535344814300260_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-11-14 10:12:18,982 - DEBUG - root - describe_query: Result: ... (repeated, see above) ...
2025-11-14 10:12:18,983 - INFO - ya.test - pytest_runtest_teardown: Test teardown
