============================= test session starts ==============================
platform linux -- Python 3.13.15, pytest-8.0.2, pluggy-1.6.0
rootdir: /home/runner/.ya/build/build_root/pvde/002e3d/ydb/tests/fq/streaming/test-results/py3test/chunk1
configfile: pkg:library.python.pytest:pytest.yatest.ini
plugins: typeguard-4.6.0
collected 349 items

ydb/tests/fq/streaming/test_rescaling.py .s...F......

=================================== FAILURES ===================================
_______ TestRescaling.test_pq_source_rescaling_partition_increase[local] _______
contrib/python/ydb/py3/ydb/connection.py:547: in __call__
    response = rpc_state(
contrib/python/ydb/py3/ydb/connection.py:295: in __call__
    response, rendezvous = self.rpc.with_call(*args, **kwargs)
contrib/python/grpcio/py3/grpc/_channel.py:1198: in with_call
    return _end_unary_response_blocking(state, call, True, None)
contrib/python/grpcio/py3/grpc/_channel.py:1006: in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
E   grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E   	status = StatusCode.UNAVAILABLE
E   	details = "connections to all backends failing; last error: UNKNOWN: ipv4:127.0.1.1:24961: Failed to connect to remote host: Connection refused"
E   	debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"connections to all backends failing; last error: UNKNOWN: ipv4:127.0.1.1:24961: Failed to connect to remote host: Connection refused", grpc_status:14, created_time:"2026-11-18T18:59:32.548273935+00:00", file_line:1234, file:"contrib/libs/grpc/src/core/lib/surface/call.cc"}"
E   >

During handling of the above exception, another exception occurred:
ydb/tests/fq/streaming/test_rescaling.py:521: in test_pq_source_rescaling_partition_increase
    client.driver.topic_client.alter_topic(
contrib/python/ydb/py3/ydb/topic.py:554: in alter_topic
    self._driver(
contrib/python/ydb/py3/ydb/tracing.py:77: in wrapper
    return f(self, *args, **kwargs)
contrib/python/ydb/py3/ydb/pool.py:554: in __call__
    res = connection(
contrib/python/ydb/py3/ydb/connection.py:561: in __call__
    raise _rpc_error_handler(rpc_state, rpc_error, on_disconnected)
E   ydb.issues.ConnectionLost: Rpc error, reason <_InactiveRpcError of RPC that terminated with:
E   	status = StatusCode.UNAVAILABLE
E   	details = "connections to all backends failing; last error: UNKNOWN: ipv4:127.0.1.1:24961: Failed to connect to remote host: Connection refused"
E   	debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"connections to all backends failing; last error: UNKNOWN: ipv4:127.0.1.1:24961: Failed to connect to remote host: Connection refused", grpc_status:14, created_time:"2026-11-18T18:59:32.548273935+00:00", file_line:1234, file:"contrib/libs/grpc/src/core/lib/surface/call.cc"}"
E   >
------------------------------ Captured log setup ------------------------------
INFO     ya.test:ya.py:475 ####################################################################################################
INFO     ya.test:ya.py:476 test_pq_source_rescaling_partition_increase[local]
INFO     ya.test:ya.py:477 ####################################################################################################
INFO     ya.test:ya.py:478 Test setup
INFO     ydb.tests.fq.streaming_common.common:common.py:738 KQP resource snapshot node counts: {1: 2, 2: 2} (expected 2)
------------------------------ Captured log call -------------------------------
INFO     ya.test:ya.py:491 Test call (class_name: test_rescaling.py::TestRescaling, test_name: test_pq_source_rescaling_partition_increase[local])
DEBUG    root:control_plane.py:71 Requesting CreateStream.
Database: "/Root/my_tenant".
Request:
stream_name: "/Root/my_tenant/pq_source_rescaling_partition_increase_Q92qIFc0_Q92qIFc0_input"
shard_count: 1
write_quota_kb_per_sec: 1024
retention_period_hours: 1

DEBUG    root:control_plane.py:55 Response: operation {
  ready: true
  status: SUCCESS
  result {
    type_url: "type.googleapis.com/Ydb.DataStreams.V1.CreateStreamResponse"
  }
}

DEBUG    root:control_plane.py:59 Result: 
DEBUG    root:control_plane.py:71 Requesting CreateStream.
Database: "/Root/my_tenant".
Request:
stream_name: "/Root/my_tenant/pq_source_rescaling_partition_increase_Q92qIFc0_Q92qIFc0_output"
shard_count: 1
write_quota_kb_per_sec: 1024
retention_period_hours: 1

DEBUG    root:control_plane.py:55 Response: operation {
  ready: true
  status: SUCCESS
  result {
    type_url: "type.googleapis.com/Ydb.DataStreams.V1.CreateStreamResponse"
  }
}

DEBUG    root:control_plane.py:59 Result: 
DEBUG    root:control_plane.py:55 Response: operation {
  ready: true
  status: SUCCESS
  result {
    type_url: "type.googleapis.com/Ydb.PersQueue.V1.AddReadRuleResponse"
  }
}

DEBUG    root:control_plane.py:59 Result: 
DEBUG    ydb.query.pool:pool.py:118 Acquired active session from queue: ydb://session/3?node_id=50000&id=NzhjY2U4N2QtNWFhODE1YmYtNWQ1OWYzYzYtMmY0MGQ2ZDQ%3D
DEBUG    ydb.connection:connection.py:464 RpcState(ExecuteQuery, 8210bb69-1c3d-4467-bcb6-df5f17aec954, ghrun-x463dq3b6y.auto.internal:26502): creating call state
DEBUG    ydb.connection:connection.py:78 RpcState(ExecuteQuery, 8210bb69-1c3d-4467-bcb6-df5f17aec954, ghrun-x463dq3b6y.auto.internal:26502): request = { session_id: "ydb://session/3?node_id=50000&id=NzhjY2U4N2QtNWFhODE1YmYtNWQ1OWYzYzYtMmY0MGQ2ZDQ%3D" exec_mode: EXEC_MODE_EXECUTE query_content { syntax: SYNTAX_YQL_V1 text: "\n            CREATE EXTERNAL DATA SOURCE `pq_source_rescaling_partition_increase_Q92qIFc0_Q92qIFc0` WITH (\n                SOURCE_TYPE = \'Ydb\',\n                LOCATION = \'localhost:18683\',\n                DATABASE_NAME = \'/Root/my_tenant\',\n                \n                AUTH_METHOD = \'NONE\'\n            );\n        " } stats_mode: STATS_MODE_NONE schema_inclusion_mode: SCHEMA_INCLUSION_MODE_ALWAYS result_set_format: FORMAT_VALUE }
DEBUG    ydb.connection:connection.py:67 RpcState(ExecuteQuery, 8210bb69-1c3d-4467-bcb6-df5f17aec954, ghrun-x463dq3b6y.auto.internal:26502): response = { <_MultiThreadedRendezvous object> }
DEBUG    ydb.query.pool:pool.py:139 Session returned to queue: ydb://session/3?node_id=50000&id=NzhjY2U4N2QtNWFhODE1YmYtNWQ1OWYzYzYtMmY0MGQ2ZDQ%3D
DEBUG    ydb.query.pool:pool.py:118 Acquired active session from queue: ydb://session/3?node_id=50000&id=NzhjY2U4N2QtNWFhODE1YmYtNWQ1OWYzYzYtMmY0MGQ2ZDQ%3D
DEBUG    ydb.connection:connection.py:464 RpcState(ExecuteQuery, 1c584ca6-0e8a-47dc-bc37-07fd187aff6f, ghrun-x463dq3b6y.auto.internal:26502): creating call state
DEBUG    ydb.connection:connection.py:78 RpcState(ExecuteQuery, 1c584ca6-0e8a-47dc-bc37-07fd187aff6f, ghrun-x463dq3b6y.auto.internal:26502): request = { session_id: "ydb://session/3?node_id=50000&id=NzhjY2U4N2QtNWFhODE1YmYtNWQ1OWYzYzYtMmY0MGQ2ZDQ%3D" exec_mode: EXEC_MODE_EXECUTE query_content { syntax: SYNTAX_YQL_V1 text: "\n            CREATE STREAMING QUERY `pq_source_rescaling_partition_increase_Q92qIFc0` AS DO BEGIN\n                $input = SELECT value FROM `pq_source_rescaling_partition_increase_Q92qIFc0_Q92qIFc0_input` WITH (\n                    FORMAT = json_each_row,\n                    SCHEMA (value String NOT NULL)\n                )\n                WHERE value LIKE \"%data%\";\n                INSERT INTO `pq_source_rescaling_partition_increase_Q92qIFc0_Q92qIFc0_output` SELECT value FROM $input;\n            END DO;\n        " } stats_mode: STATS_MODE_NONE schema_inclusion_mode: SCHEMA_INCLUSION_MODE_ALWAYS result_set_format: FORMAT_VALUE }
DEBUG    ydb.connection:connection.py:67 RpcState(ExecuteQuery, 1c584ca6-0e8a-47dc-bc37-07fd187aff6f, ghrun-x463dq3b6y.auto.internal:26502): response = { <_MultiThreadedRendezvous object> }
DEBUG    ydb.query.pool:pool.py:139 Session returned to queue: ydb://session/3?node_id=50000&id=NzhjY2U4N2QtNWFhODE1YmYtNWQ1OWYzYzYtMmY0MGQ2ZDQ%3D
DEBUG    ydb.query.pool:pool.py:118 Acquired active session from queue: ydb://session/3?node_id=50000&id=NzhjY2U4N2QtNWFhODE1YmYtNWQ1OWYzYzYtMmY0MGQ2ZDQ%3D
DEBUG    ydb.connection:connection.py:464 RpcState(ExecuteQuery, 48ceb116-a84c-434a-a8e2-1644ae199d90, ghrun-x463dq3b6y.auto.internal:26502): creating call state
DEBUG    ydb.connection:connection.py:78 RpcState(ExecuteQuery, 48ceb116-a84c-434a-a8e2-1644ae199d90, ghrun-x463dq3b6y.auto.internal:26502): request = { session_id: "ydb://session/3?node_id=50000&id=NzhjY2U4N2QtNWFhODE1YmYtNWQ1OWYzYzYtMmY0MGQ2ZDQ%3D" exec_mode: EXEC_MODE_EXECUTE query_content { syntax: SYNTAX_YQL_V1 text: "ALTER STREAMING QUERY `pq_source_rescaling_partition_increase_Q92qIFc0` SET (RUN = FALSE);" } stats_mode: STATS_MODE_NONE schema_inclusion_mode: SCHEMA_INCLUSION_MODE_ALWAYS result_set_format: FORMAT_VALUE }
DEBUG    ydb.connection:connection.py:67 RpcState(ExecuteQuery, 48ceb116-a84c-434a-a8e2-1644ae199d90, ghrun-x463dq3b6y.auto.internal:26502): response = { <_MultiThreadedRendezvous object> }
DEBUG    ydb.query.pool:pool.py:139 Session returned to queue: ydb://session/3?node_id=50000&id=NzhjY2U4N2QtNWFhODE1YmYtNWQ1OWYzYzYtMmY0MGQ2ZDQ%3D
DEBUG    ydb.topic:topic.py:547 Alter topic request: path=pq_source_rescaling_partition_increase_Q92qIFc0_Q92qIFc0_input
DEBUG    ydb.connection:connection.py:464 RpcState(AlterTopic, 81213479-c02d-4026-a5ff-59f9e62d40d9, ghrun-x463dq3b6y.auto.internal:24961): creating call state
DEBUG    ydb.connection:connection.py:78 RpcState(AlterTopic, 81213479-c02d-4026-a5ff-59f9e62d40d9, ghrun-x463dq3b6y.auto.internal:24961): request = { operation_params { operation_timeout { seconds: 600 } cancel_after { seconds: 600 } } path: "pq_source_rescaling_partition_increase_Q92qIFc0_Q92qIFc0_input" alter_partitioning_settings { set_min_active_partitions: 20 } }
DEBUG    ydb.connection:connection.py:93 RpcState(AlterTopic, 81213479-c02d-4026-a5ff-59f9e62d40d9, ghrun-x463dq3b6y.auto.internal:24961): received error, <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "connections to all backends failing; last error: UNKNOWN: ipv4:127.0.1.1:24961: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"connections to all backends failing; last error: UNKNOWN: ipv4:127.0.1.1:24961: Failed to connect to remote host: Connection refused", grpc_status:14, created_time:"2026-11-18T18:59:32.548273935+00:00", file_line:1234, file:"contrib/libs/grpc/src/core/lib/surface/call.cc"}"
>
DEBUG    ydb.connection:connection.py:109 RpcState(AlterTopic, 81213479-c02d-4026-a5ff-59f9e62d40d9, ghrun-x463dq3b6y.auto.internal:24961): unhandled rpc error, disconnecting channel
DEBUG    ydb.connection:connection.py:592 Closing channel for endpoint ghrun-x463dq3b6y.auto.internal:24961
DEBUG    ydb.query.pool:pool.py:118 Acquired active session from queue: ydb://session/3?node_id=50000&id=NzhjY2U4N2QtNWFhODE1YmYtNWQ1OWYzYzYtMmY0MGQ2ZDQ%3D
DEBUG    ydb.connection:connection.py:464 RpcState(ExecuteQuery, c71b0481-4511-4955-9e25-b7497367df0a, ghrun-x463dq3b6y.auto.internal:26502): creating call state
DEBUG    ydb.connection:connection.py:78 RpcState(ExecuteQuery, c71b0481-4511-4955-9e25-b7497367df0a, ghrun-x463dq3b6y.auto.internal:26502): request = { session_id: "ydb://session/3?node_id=50000&id=NzhjY2U4N2QtNWFhODE1YmYtNWQ1OWYzYzYtMmY0MGQ2ZDQ%3D" exec_mode: EXEC_MODE_EXECUTE query_content { syntax: SYNTAX_YQL_V1 text: "DROP STREAMING QUERY `pq_source_rescaling_partition_increase_Q92qIFc0`;" } stats_mode: STATS_MODE_NONE schema_inclusion_mode: SCHEMA_INCLUSION_MODE_ALWAYS result_set_format: FORMAT_VALUE }
DEBUG    ydb.connection:connection.py:67 RpcState(ExecuteQuery, c71b0481-4511-4955-9e25-b7497367df0a, ghrun-x463dq3b6y.auto.internal:26502): response = { <_MultiThreadedRendezvous object> }
DEBUG    ydb.resolver.DiscoveryEndpointsResolver:resolver.py:181 Preparing initial endpoint to resolve endpoints
DEBUG    ydb.connection:connection.py:347 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'), ('grpc.keepalive_time_ms', 10000), ('grpc.keepalive_timeout_ms', 10000), ('grpc.http2.max_pings_without_data', 0), ('grpc.keepalive_permit_without_calls', 0)]
DEBUG    ydb.resolver.DiscoveryEndpointsResolver:resolver.py:191 Resolving endpoints for database /Root/my_tenant
DEBUG    ydb.connection:connection.py:464 RpcState(ListEndpoints, 1a2425c1-b913-43fb-92cc-86a65bdb3c5f, localhost:18683): creating call state
DEBUG    ydb.connection:connection.py:78 RpcState(ListEndpoints, 1a2425c1-b913-43fb-92cc-86a65bdb3c5f, localhost:18683): request = { database: "/Root/my_tenant" }
DEBUG    ydb.connection:connection.py:67 RpcState(ListEndpoints, 1a2425c1-b913-43fb-92cc-86a65bdb3c5f, localhost:18683): response = { operation { ready: true status: SUCCESS result { [type.googleapis.com/Ydb.Discovery.ListEndpointsResult] { endpoints { address: "ghrun-x463dq3b6y.auto.internal" port: 26502 service: "nbs" 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" node_id: 50000 } endpoints { address: "ghrun-x463dq3b6y.auto.internal" port: 18683 service: "nbs" 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" node_id: 50001 } } } } }
DEBUG    ydb.resolver.DiscoveryEndpointsResolver:resolver.py:161 Resolved endpoints for database /Root/my_tenant: DiscoveryResult <self_location: , endpoints [<Endpoint ghrun-x463dq3b6y.auto.internal:26502, location , ssl: False>, <Endpoint ghrun-x463dq3b6y.auto.internal:18683, location , ssl: False>]>
DEBUG    ydb.connection:connection.py:592 Closing channel for endpoint localhost:18683
DEBUG    ydb.query.pool:pool.py:139 Session returned to queue: ydb://session/3?node_id=50000&id=NzhjY2U4N2QtNWFhODE1YmYtNWQ1OWYzYzYtMmY0MGQ2ZDQ%3D
---------------------------- Captured log teardown -----------------------------
INFO     ya.test:ya.py:486 Test teardown
============================== slowest durations ===============================
47.57s call     ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_twice
46.75s call     ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_hopping_open_window[restart]
43.85s call     ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_skips_deferred_publication[kikimr0]
40.93s call     ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_partition_predicate[scale_up]
31.24s call     ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_partition_predicate[restart]
29.62s call     ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_insert_select[scale_up]
13.46s call     ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_insert_select[restart]
10.60s setup    ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_skips_deferred_publication[kikimr0]
10.27s setup    ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_twice
8.31s call     ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_partition_increase[external]
7.64s call     ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_restart_preserves_max_tasks_per_stage[max_tasks_1]
7.12s call     ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_restart_preserves_max_tasks_per_stage[max_tasks_30]
6.45s setup    ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_hopping_open_window[restart]
3.47s call     ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_partition_increase[local]
1.57s setup    ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_partition_increase[external]
1.08s teardown ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_restart_preserves_max_tasks_per_stage[max_tasks_30]
0.05s teardown ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_skips_deferred_publication[kikimr0]
0.04s teardown ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_insert_select[scale_up]
0.03s teardown ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_partition_predicate[restart]
0.03s teardown ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_partition_predicate[scale_up]
0.01s setup    ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_restart_preserves_max_tasks_per_stage[max_tasks_1]
0.01s teardown ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_insert_select[restart]
0.01s teardown ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_hopping_open_window[restart]
0.01s setup    ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_partition_predicate[restart]
0.01s setup    ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_partition_increase[local]
0.01s setup    ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_insert_select[scale_up]
0.01s setup    ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_insert_select[restart]
0.01s setup    ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_restart_preserves_max_tasks_per_stage[max_tasks_30]
0.01s setup    ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_partition_predicate[scale_up]

(6 durations < 0.005s hidden.  Use -vv to show these durations.)
=========================== short test summary info ============================
FAILED ydb/tests/fq/streaming/test_rescaling.py::TestRescaling::test_pq_source_rescaling_partition_increase[local] - ydb.issues.ConnectionLost: Rpc error, reason <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "connections to all backends failing; last error: UNKNOWN: ipv4:127.0.1.1:24961: Failed to connect to remote host: Connection refused"
	debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"connections to all backends failing; last error: UNKNOWN: ipv4:127.0.1.1:24961: Failed to connect to remote host: Connection refused", grpc_status:14, created_time:"2026-11-18T18:59:32.548273935+00:00", file_line:1234, file:"contrib/libs/grpc/src/core/lib/surface/call.cc"}"
>
============= 1 failed, 10 passed, 1 skipped in 310.95s (0:05:10) ==============
