============================= test session starts ==============================
platform linux -- Python 3.12.9, pytest-7.4.4, pluggy-1.5.0
rootdir: /home/runner/.ya/build/build_root/qjfv/0020c6/ydb/tests/fq/mem_alloc/test-results/py3test
configfile: pkg:library.python.pytest:pytest.yatest.ini
plugins: typeguard-2.13.3
collected 12 items

test_scheduling.py s
test_dc_local.py .
test_result_limits.py ...
test_alloc_default.py ...F..

=================================== FAILURES ===================================
____________________ TestAlloc.test_alloc_and_free[kikimr0] ____________________
ydb/tests/fq/mem_alloc/test_alloc_default.py:287: in test_alloc_and_free
    assert (
E   AssertionError: Incorrect Alloc
E   assert 4294967296 == (0 * 1073741824)
E    +  where 4294967296 = <bound method BaseTenant.get_mkql_allocated of <ydb.tests.tools.fq_runner.kikimr_runner.YqTenant object at 0x5040002d06f0>>(1)
E    +    where <bound method BaseTenant.get_mkql_allocated of <ydb.tests.tools.fq_runner.kikimr_runner.YqTenant object at 0x5040002d06f0>> = <ydb.tests.tools.fq_runner.kikimr_runner.YqTenant object at 0x5040002d06f0>.get_mkql_allocated
E    +      where <ydb.tests.tools.fq_runner.kikimr_runner.YqTenant object at 0x5040002d06f0> = <ydb.tests.tools.fq_runner.kikimr_runner.StreamingOverKikimr object at 0x5040002deaf0>.control_plane
E    +  and   1073741824 = <ydb.tests.tools.fq_runner.kikimr_runner.StreamingOverKikimr object at 0x5040002deaf0>.mkql_initial_memory_limit
------------------------------ Captured log setup ------------------------------
INFO     ya.test:ya.py:418 ####################################################################################################
INFO     ya.test:ya.py:419 test_alloc_and_free[kikimr0]
INFO     ya.test:ya.py:420 ####################################################################################################
INFO     ya.test:ya.py:421 Test setup
DEBUG    library.python.filelock:__init__.py:115 Acquiring FileLock (blocking=False): /home/runner/.ya/build/port_sync_dir/11067
DEBUG    library.python.filelock:__init__.py:115 Acquiring FileLock (blocking=False): /home/runner/.ya/build/port_sync_dir/9351
DEBUG    ya.test:ya.py:176 Binary was found by /home/runner/.ya/build/build_root/qjfv/0020c6/ydb/apps/ydbd/ydbd
DEBUG    library.python.filelock:__init__.py:115 Acquiring FileLock (blocking=False): /home/runner/.ya/build/port_sync_dir/23560
DEBUG    library.python.filelock:__init__.py:115 Acquiring FileLock (blocking=False): /home/runner/.ya/build/port_sync_dir/26529
DEBUG    ydb.connection:connection.py:295 Channel options: [('grpc.max_receive_message_length', 64000000), ('grpc.max_send_message_length', 64000000), ('grpc.primary_user_agent', 'python-library'), ('grpc.lb_policy_name', 'round_robin')]
DEBUG    ydb.resolver.DiscoveryEndpointsResolver:resolver.py:175 Preparing initial endpoint to resolve endpoints
DEBUG    ydb.connection:connection.py:295 Channel options: [('grpc.max_receive_message_length', 64000000), ('grpc.max_send_message_length', 64000000), ('grpc.primary_user_agent', 'python-library'), ('grpc.lb_policy_name', 'round_robin')]
DEBUG    ydb.resolver.DiscoveryEndpointsResolver:resolver.py:185 Resolving endpoints for database local
DEBUG    ydb.connection:connection.py:375 RpcState(ListEndpoints, 122df69e-5c31-47a9-b66c-1a50e2132ace, localhost:19254): creating call state
DEBUG    ydb.connection:connection.py:62 RpcState(ListEndpoints, 122df69e-5c31-47a9-b66c-1a50e2132ace, localhost:19254): request = { database: "local" }
DEBUG    ydb.connection:connection.py:51 RpcState(ListEndpoints, 122df69e-5c31-47a9-b66c-1a50e2132ace, localhost:19254): response = { operation { ready: true status: SUCCESS result { [type.googleapis.com/Ydb.Discovery.ListEndpointsResult] { endpoints { address: "ghrun-zvqn2idpwq.auto.internal" port: 19254 service: "legacy" service: "tablet_service" service: "yql" service: "discovery" service: "cms" service: "locking" service: "kesus" service: "pq" service: "pqcd" service: "pqv1" service: "topic" service: "datastreams" service: "scripting" service: "clickhouse_internal" service: "rate_limiter" service: "analytics" service: "export" service: "import" service: "yq" service: "keyvalue" service: "monitoring" service: "auth" service: "query_service" service: "view" location: "1" node_id: 1 } self_location: "1" } } } }
DEBUG    ydb.resolver.DiscoveryEndpointsResolver:resolver.py:155 Resolved endpoints for database local: DiscoveryResult <self_location: 1, endpoints [<Endpoint ghrun-zvqn2idpwq.auto.internal:19254, location 1, ssl: False>]>
DEBUG    ydb.connection:connection.py:295 Channel options: [('grpc.max_receive_message_length', 64000000), ('grpc.max_send_message_length', 64000000), ('grpc.primary_user_agent', 'python-library'), ('grpc.lb_policy_name', 'round_robin')]
INFO     ydb.connection:connection.py:498 Closing channel for endpoint localhost:19254
DEBUG    ydb.table.SessionPool:_sp_impl.py:260 Active session queue is empty, subscribe waiter for a session
DEBUG    ydb.table.SessionPool:_sp_impl.py:262 Subscribe waiter <Future at 0x5040005c2a70 state=pending>
DEBUG    ydb.table.SessionPool:_sp_impl.py:282 Session pool is not large enough (active_count < size: 0 < 1). will create a new session.
DEBUG    ydb.table.SessionPool:_sp_impl.py:111 Created session <ydb.table.Session object at 0x5040000b9330>
DEBUG    ydb.table.SessionPool:_sp_impl.py:238 Preparing session <ydb.table.Session object at 0x5040000b9330>
DEBUG    ydb.connection:connection.py:375 RpcState(CreateSession, ddae7780-3665-4b66-bcbd-cbe830d72587, ghrun-zvqn2idpwq.auto.internal:19254): creating call state
DEBUG    ydb.connection:connection.py:62 RpcState(CreateSession, ddae7780-3665-4b66-bcbd-cbe830d72587, ghrun-zvqn2idpwq.auto.internal:19254): request = { operation_params { operation_timeout { seconds: 3 } cancel_after { seconds: 3 } } }
DEBUG    ydb.connection:connection.py:102 RpcState(CreateSession, ddae7780-3665-4b66-bcbd-cbe830d72587, ghrun-zvqn2idpwq.auto.internal:19254): on response callback started
DEBUG    ydb.connection:connection.py:51 RpcState(CreateSession, ddae7780-3665-4b66-bcbd-cbe830d72587, ghrun-zvqn2idpwq.auto.internal:19254): response = { operation { ready: true status: SUCCESS result { [type.googleapis.com/Ydb.Table.CreateSessionResult] { session_id: "ydb://session/3?node_id=1&id=MzY1ZDJmYWUtZThjNWNiZjUtNzlmZDc4MGQtYTQ1NGJkMWU=" } } } }
DEBUG    ydb.table.SessionPool:_sp_impl.py:177 Put on session <ydb.table.Session object at 0x5040000b9330>
DEBUG    ydb.table.SessionPool:_sp_impl.py:195 Replying to waiter with a session <ydb.table.Session object at 0x5040000b9330>
DEBUG    ydb.connection:connection.py:107 RpcState(CreateSession, ddae7780-3665-4b66-bcbd-cbe830d72587, ghrun-zvqn2idpwq.auto.internal:19254): on response callback success
DEBUG    ydb.connection:connection.py:375 RpcState(CreateTable, 4697d207-a0a1-44c0-9d0f-47edebb96c62, ghrun-zvqn2idpwq.auto.internal:19254): creating call state
DEBUG    ydb.connection:connection.py:62 RpcState(CreateTable, 4697d207-a0a1-44c0-9d0f-47edebb96c62, ghrun-zvqn2idpwq.auto.internal:19254): request = { session_id: "ydb://session/3?node_id=1&id=MzY1ZDJmYWUtZThjNWNiZjUtNzlmZDc4MGQtYTQ1NGJkMWU=" path: "local/DbPoolStorage_a4b453a6-24c3-49c1-8768-b093eb6edfd9/tenants" columns { name: "tenant" type { optional_type { item { type_id: STRING } } } } columns { name: "vtenant" type { optional_type { item { type_id: STRING } } } } columns { name: "common" type { optional_type { item { type_id: BOOL } } } } columns { name: "state" type { optional_type { item { type_id: UINT32 } } } } columns { name: "state_time" type { optional_type { item { type_id: TIMESTAMP } } } } primary_key: "tenant" operation_params { operation_timeout { seconds: 600 } cancel_after { seconds: 600 } } }
DEBUG    ydb.connection:connection.py:51 RpcState(CreateTable, 4697d207-a0a1-44c0-9d0f-47edebb96c62, ghrun-zvqn2idpwq.auto.internal:19254): response = { operation { ready: true status: SUCCESS } }
DEBUG    ydb.table.SessionPool:_sp_impl.py:177 Put on session <ydb.table.Session object at 0x5040000b9330>
DEBUG    ydb.connection:connection.py:375 RpcState(CreateTable, ec2b0c08-6f61-4f36-ad85-cf5826588e6c, ghrun-zvqn2idpwq.auto.internal:19254): creating call state
DEBUG    ydb.connection:connection.py:62 RpcState(CreateTable, ec2b0c08-6f61-4f36-ad85-cf5826588e6c, ghrun-zvqn2idpwq.auto.internal:19254): request = { session_id: "ydb://session/3?node_id=1&id=MzY1ZDJmYWUtZThjNWNiZjUtNzlmZDc4MGQtYTQ1NGJkMWU=" path: "local/DbPoolStorage_a4b453a6-24c3-49c1-8768-b093eb6edfd9/mappings" columns { name: "subject_type" type { optional_type { item { type_id: STRING } } } } columns { name: "subject_id" type { optional_type { item { type_id: STRING } } } } columns { name: "vtenant" type { optional_type { item { type_id: STRING } } } } primary_key: "subject_type" primary_key: "subject_id" operation_params { operation_timeout { seconds: 600 } cancel_after { seconds: 600 } } }
DEBUG    ydb.connection:connection.py:51 RpcState(CreateTable, ec2b0c08-6f61-4f36-ad85-cf5826588e6c, ghrun-zvqn2idpwq.auto.internal:19254): response = { operation { ready: true status: SUCCESS } }
DEBUG    ydb.table.SessionPool:_sp_impl.py:177 Put on session <ydb.table.Session object at 0x5040000b9330>
DEBUG    ydb.connection:connection.py:375 RpcState(ExecuteDataQuery, b3fd07d1-3aa0-4455-ada1-723ff7f876fd, ghrun-zvqn2idpwq.auto.internal:19254): creating call state
DEBUG    ydb.connection:connection.py:62 RpcState(ExecuteDataQuery, b3fd07d1-3aa0-4455-ada1-723ff7f876fd, ghrun-zvqn2idpwq.auto.internal:19254): request = { session_id: "ydb://session/3?node_id=1&id=MzY1ZDJmYWUtZThjNWNiZjUtNzlmZDc4MGQtYTQ1NGJkMWU=" tx_control { begin_tx { serializable_read_write { } } commit_tx: true } query { yql_text: "--!syntax_v1\n            PRAGMA TablePathPrefix(\"local/DbPoolStorage_a4b453a6-24c3-49c1-8768-b093eb6edfd9\");\n            UPSERT INTO tenants (tenant, vtenant, common, state, state_time) values(\"/default\", \"/default\", true, 0, CurrentUtcTimestamp());\n                " } operation_params { operation_timeout { seconds: 600 } cancel_after { seconds: 600 } } }
DEBUG    ydb.connection:connection.py:51 RpcState(ExecuteDataQuery, b3fd07d1-3aa0-4455-ada1-723ff7f876fd, ghrun-zvqn2idpwq.auto.internal:19254): response = { operation { ready: true status: SUCCESS result { [type.googleapis.com/Ydb.Table.ExecuteQueryResult] { tx_meta { } } } } }
DEBUG    ydb.table.SessionPool:_sp_impl.py:177 Put on session <ydb.table.Session object at 0x5040000b9330>
DEBUG    ya.test:ya.py:176 Binary was found by /home/runner/.ya/build/build_root/qjfv/0020c6/ydb/apps/ydbd/ydbd
DEBUG    library.python.filelock:__init__.py:115 Acquiring FileLock (blocking=False): /home/runner/.ya/build/port_sync_dir/19715
DEBUG    library.python.filelock:__init__.py:115 Acquiring FileLock (blocking=False): /home/runner/.ya/build/port_sync_dir/19716
DEBUG    library.python.filelock:__init__.py:115 Acquiring FileLock (blocking=False): /home/runner/.ya/build/port_sync_dir/6121
DEBUG    library.python.filelock:__init__.py:115 Acquiring FileLock (blocking=False): /home/runner/.ya/build/port_sync_dir/10841
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:261 CFG_DIR_PATH="/home/runner/.ya/build/build_root/qjfv/0020c6/ydb/tests/fq/mem_alloc/test-results/py3test/testing_out_stuff/test_alloc_default.py.TestAlloc.test_alloc_and_free.kikimr0/default/kikimr_configs"
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:262 Final command: /home/runner/.ya/build/build_root/qjfv/0020c6/ydb/apps/ydbd/ydbd server --suppress-version-check --yaml-config=$CFG_DIR_PATH/config.yaml --node=1 --tenant=/default --node-kind=yq --log-file-name=/home/runner/.ya/build/build_root/qjfv/0020c6/ydb/tests/fq/mem_alloc/test-results/py3test/testing_out_stuff/test_alloc_default.py.TestAlloc.test_alloc_and_free.kikimr0/default/node_1/logfile_hu3g5ghl.log --grpc-port=26529 --mon-port=19716 --ic-port=23560
DEBUG    ya.test:process.py:610 Executing '('/home/runner/.ya/build/build_root/qjfv/0020c6/ydb/apps/ydbd/ydbd', 'server', '--suppress-version-check', '--yaml-config=/home/runner/.ya/build/build_root/qjfv/0020c6/ydb/tests/fq/mem_alloc/test-results/py3test/testing_out_stuff/test_alloc_default.py.TestAlloc.test_alloc_and_free.kikimr0/default/kikimr_configs/config.yaml', '--node=1', '--tenant=/default', '--node-kind=yq', '--log-file-name=/home/runner/.ya/build/build_root/qjfv/0020c6/ydb/tests/fq/mem_alloc/test-results/py3test/testing_out_stuff/test_alloc_default.py.TestAlloc.test_alloc_and_free.kikimr0/default/node_1/logfile_hu3g5ghl.log', '--grpc-port=26529', '--mon-port=19716', '--ic-port=23560')' in '/home/runner/.ya/build/build_root/qjfv/0020c6/ydb/tests/fq/mem_alloc/test-results/py3test/testing_out_stuff/test_alloc_default.py.TestAlloc.test_alloc_and_free.kikimr0/default/node_1' (no wait)
DEBUG    ya.test:process.py:628 Command pid: 1053368
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:297 Started node localhost:26529/1
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:505 Cluster started and initialized
------------------------------ Captured log call -------------------------------
INFO     ya.test:ya.py:434 Test call (class_name: test_alloc_default.py::TestAlloc, test_name: test_alloc_and_free[kikimr0])
DEBUG    root:kikimr_runner.py:283 Wait for node 1 to bootstrap
DEBUG    root:kikimr_runner.py:294 Node 1 has been bootstrapped
DEBUG    root:kikimr_runner.py:250 MQKL node 1 = 0
DEBUG    root:control_plane.py:61 Requesting CreateStream.
Database: "local".
Request:
stream_name: "/local/select_alloc_and_free_input"
shard_count: 1
write_quota_kb_per_sec: 1024
retention_period_hours: 1

DEBUG    root:control_plane.py:45 Response: operation {
  ready: true
  status: SUCCESS
}

DEBUG    root:control_plane.py:49 Result: 
DEBUG    ydb.resolver.DiscoveryEndpointsResolver:resolver.py:175 Preparing initial endpoint to resolve endpoints
DEBUG    ydb.connection:connection.py:295 Channel options: [('grpc.max_receive_message_length', 64000000), ('grpc.max_send_message_length', 64000000), ('grpc.primary_user_agent', 'python-library'), ('grpc.lb_policy_name', 'round_robin')]
DEBUG    ydb.resolver.DiscoveryEndpointsResolver:resolver.py:185 Resolving endpoints for database local
DEBUG    ydb.connection:connection.py:375 RpcState(ListEndpoints, 90896a4b-c699-4173-8f97-4dc3f4e2b0e4, localhost:19254): creating call state
DEBUG    ydb.connection:connection.py:62 RpcState(ListEndpoints, 90896a4b-c699-4173-8f97-4dc3f4e2b0e4, localhost:19254): request = { database: "local" }
DEBUG    ydb.connection:connection.py:51 RpcState(ListEndpoints, 90896a4b-c699-4173-8f97-4dc3f4e2b0e4, localhost:19254): response = { operation { ready: true status: SUCCESS result { [type.googleapis.com/Ydb.Discovery.ListEndpointsResult] { endpoints { address: "ghrun-zvqn2idpwq.auto.internal" port: 19254 service: "legacy" service: "tablet_service" service: "yql" service: "discovery" service: "cms" service: "locking" service: "kesus" service: "pq" service: "pqcd" service: "pqv1" service: "topic" service: "datastreams" service: "scripting" service: "clickhouse_internal" service: "rate_limiter" service: "analytics" service: "export" service: "import" service: "yq" service: "keyvalue" service: "monitoring" service: "auth" service: "query_service" service: "view" location: "1" node_id: 1 } self_location: "1" } } } }
DEBUG    ydb.resolver.DiscoveryEndpointsResolver:resolver.py:155 Resolved endpoints for database local: DiscoveryResult <self_location: 1, endpoints [<Endpoint ghrun-zvqn2idpwq.auto.internal:19254, location 1, ssl: False>]>
INFO     ydb.connection:connection.py:498 Closing channel for endpoint localhost:19254
DEBUG    root:fq_client.py:167 Request: content {
  type: STREAMING
  name: "simple"
  acl {
    visibility: PRIVATE
  }
  limits {
    execution_timeout {
    }
  }
  text: "\n            SELECT COUNT(*)\n            FROM myyds.`select_alloc_and_free_input`\n            GROUP BY HOP(Just(CurrentUtcTimestamp()), \"PT10S\", \"PT10S\", \"PT10S\"), Data\n            LIMIT 1\n            "
  syntax: YQL_V1
}
execute_mode: RUN
idempotency_key: "8f056642-96ab-47fc-9ad2-0e80918415ba"

DEBUG    root:fq_client.py:177 Result: query_id: "ptqudp86u680emiejkha"

DEBUG    root:fq_client.py:264 Result: query {
  meta {
    common {
      id: "ptqudp86u680emiejkha"
      created_by: "root@builtin"
      modified_by: "root@builtin"
      created_at {
        seconds: 1766632852
        nanos: 291017000
      }
      modified_at {
        seconds: 1766632852
        nanos: 291017000
      }
      revision: 1
    }
    execute_mode: RUN
    status: STARTING
    last_job_query_revision: 1
    last_job_id: "ptjudp86u6806rn98i3s-ptqudp86u680emiejkha"
    started_by: "root@builtin"
    submitted_at {
      seconds: 1766632852
      nanos: 291017000
    }
  }
  content {
    type: STREAMING
    name: "simple"
    acl {
      visibility: PRIVATE
    }
    limits {
      execution_timeout {
      }
    }
    text: "\n            SELECT COUNT(*)\n            FROM myyds.`select_alloc_and_free_input`\n            GROUP BY HOP(Just(CurrentUtcTimestamp()), \"PT10S\", \"PT10S\", \"PT10S\"), Data\n            LIMIT 1\n            "
    syntax: YQL_V1
  }
}

DEBUG    root:fq_client.py:264 Result: query {
  meta {
    common {
      id: "ptqudp86u680emiejkha"
      created_by: "root@builtin"
      modified_by: "root@builtin"
      created_at {
        seconds: 1766632852
        nanos: 291017000
      }
      modified_at {
        seconds: 1766632852
        nanos: 291017000
      }
      revision: 1
    }
    started_at {
      seconds: 1766632854
      nanos: 596000000
    }
    execute_mode: RUN
    status: RUNNING
    last_job_query_revision: 1
    last_job_id: "ptjudp86u6806rn98i3s-ptqudp86u680emiejkha"
    started_by: "root@builtin"
    submitted_at {
      seconds: 1766632852
      nanos: 291017000
    }
  }
  content {
    type: STREAMING
    name: "simple"
    acl {
      visibility: PRIVATE
    }
    limits {
      execution_timeout {
      }
    }
    text: "\n            SELECT COUNT(*)\n            FROM myyds.`select_alloc_and_free_input`\n            GROUP BY HOP(Just(CurrentUtcTimestamp()), \"PT10S\", \"PT10S\", \"PT10S\"), Data\n            LIMIT 1\n            "
    syntax: YQL_V1
  }
  plan {
    json: "{\"Detailed\":{\"Operations\":[{\"Id\":12,\"Name\":\"DqStage\",\"Streams\":{\"Program\":[{\"Name\":\"DqSourceWideWrap\"},{\"Name\":\"NarrowMap\"}]}},{\"Id\":10,\"Name\":\"DqStage\",\"Streams\":{\"Program\":[{\"Name\":\"FromFlow\"},{\"Name\":\"MultiHoppingCore\"},{\"Name\":\"ExtractMembers\"},{\"Name\":\"Take\"}]},\"DependsOn\":[12]},{\"Id\":8,\"Name\":\"DqStage\",\"Streams\":{\"Program\":[{\"Name\":\"Take\"},{\"Name\":\"FlatMap\"}]},\"DependsOn\":[10]},{\"Id\":6,\"Name\":\"DqStage\",\"Streams\":{\"Program\":[]},\"DependsOn\":[8]},{\"Id\":3,\"Name\":\"ResPull!\",\"DependsOn\":[6]},{\"Id\":1,\"Name\":\"Commit!\",\"DependsOn\":[3]}],\"OperationRoot\":1,\"Providers\":[],\"OperationStats\":{\"Commit!\":1,\"DqStage\":4,\"ResPull!\":1}},\"Basic\":{\"nodes\":[{\"id\":12,\"level\":1,\"name\":\"DqStage #12\",\"type\":\"op\"},{\"id\":10,\"level\":2,\"name\":\"DqStage #10\",\"type\":\"op\"},{\"id\":8,\"level\":3,\"name\":\"DqStage #8\",\"type\":\"op\"},{\"id\":6,\"level\":4,\"name\":\"DqStage #6\",\"type\":\"op\"},{\"id\":3,\"level\":5,\"name\":\"ResPull!\",\"type\":\"op\"},{\"id\":1,\"level\":6,\"name\":\"Commit!\",\"type\":\"op\"}],\"links\":[{\"source\":12,\"target\":10},{\"source\":10,\"target\":8},{\"source\":8,\"target\":6},{\"source\":6,\"target\":3},{\"source\":3,\"target\":1}]}}"
  }
  result_set_meta {
    column {
      name: "column0"
      type {
        type_id: UINT64
      }
    }
  }
  ast {
    data: "(\n(let $1 (Configure! world (DataSource \'\"config\") \'\"DqEngine\" \'\"force\"))\n(let $2 (DataSink \'result))\n(let $3 (DataSource \'\"pq\" \'\"myyds\"))\n(let $4 (StructType \'(\'\"Data\" (DataType \'String))))\n(let $5 (PqTopic \'\"myyds\" \'\"local\" \'\"select_alloc_and_free_input\" \'(\'(\'\"PartitionsCount\" \'1)) \'() $4))\n(let $6 \'(\'\"Data\"))\n(let $7 \'(\'\"SharedReading\" \'0))\n(let $8 \'(\'(\'\"Endpoint\" \'\"localhost:19254\") $7 \'(\'\"ReconnectPeriod\" \'\"\") \'(\'\"Format\" \'\"raw\") \'(\'\"ReadGroup\" \'\"ptcudp86u8p2lpsucjjb\") \'(\'\"AddBearerToToken\" \'1)))\n(let $9 (DqPqTopicSource world $5 $6 $8 (SecureParam \'\"cluster:default_myyds\") \'\"\" $4))\n(let $10 (DqStage \'((DqSource $3 $9)) (lambda \'($17) (block \'(\n  (let $18 \'(\'(\'\"format\" \'\"raw\") \'(\'\"formatSettings\" \'(\'(\'\"data.datetime.formatname\" \'\"POSIX\") \'(\'\"data.timestamp.formatname\" \'\"POSIX\"))) \'(\'\"settings\" \'($7))))\n  (let $19 (DqSourceWideWrap $17 $3 $4 $18))\n  (return (NarrowMap $19 (lambda \'($20) (AsStruct \'(\'\"Data\" $20)))))\n))) \'(\'(\'\"_logical_id\" \'200463))))\n(let $11 (Uint64 \'1))\n(let $12 (DqStage \'((DqCnHashShuffle (TDqOutput $10 \'0) $6)) (lambda \'($21) (block \'(\n  (let $22 (Interval \'10000000))\n  (let $23 (lambda \'($30) $30))\n  (let $24 (MultiHoppingCore (FromFlow $21) (lambda \'($25) (Member $25 \'\"Data\")) (lambda \'($26) (Just (CurrentUtcTimestamp))) $22 $22 $22 \'true (lambda \'($27) (AsStruct \'(\'Count0 $11))) (lambda \'($28 $29) (AsStruct \'(\'Count0 (Inc (Member $29 \'Count0))))) $23 $23 (lambda \'($31 $32) (AsStruct \'(\'Count0 (AggrAdd (Member $31 \'Count0) (Member $32 \'Count0))))) (lambda \'($33 $34 $35) (AsStruct \'(\'Count0 (Member $34 \'Count0)) \'(\'\"Data\" $33) \'(\'\"_yql_time\" $35))) \'0))\n  (return (Take (ExtractMembers $24 \'(\'Count0)) $11))\n))) \'(\'(\'\"_logical_id\" \'200739))))\n(let $13 (DqStage \'((DqCnUnionAll (TDqOutput $12 \'0))) (lambda \'($36) (FlatMap (Take $36 $11) (lambda \'($37) (Just (AsStruct \'(\'\"column0\" (Member $37 \'Count0))))))) \'(\'(\'\"_logical_id\" \'200806))))\n(let $14 (DqStage \'((DqCnUnionAll (TDqOutput $13 \'0))) (lambda \'($38) $38) \'(\'(\'\"_logical_id\" \'200849))))\n(let $15 \'(\'(\'type) \'(\'autoref) \'(\'columns \'(\'\"column0\"))))\n(let $16 (ResPull! $1 $2 (Key) (DqCnResult (TDqOutput $14 \'0) \'()) $15 \'\"dq\"))\n(return (Commit! (Commit! $16 $2) (DataSink \'\"pq\" \'\"myyds\")))\n)\n"
  }
}

DEBUG    root:kikimr_runner.py:250 MQKL node 1 = 4294967296
---------------------------- Captured log teardown -----------------------------
INFO     ya.test:ya.py:429 Test teardown
DEBUG    ydb.resolver.DiscoveryEndpointsResolver:resolver.py:175 Preparing initial endpoint to resolve endpoints
DEBUG    ydb.connection:connection.py:295 Channel options: [('grpc.max_receive_message_length', 64000000), ('grpc.max_send_message_length', 64000000), ('grpc.primary_user_agent', 'python-library'), ('grpc.lb_policy_name', 'round_robin')]
DEBUG    ydb.resolver.DiscoveryEndpointsResolver:resolver.py:185 Resolving endpoints for database local
DEBUG    ydb.connection:connection.py:375 RpcState(ListEndpoints, 477d8299-99fa-4f56-a4ae-64dce183100f, localhost:19254): creating call state
DEBUG    ydb.connection:connection.py:62 RpcState(ListEndpoints, 477d8299-99fa-4f56-a4ae-64dce183100f, localhost:19254): request = { database: "local" }
DEBUG    ydb.connection:connection.py:51 RpcState(ListEndpoints, 477d8299-99fa-4f56-a4ae-64dce183100f, localhost:19254): response = { operation { ready: true status: SUCCESS result { [type.googleapis.com/Ydb.Discovery.ListEndpointsResult] { endpoints { address: "ghrun-zvqn2idpwq.auto.internal" port: 19254 service: "legacy" service: "tablet_service" service: "yql" service: "discovery" service: "cms" service: "locking" service: "kesus" service: "pq" service: "pqcd" service: "pqv1" service: "topic" service: "datastreams" service: "scripting" service: "clickhouse_internal" service: "rate_limiter" service: "analytics" service: "export" service: "import" service: "yq" service: "keyvalue" service: "monitoring" service: "auth" service: "query_service" service: "view" location: "1" node_id: 1 } self_location: "1" } } } }
DEBUG    ydb.resolver.DiscoveryEndpointsResolver:resolver.py:155 Resolved endpoints for database local: DiscoveryResult <self_location: 1, endpoints [<Endpoint ghrun-zvqn2idpwq.auto.internal:19254, location 1, ssl: False>]>
INFO     ydb.connection:connection.py:498 Closing channel for endpoint localhost:19254
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:269 Stopped node localhost:26529/1
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/10841
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/6121
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/19716
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/26529
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/23560
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/9351
============================== slowest durations ===============================
183.05s teardown test_result_limits.py::TestResultLimits::test_many_rows
60.56s call     test_result_limits.py::TestResultLimits::test_many_rows
56.71s call     test_alloc_default.py::TestAlloc::test_node_limit[kikimr0]
45.79s call     test_result_limits.py::TestResultLimits::test_large_row
41.42s call     test_dc_local.py::TestAlloc::test_dc_locality[kikimr0]
24.97s call     test_result_limits.py::TestResultLimits::test_quotas[kikimr0]
24.63s call     test_alloc_default.py::TestAlloc::test_default_delta[kikimr0]
19.70s call     test_alloc_default.py::TestAlloc::test_default_limits[kikimr0]
18.52s call     test_alloc_default.py::TestAlloc::test_up_down[kikimr0]
16.03s call     test_alloc_default.py::TestAlloc::test_mkql_not_increased[kikimr0]
12.01s teardown test_result_limits.py::TestResultLimits::test_large_row
11.19s call     test_alloc_default.py::TestAlloc::test_alloc_and_free[kikimr0]
7.07s teardown test_dc_local.py::TestAlloc::test_dc_locality[kikimr0]
7.01s teardown test_alloc_default.py::TestAlloc::test_default_delta[kikimr0]
7.01s teardown test_alloc_default.py::TestAlloc::test_node_limit[kikimr0]
7.01s teardown test_alloc_default.py::TestAlloc::test_default_limits[kikimr0]
3.01s teardown test_result_limits.py::TestResultLimits::test_quotas[kikimr0]
3.01s teardown test_alloc_default.py::TestAlloc::test_up_down[kikimr0]
3.01s teardown test_alloc_default.py::TestAlloc::test_mkql_not_increased[kikimr0]
3.01s teardown test_alloc_default.py::TestAlloc::test_alloc_and_free[kikimr0]
1.66s setup    test_result_limits.py::TestResultLimits::test_many_rows
1.17s setup    test_dc_local.py::TestAlloc::test_dc_locality[kikimr0]
0.56s setup    test_alloc_default.py::TestAlloc::test_hard_limit[kikimr0]
0.52s setup    test_alloc_default.py::TestAlloc::test_default_delta[kikimr0]
0.51s setup    test_alloc_default.py::TestAlloc::test_node_limit[kikimr0]
0.49s setup    test_alloc_default.py::TestAlloc::test_alloc_and_free[kikimr0]
0.48s setup    test_result_limits.py::TestResultLimits::test_quotas[kikimr0]
0.46s setup    test_alloc_default.py::TestAlloc::test_mkql_not_increased[kikimr0]
0.44s setup    test_alloc_default.py::TestAlloc::test_default_limits[kikimr0]
0.44s setup    test_alloc_default.py::TestAlloc::test_up_down[kikimr0]
0.42s setup    test_result_limits.py::TestResultLimits::test_large_row

(2 durations < 0.005s hidden.  Use -vv to show these durations.)
=========================== short test summary info ============================
FAILED test_alloc_default.py::TestAlloc::test_alloc_and_free[kikimr0] - AssertionError: Incorrect Alloc
assert 4294967296 == (0 * 1073741824)
 +  where 4294967296 = <bound method BaseTenant.get_mkql_allocated of <ydb.tests.tools.fq_runner.kikimr_runner.YqTenant object at 0x5040002d06f0>>(1)
 +    where <bound method BaseTenant.get_mkql_allocated of <ydb.tests.tools.fq_runner.kikimr_runner.YqTenant object at 0x5040002d06f0>> = <ydb.tests.tools.fq_runner.kikimr_runner.YqTenant object at 0x5040002d06f0>.get_mkql_allocated
 +      where <ydb.tests.tools.fq_runner.kikimr_runner.YqTenant object at 0x5040002d06f0> = <ydb.tests.tools.fq_runner.kikimr_runner.StreamingOverKikimr object at 0x5040002deaf0>.control_plane
 +  and   1073741824 = <ydb.tests.tools.fq_runner.kikimr_runner.StreamingOverKikimr object at 0x5040002deaf0>.mkql_initial_memory_limit
!!!!!!!!!!!!!! _pytest.outcomes.Exit: Graceful shutdown requested !!!!!!!!!!!!!!
============== 1 failed, 9 passed, 1 skipped in 609.55s (0:10:09) ==============

Traceback (most recent call last):
  File "library/python/testing/yatest_common/yatest/common/process.py", line 384, in wait
    wait_for(
  File "library/python/testing/yatest_common/yatest/common/process.py", line 764, in wait_for
    raise TimeoutError(truncate(message, MAX_MESSAGE_LEN))
yatest.common.process.TimeoutError: ...d '['/home/runner/.ya/build/build_root/qjfv/0020c6/ydb/tests/fq/mem_alloc/ydb-tests-fq-mem_alloc', '--basetemp', '/home/runner/.ya/build/build_root/qjfv/0020c6/tmp', '--capture', 'no', '-c', 'pkg:library.python.pytest:pytest.yatest.ini', '-p', 'no:factor', '--doctest-modules', '--ya-trace', '/home/runner/.ya/build/build_root/qjfv/0020c6/ydb/tests/fq/mem_alloc/test-results/py3test/ytest.report.trace', '--build-root', '/home/runner/.ya/build/build_root/qjfv/0020c6', '--source-root', '/home/runner/.ya/build/build_root/qjfv/0020c6/environment/arcadia', '--output-dir', '/home/runner/.ya/build/build_root/qjfv/0020c6/ydb/tests/fq/mem_alloc/test-results/py3test/testing_out_stuff', '--durations', '0', '--project-path', 'ydb/tests/fq/mem_alloc', '--test-tool-bin', '/home/runner/.ya/tools/v4/8067063302/test_tool', '--ya-version', '2', '--collect-cores', '--sanitizer-extra-checks', '--build-type', 'release', '--tb', 'short', '--dep-root', 'ydb/tests/fq/mem_alloc', '--flags', 'APPLE_SDK_LOCAL=yes', '--flags', 'CFLAGS=-fno-omit-frame-pointer -Wno-unknown-argument', '--flags', 'DEBUGINFO_LINES_ONLY=yes', '--flags', 'DISABLE_FLAKE8_MIGRATIONS=yes', '--flags', 'OPENSOURCE=yes', '--flags', 'SANITIZER_TYPE=address', '--flags', 'TESTS_REQUESTED=yes', '--flags', 'USE_AIO=static', '--flags', 'USE_CLANG_CL=yes', '--flags', 'USE_EAT_MY_DATA=yes', '--flags', 'USE_ICONV=static', '--flags', 'USE_IDN=static', '--flags', 'USE_PREBUILT_TOOLS=no', '--sanitize', 'address']' stopped by 600 seconds timeout

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "devtools/ya/test/programs/test_tool/run_test/run_test.py", line 1749, in main
    res.wait(check_exit_code=False, timeout=run_timeout, on_timeout=timeout_callback)
  File "library/python/testing/yatest_common/yatest/common/process.py", line 398, in wait
    raise ExecutionTimeoutError(self, str(e))
yatest.common.process.ExecutionTimeoutError: (("...d '['/home/runner/.ya/build/build_root/qjfv/0020c6/ydb/tests/fq/mem_alloc/ydb-tests-fq-mem_alloc', '--basetemp', '/home/runner/.ya/build/build_root/qjfv/0020c6/tmp', '--capture', 'no', '-c', 'pkg:library.python.pytest:pytest.yatest.ini', '-p', 'no:factor', '--doctest-modules', '--ya-trace', '/home/runner/.ya/build/build_root/qjfv/0020c6/ydb/tests/fq/mem_alloc/test-results/py3test/ytest.report.trace', '--build-root', '/home/runner/.ya/build/build_root/qjfv/0020c6', '--source-root', '/home/runner/.ya/build/build_root/qjfv/0020c6/environment/arcadia', '--output-dir', '/home/runner/.ya/build/build_root/qjfv/0020c6/ydb/tests/fq/mem_alloc/test-results/py3test/testing_out_stuff', '--durations', '0', '--project-path', 'ydb/tests/fq/mem_alloc', '--test-tool-bin', '/home/runner/.ya/tools/v4/8067063302/test_tool', '--ya-version', '2', '--collect-cores', '--sanitizer-extra-checks', '--build-type', 'release', '--tb', 'short', '--dep-root', 'ydb/tests/fq/mem_alloc', '--flags', 'APPLE_SDK_LOCAL=yes', '--flags', 'CFLAGS=-fno-omit-frame-pointer -Wno-unknown-argument', '--flags', 'DEBUGINFO_LINES_ONLY=yes', '--flags', 'DISABLE_FLAKE8_MIGRATIONS=yes', '--flags', 'OPENSOURCE=yes', '--flags', 'SANITIZER_TYPE=address', '--flags', 'TESTS_REQUESTED=yes', '--flags', 'USE_AIO=static', '--flags', 'USE_CLANG_CL=yes', '--flags', 'USE_EAT_MY_DATA=yes', '--flags', 'USE_ICONV=static', '--flags', 'USE_IDN=static', '--flags', 'USE_PREBUILT_TOOLS=no', '--sanitize', 'address']' stopped by 600 seconds timeout",), {})
