============================= test session starts ==============================
platform linux -- Python 3.12.12, pytest-8.0.2, pluggy-1.6.0
rootdir: /home/runner/.ya/build/build_root/y9m1/0024f6/ydb/tests/fq/streaming/test-results/py3test
configfile: pkg:library.python.pytest:pytest.yatest.ini
plugins: typeguard-2.13.3
collected 8 items

test_streaming.py .....F.F

=================================== FAILURES ===================================
_______________ TestStreamingInYdb.test_read_topic_restore_state _______________
ydb/tests/fq/streaming/test_streaming.py:270: in test_read_topic_restore_state
    kikimr.YdbClient.query(sql.format(query_name="query1", source_name=sourceName, input_topic=self.input_topic, output_topic=self.output_topic))
ydb/tests/fq/streaming/conftest.py:29: in query
    return self.session_pool.execute_with_retries(statement)
contrib/python/ydb/py3/ydb/query/pool.py:252: in execute_with_retries
    return retry_operation_sync(wrapped_callee, retry_settings)
contrib/python/ydb/py3/ydb/retries.py:135: in retry_operation_sync
    for next_opt in opt_generator:
contrib/python/ydb/py3/ydb/retries.py:96: in retry_operation_impl
    result = YdbRetryOperationFinalResult(callee(*args, **kwargs))
contrib/python/ydb/py3/ydb/query/pool.py:250: in wrapped_callee
    return [result_set for result_set in it]
contrib/python/ydb/py3/ydb/_utilities.py:173: in __next__
    return self._next()
contrib/python/ydb/py3/ydb/_utilities.py:164: in _next
    res = self.wrapper(next(self.it))
contrib/python/ydb/py3/ydb/query/session.py:371: in <lambda>
    lambda resp: base.wrap_execute_query_response(
contrib/python/ydb/py3/ydb/query/base.py:188: in decorator
    return func(rpc_state, response_pb, session_state, *args, **kwargs)
contrib/python/ydb/py3/ydb/query/base.py:206: in wrap_execute_query_response
    issues._process_response(response_pb)
contrib/python/ydb/py3/ydb/issues.py:237: in _process_response
    raise exc_obj(_format_response(response_proto), response_proto.issues)
E   ydb.issues.SchemeError: position { row: 25 column: 49 } message: "Json UDF is deprecated. Please use JSON API instead" end_position { row: 25 column: 49 } issue_code: 4506 severity: 2 ,message: "Executing operation with object \"STREAMING_QUERY\"" issue_code: 2003 severity: 1 issues { message: "<main>: Error: Streaming query /Root/query1 already exists\n" issue_code: 2003 severity: 1 } ,message: "Query invalidated on scheme/internal error during Scheme execution" issue_code: 2019 severity: 1 (server_code: 400070)
------------------------------ Captured log setup ------------------------------
INFO     ya.test:ya.py:420 ####################################################################################################
INFO     ya.test:ya.py:421 test_read_topic_restore_state
INFO     ya.test:ya.py:422 ####################################################################################################
INFO     ya.test:ya.py:423 Test setup
------------------------------ Captured log call -------------------------------
INFO     ya.test:ya.py:436 Test call (class_name: test_streaming.py::TestStreamingInYdb, test_name: test_read_topic_restore_state)
DEBUG    root:control_plane.py:61 Requesting CreateStream.
Database: "local".
Request:
stream_name: "/local/source4_ckEldHXV_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    root:control_plane.py:61 Requesting CreateStream.
Database: "local".
Request:
stream_name: "/local/source4_ckEldHXV_output"
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    root:control_plane.py:45 Response: operation {
  ready: true
  status: SUCCESS
}

DEBUG    root:control_plane.py:49 Result: 
DEBUG    ydb.query.pool:pool.py:102 Acquired active session from queue: ydb://session/3?node_id=7&id=YWFmNWU3MzItMzRlMmNjMmYtNDczZDY0ZjMtMTEyMDM4NDY=
DEBUG    ydb.connection:connection.py:421 RpcState(ExecuteQuery, da28dad7-2f8c-482d-955d-665c02063880, ghrun-i5ufdptdv4.auto.internal:4497): creating call state
DEBUG    ydb.connection:connection.py:63 RpcState(ExecuteQuery, da28dad7-2f8c-482d-955d-665c02063880, ghrun-i5ufdptdv4.auto.internal:4497): request = { session_id: "ydb://session/3?node_id=7&id=YWFmNWU3MzItMzRlMmNjMmYtNDczZDY0ZjMtMTEyMDM4NDY=" exec_mode: EXEC_MODE_EXECUTE query_content { syntax: SYNTAX_YQL_V1 text: "\n            CREATE EXTERNAL DATA SOURCE `source4_ckEldHXV` WITH (\n                SOURCE_TYPE=\"Ydb\",\n                LOCATION=\"localhost:9619\",\n                DATABASE_NAME=\"local\",\n                SHARED_READING=\"True\",\n                AUTH_METHOD=\"NONE\");" } stats_mode: STATS_MODE_NONE }
DEBUG    ydb.connection:connection.py:52 RpcState(ExecuteQuery, da28dad7-2f8c-482d-955d-665c02063880, ghrun-i5ufdptdv4.auto.internal:4497): response = { <_MultiThreadedRendezvous object> }
DEBUG    ydb.query.pool:pool.py:123 Session returned to queue: None
DEBUG    ydb.query.pool:pool.py:102 Acquired active session from queue: ydb://session/3?node_id=7&id=NTg4NjlmZWUtOWJiMWI4ZWEtYWJmYzkzNWUtOGE0YzYxOGU=
DEBUG    ydb.connection:connection.py:421 RpcState(ExecuteQuery, bab6d867-7baf-4d4a-8c1f-e362afa7aa7f, ghrun-i5ufdptdv4.auto.internal:2472): creating call state
DEBUG    ydb.connection:connection.py:63 RpcState(ExecuteQuery, bab6d867-7baf-4d4a-8c1f-e362afa7aa7f, ghrun-i5ufdptdv4.auto.internal:2472): request = { session_id: "ydb://session/3?node_id=7&id=NTg4NjlmZWUtOWJiMWI4ZWEtYWJmYzkzNWUtOGE0YzYxOGU=" exec_mode: EXEC_MODE_EXECUTE query_content { syntax: SYNTAX_YQL_V1 text: "\n            CREATE EXTERNAL DATA SOURCE `source4_ckEldHXV` WITH (\n                SOURCE_TYPE=\"Ydb\",\n                LOCATION=\"localhost:9619\",\n                DATABASE_NAME=\"local\",\n                SHARED_READING=\"True\",\n                AUTH_METHOD=\"NONE\");" } stats_mode: STATS_MODE_NONE }
DEBUG    ydb.connection:connection.py:52 RpcState(ExecuteQuery, bab6d867-7baf-4d4a-8c1f-e362afa7aa7f, ghrun-i5ufdptdv4.auto.internal:2472): response = { <_MultiThreadedRendezvous object> }
DEBUG    ydb.query.pool:pool.py:123 Session returned to queue: None
DEBUG    ydb.query.pool:pool.py:106 Acquired dead session from queue: None
DEBUG    ydb.query.pool:pool.py:108 Session pool is not large enough: 1 < 100, will create new one.
DEBUG    ydb.connection:connection.py:421 RpcState(CreateSession, a37a46df-c680-4e85-9fe8-c980b47d8971, ghrun-i5ufdptdv4.auto.internal:15612): creating call state
DEBUG    ydb.connection:connection.py:63 RpcState(CreateSession, a37a46df-c680-4e85-9fe8-c980b47d8971, ghrun-i5ufdptdv4.auto.internal:15612): request = {  }
DEBUG    ydb.connection:connection.py:52 RpcState(CreateSession, a37a46df-c680-4e85-9fe8-c980b47d8971, ghrun-i5ufdptdv4.auto.internal:15612): response = { status: SUCCESS session_id: "ydb://session/3?node_id=7&id=YTQwNjcyMDctOTIyODEyYy1iMDA2M2MxMC02ZmNhZjk5OA==" node_id: 7 }
DEBUG    ydb.connection:connection.py:421 RpcState(AttachSession, 7ca033f6-d266-4b5f-9899-060237554f8a, ghrun-i5ufdptdv4.auto.internal:4497): creating call state
DEBUG    ydb.connection:connection.py:63 RpcState(AttachSession, 7ca033f6-d266-4b5f-9899-060237554f8a, ghrun-i5ufdptdv4.auto.internal:4497): request = { session_id: "ydb://session/3?node_id=7&id=YTQwNjcyMDctOTIyODEyYy1iMDA2M2MxMC02ZmNhZjk5OA==" }
DEBUG    ydb.connection:connection.py:52 RpcState(AttachSession, 7ca033f6-d266-4b5f-9899-060237554f8a, ghrun-i5ufdptdv4.auto.internal:4497): response = { <_MultiThreadedRendezvous object> }
DEBUG    ydb.query.pool:pool.py:64 New session was created for pool. Session id: ydb://session/3?node_id=7&id=YTQwNjcyMDctOTIyODEyYy1iMDA2M2MxMC02ZmNhZjk5OA==
DEBUG    ydb.connection:connection.py:421 RpcState(ExecuteQuery, c92025ed-6984-4afa-af0e-2c1119a5f00a, ghrun-i5ufdptdv4.auto.internal:2472): creating call state
DEBUG    ydb.connection:connection.py:63 RpcState(ExecuteQuery, c92025ed-6984-4afa-af0e-2c1119a5f00a, ghrun-i5ufdptdv4.auto.internal:2472): request = { session_id: "ydb://session/3?node_id=7&id=YTQwNjcyMDctOTIyODEyYy1iMDA2M2MxMC02ZmNhZjk5OA==" exec_mode: EXEC_MODE_EXECUTE query_content { syntax: SYNTAX_YQL_V1 text: "\n            CREATE EXTERNAL DATA SOURCE `source4_ckEldHXV` WITH (\n                SOURCE_TYPE=\"Ydb\",\n                LOCATION=\"localhost:9619\",\n                DATABASE_NAME=\"local\",\n                SHARED_READING=\"True\",\n                AUTH_METHOD=\"NONE\");" } stats_mode: STATS_MODE_NONE }
DEBUG    ydb.connection:connection.py:52 RpcState(ExecuteQuery, c92025ed-6984-4afa-af0e-2c1119a5f00a, ghrun-i5ufdptdv4.auto.internal:2472): response = { <_MultiThreadedRendezvous object> }
DEBUG    ydb.query.pool:pool.py:123 Session returned to queue: ydb://session/3?node_id=7&id=YTQwNjcyMDctOTIyODEyYy1iMDA2M2MxMC02ZmNhZjk5OA==
DEBUG    ydb.query.pool:pool.py:106 Acquired dead session from queue: None
DEBUG    ydb.query.pool:pool.py:108 Session pool is not large enough: 1 < 100, will create new one.
DEBUG    ydb.connection:connection.py:421 RpcState(CreateSession, 37c8742a-13ff-47f2-b5fa-c0686eb01b93, ghrun-i5ufdptdv4.auto.internal:15612): creating call state
DEBUG    ydb.connection:connection.py:63 RpcState(CreateSession, 37c8742a-13ff-47f2-b5fa-c0686eb01b93, ghrun-i5ufdptdv4.auto.internal:15612): request = {  }
DEBUG    ydb.connection:connection.py:52 RpcState(CreateSession, 37c8742a-13ff-47f2-b5fa-c0686eb01b93, ghrun-i5ufdptdv4.auto.internal:15612): response = { status: SUCCESS session_id: "ydb://session/3?node_id=7&id=NjFkOTlmZDAtNThhMDI4NDQtYmZjZDg0YmItNWU2NjM1ZmE=" node_id: 7 }
DEBUG    ydb.connection:connection.py:421 RpcState(AttachSession, 6635623d-b939-44b7-99a3-d233a73fdc5a, ghrun-i5ufdptdv4.auto.internal:4497): creating call state
DEBUG    ydb.connection:connection.py:63 RpcState(AttachSession, 6635623d-b939-44b7-99a3-d233a73fdc5a, ghrun-i5ufdptdv4.auto.internal:4497): request = { session_id: "ydb://session/3?node_id=7&id=NjFkOTlmZDAtNThhMDI4NDQtYmZjZDg0YmItNWU2NjM1ZmE=" }
DEBUG    ydb.connection:connection.py:52 RpcState(AttachSession, 6635623d-b939-44b7-99a3-d233a73fdc5a, ghrun-i5ufdptdv4.auto.internal:4497): response = { <_MultiThreadedRendezvous object> }
DEBUG    ydb.query.pool:pool.py:64 New session was created for pool. Session id: ydb://session/3?node_id=7&id=NjFkOTlmZDAtNThhMDI4NDQtYmZjZDg0YmItNWU2NjM1ZmE=
DEBUG    ydb.connection:connection.py:421 RpcState(ExecuteQuery, 7a342a8b-9012-424d-a29b-1c6640bcb339, ghrun-i5ufdptdv4.auto.internal:2472): creating call state
DEBUG    ydb.connection:connection.py:63 RpcState(ExecuteQuery, 7a342a8b-9012-424d-a29b-1c6640bcb339, ghrun-i5ufdptdv4.auto.internal:2472): request = { session_id: "ydb://session/3?node_id=7&id=NjFkOTlmZDAtNThhMDI4NDQtYmZjZDg0YmItNWU2NjM1ZmE=" exec_mode: EXEC_MODE_EXECUTE query_content { syntax: SYNTAX_YQL_V1 text: "\n            CREATE STREAMING QUERY `query1` AS\n            DO BEGIN\n                pragma FeatureR010=\"prototype\";\n                PRAGMA DisableAnsiInForEmptyOrNullableItemsCollections;\n\n                $in = SELECT * FROM source4_ckEldHXV.`source4_ckEldHXV_input`\n                    WITH (\n                        FORMAT=\"json_each_row\",\n                        SCHEMA=(dt UINT64, str STRING));\n                $mr = SELECT * FROM $in\n                    MATCH_RECOGNIZE(\n                        MEASURES\n                        LAST(A.dt) as a_time,\n                        LAST(B.dt) as b_time,\n                        LAST(C.dt) as c_time\n                        ONE ROW PER MATCH\n                        AFTER MATCH SKIP TO NEXT ROW\n                        PATTERN ( ( A | B ) ( B | C ) )\n                        DEFINE\n                            A as A.str=\'A\',\n                            B as B.str=\'B\',\n                            C as C.str=\'C\');\n                INSERT INTO source4_ckEldHXV.`source4_ckEldHXV_output`\n                    SELECT ToBytes(Unwrap(Json::SerializeJson(Yson::From(TableRow())))) FROM $mr;\n            END DO;" } stats_mode: STATS_MODE_NONE }
DEBUG    ydb.connection:connection.py:52 RpcState(ExecuteQuery, 7a342a8b-9012-424d-a29b-1c6640bcb339, ghrun-i5ufdptdv4.auto.internal:2472): response = { <_MultiThreadedRendezvous object> }
DEBUG    ydb.query.pool:pool.py:123 Session returned to queue: ydb://session/3?node_id=7&id=NjFkOTlmZDAtNThhMDI4NDQtYmZjZDg0YmItNWU2NjM1ZmE=
---------------------------- Captured log teardown -----------------------------
INFO     ya.test:ya.py:431 Test teardown
______________ TestStreamingInYdb.test_restart_query_by_rescaling ______________
ydb/tests/fq/streaming/test_streaming.py:351: in test_restart_query_by_rescaling
    kikimr.YdbClient.query(sql.format(query_name=name, source_name=sourceName, input_topic=self.input_topic, output_topic=self.output_topic))
ydb/tests/fq/streaming/conftest.py:29: in query
    return self.session_pool.execute_with_retries(statement)
contrib/python/ydb/py3/ydb/query/pool.py:252: in execute_with_retries
    return retry_operation_sync(wrapped_callee, retry_settings)
contrib/python/ydb/py3/ydb/retries.py:135: in retry_operation_sync
    for next_opt in opt_generator:
contrib/python/ydb/py3/ydb/retries.py:96: in retry_operation_impl
    result = YdbRetryOperationFinalResult(callee(*args, **kwargs))
contrib/python/ydb/py3/ydb/query/pool.py:250: in wrapped_callee
    return [result_set for result_set in it]
contrib/python/ydb/py3/ydb/_utilities.py:173: in __next__
    return self._next()
contrib/python/ydb/py3/ydb/_utilities.py:164: in _next
    res = self.wrapper(next(self.it))
contrib/python/ydb/py3/ydb/query/session.py:371: in <lambda>
    lambda resp: base.wrap_execute_query_response(
contrib/python/ydb/py3/ydb/query/base.py:188: in decorator
    return func(rpc_state, response_pb, session_state, *args, **kwargs)
contrib/python/ydb/py3/ydb/query/base.py:206: in wrap_execute_query_response
    issues._process_response(response_pb)
contrib/python/ydb/py3/ydb/issues.py:237: in _process_response
    raise exc_obj(_format_response(response_proto), response_proto.issues)
E   ydb.issues.GenericError: position { row: 7 column: 39 } message: "extraneous input \'80\' expecting {\'*\', \'(\', \'@\', \'$\', ABORT, ACTION, ADD, AFTER, ALL, ALTER, ANALYZE, AND, ANSI, ANY, ARRAY, AS, ASC, ASSUME, ASYMMETRIC, ASYNC, AT, ATTACH, ATTRIBUTES, AUTOINCREMENT, BACKUP, BATCH, COLLECTION, BEFORE, BEGIN, BERNOULLI, BETWEEN, BITCAST, BY, CALLABLE, CASCADE, CASE, CAST, CHANGEFEED, CHECK, CLASSIFIER, COLLATE, COLUMN, COLUMNS, COMMIT, COMPACT, CONDITIONAL, CONFLICT, CONNECT, CONSTRAINT, CONSUMER, COVER, CREATE, CROSS, CUBE, CURRENT, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, DATA, DATABASE, DECIMAL, DECLARE, DEFAULT, DEFERRABLE, DEFERRED, DEFINE, DELETE, DESC, DESCRIBE, DETACH, DICT, DIRECTORY, DYNAMICLINEAR, DISABLE, DISCARD, DISTINCT, DO, DROP, EACH, ELSE, EMPTY, EMPTY_ACTION, ENCRYPTED, END, ENUM, ERASE, ERROR, ESCAPE, EVALUATE, EXCEPT, EXCLUDE, EXCLUSION, EXCLUSIVE, EXISTS, EXPLAIN, EXPORT, EXTERNAL, FAIL, FAMILY, FILTER, FIRST, FLATTEN, FLOW, FOLLOWING, FOR, FOREIGN, FROM, FULL, FUNCTION, GLOB, GLOBAL, GRANT, GROUP, GROUPING, GROUPS, HASH, HAVING, HOP, IF, IGNORE, ILIKE, IMMEDIATE, IMPORT, IN, INCREMENT, INCREMENTAL, INDEX, INDEXED, INHERITS, INITIAL, INITIALLY, INNER, INSERT, INSTEAD, INTERSECT, INTO, IS, ISNULL, JOIN, JSON_EXISTS, JSON_QUERY, JSON_VALUE, KEY, LAST, LEFT, LEGACY, LIKE, LIMIT, LINEAR, LIST, LOCAL, LOGIN, MANAGE, MATCH, MATCHES, MATCH_RECOGNIZE, MEASURES, MICROSECONDS, MILLISECONDS, MODIFY, NANOSECONDS, NATURAL, NEXT, NO, NOLOGIN, NOT, NOTNULL, NULL, NULLS, OBJECT, OF, OFFSET, OMIT, ON, ONE, ONLY, OPTION, OPTIONAL, OR, ORDER, OTHERS, OUTER, OVER, OWNER, PARALLEL, PARTITION, PASSING, PASSWORD, PAST, PATTERN, PER, PERMUTE, PLAN, POOL, PRAGMA, PRECEDING, PRESORT, PRIMARY, PRIVILEGES, PROCESS, QUERY, QUEUE, RAISE, RANGE, REDUCE, REFERENCES, REGEXP, REINDEX, RELEASE, REMOVE, RENAME, REPLACE, REPLICATION, RESET, RESOURCE, RESPECT, RESTART, RESTORE, RESTRICT, RESULT, RETURN, RETURNING, REVERT, REVOKE, RIGHT, RLIKE, ROLLBACK, ROLLUP, ROW, ROWS, SAMPLE, SAVEPOINT, SCHEMA, SECONDS, SEEK, SELECT, SEMI, SET, SETS, SHOW, TSKIP, SECRET, SEQUENCE, SOURCE, START, STREAM, STREAMING, STRUCT, SUBQUERY, SUBSET, SYMBOLS, SYMMETRIC, SYNC, SYSTEM, TABLE, TABLES, TABLESAMPLE, TABLESTORE, TAGGED, TEMP, TEMPORARY, THEN, TIES, TO, TOPIC, TRANSACTION, TRANSFER, TRIGGER, TUPLE, TYPE, UNBOUNDED, UNCONDITIONAL, UNION, UNIQUE, UNKNOWN, UNMATCHED, UPDATE, UPSERT, USE, USER, USING, VACUUM, VALUES, VARIANT, VIEW, VIRTUAL, WATERMARK, WHEN, WHERE, WINDOW, WITH, WITHOUT, WRAPPER, XOR, STRING_VALUE, ID_PLAIN, ID_QUOTED}" end_position { row: 7 column: 39 } severity: 1 (server_code: 400080)
------------------------------ Captured log setup ------------------------------
INFO     ya.test:ya.py:420 ####################################################################################################
INFO     ya.test:ya.py:421 test_restart_query_by_rescaling
INFO     ya.test:ya.py:422 ####################################################################################################
INFO     ya.test:ya.py:423 Test setup
------------------------------ Captured log call -------------------------------
INFO     ya.test:ya.py:436 Test call (class_name: test_streaming.py::TestStreamingInYdb, test_name: test_restart_query_by_rescaling)
DEBUG    root:control_plane.py:61 Requesting CreateStream.
Database: "local".
Request:
stream_name: "/local/80xsLh09_input"
shard_count: 10
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    root:control_plane.py:61 Requesting CreateStream.
Database: "local".
Request:
stream_name: "/local/80xsLh09_output"
shard_count: 10
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    root:control_plane.py:45 Response: operation {
  ready: true
  status: SUCCESS
}

DEBUG    root:control_plane.py:49 Result: 
DEBUG    ydb.query.pool:pool.py:102 Acquired active session from queue: ydb://session/3?node_id=7&id=YTQwNjcyMDctOTIyODEyYy1iMDA2M2MxMC02ZmNhZjk5OA==
DEBUG    ydb.connection:connection.py:421 RpcState(ExecuteQuery, 2b6e757b-4d24-4eec-b2da-922e038eb44b, ghrun-i5ufdptdv4.auto.internal:2472): creating call state
DEBUG    ydb.connection:connection.py:63 RpcState(ExecuteQuery, 2b6e757b-4d24-4eec-b2da-922e038eb44b, ghrun-i5ufdptdv4.auto.internal:2472): request = { session_id: "ydb://session/3?node_id=7&id=YTQwNjcyMDctOTIyODEyYy1iMDA2M2MxMC02ZmNhZjk5OA==" exec_mode: EXEC_MODE_EXECUTE query_content { syntax: SYNTAX_YQL_V1 text: "\n            CREATE EXTERNAL DATA SOURCE `80xsLh09` WITH (\n                SOURCE_TYPE=\"Ydb\",\n                LOCATION=\"localhost:9619\",\n                DATABASE_NAME=\"local\",\n                SHARED_READING=\"True\",\n                AUTH_METHOD=\"NONE\");" } stats_mode: STATS_MODE_NONE }
DEBUG    ydb.connection:connection.py:52 RpcState(ExecuteQuery, 2b6e757b-4d24-4eec-b2da-922e038eb44b, ghrun-i5ufdptdv4.auto.internal:2472): response = { <_MultiThreadedRendezvous object> }
DEBUG    ydb.query.pool:pool.py:123 Session returned to queue: ydb://session/3?node_id=7&id=YTQwNjcyMDctOTIyODEyYy1iMDA2M2MxMC02ZmNhZjk5OA==
DEBUG    ydb.query.pool:pool.py:102 Acquired active session from queue: ydb://session/3?node_id=7&id=NjFkOTlmZDAtNThhMDI4NDQtYmZjZDg0YmItNWU2NjM1ZmE=
DEBUG    ydb.connection:connection.py:421 RpcState(ExecuteQuery, 19dd4a55-fa9b-411c-998d-866561742a64, ghrun-i5ufdptdv4.auto.internal:15612): creating call state
DEBUG    ydb.connection:connection.py:63 RpcState(ExecuteQuery, 19dd4a55-fa9b-411c-998d-866561742a64, ghrun-i5ufdptdv4.auto.internal:15612): request = { session_id: "ydb://session/3?node_id=7&id=NjFkOTlmZDAtNThhMDI4NDQtYmZjZDg0YmItNWU2NjM1ZmE=" exec_mode: EXEC_MODE_EXECUTE query_content { syntax: SYNTAX_YQL_V1 text: "\n            CREATE STREAMING QUERY `test_restart_query_by_rescaling` AS\n            DO BEGIN\n                PRAGMA ydb.OverridePlanner = @@ [\n                    { \"tx\": 0, \"stage\": 0, \"tasks\": 2 }\n                ] @@;\n                $in = SELECT time FROM 80xsLh09.`80xsLh09_input`\n                WITH (\n                    FORMAT=\"json_each_row\",\n                    SCHEMA=(time String NOT NULL))\n                WHERE time like \"%time%\";\n                INSERT INTO `80xsLh09`.`80xsLh09_output` SELECT time FROM $in;\n            END DO;" } stats_mode: STATS_MODE_NONE }
DEBUG    ydb.connection:connection.py:52 RpcState(ExecuteQuery, 19dd4a55-fa9b-411c-998d-866561742a64, ghrun-i5ufdptdv4.auto.internal:15612): response = { <_MultiThreadedRendezvous object> }
DEBUG    ydb.query.pool:pool.py:123 Session returned to queue: ydb://session/3?node_id=7&id=NjFkOTlmZDAtNThhMDI4NDQtYmZjZDg0YmItNWU2NjM1ZmE=
---------------------------- Captured log teardown -----------------------------
INFO     ya.test:ya.py:431 Test teardown
DEBUG    ydb.connection:connection.py:421 RpcState(DeleteSession, 014a8456-9357-4e89-b93e-84ab078a9069, ghrun-i5ufdptdv4.auto.internal:4497): creating call state
DEBUG    ydb.connection:connection.py:63 RpcState(DeleteSession, 014a8456-9357-4e89-b93e-84ab078a9069, ghrun-i5ufdptdv4.auto.internal:4497): request = { session_id: "ydb://session/3?node_id=7&id=YTQwNjcyMDctOTIyODEyYy1iMDA2M2MxMC02ZmNhZjk5OA==" }
DEBUG    ydb.connection:connection.py:52 RpcState(DeleteSession, 014a8456-9357-4e89-b93e-84ab078a9069, ghrun-i5ufdptdv4.auto.internal:4497): response = { status: SUCCESS }
DEBUG    ydb.connection:connection.py:421 RpcState(DeleteSession, 584c1b03-4c8b-4c0a-9c0a-1f776a3ca222, ghrun-i5ufdptdv4.auto.internal:2472): creating call state
DEBUG    ydb.connection:connection.py:63 RpcState(DeleteSession, 584c1b03-4c8b-4c0a-9c0a-1f776a3ca222, ghrun-i5ufdptdv4.auto.internal:2472): request = { session_id: "ydb://session/3?node_id=7&id=NjFkOTlmZDAtNThhMDI4NDQtYmZjZDg0YmItNWU2NjM1ZmE=" }
DEBUG    ydb.connection:connection.py:78 RpcState(AttachSession, 7ca033f6-d266-4b5f-9899-060237554f8a, ghrun-i5ufdptdv4.auto.internal:4497): received error, <_MultiThreadedRendezvous of RPC that terminated with:
	status = StatusCode.CANCELLED
	details = "Locally cancelled by application!"
	debug_error_string = "None"
>
DEBUG    ydb.connection:connection.py:52 RpcState(DeleteSession, 584c1b03-4c8b-4c0a-9c0a-1f776a3ca222, ghrun-i5ufdptdv4.auto.internal:2472): response = { status: SUCCESS }
DEBUG    ydb.query.pool:pool.py:312 All session were deleted.
DEBUG    ydb.connection:connection.py:78 RpcState(AttachSession, 6635623d-b939-44b7-99a3-d233a73fdc5a, ghrun-i5ufdptdv4.auto.internal:4497): received error, <_MultiThreadedRendezvous of RPC that terminated with:
	status = StatusCode.CANCELLED
	details = "Locally cancelled by application!"
	debug_error_string = "None"
>
DEBUG    ydb.topic:topic.py:677 Close topic client
DEBUG    ydb.topic:topic.py:680 Topic client was closed
DEBUG    ydb.connection:connection.py:549 Closing channel for endpoint localhost:2472
DEBUG    ydb.connection:connection.py:549 Closing channel for endpoint ghrun-i5ufdptdv4.auto.internal:15612
DEBUG    ydb.connection:connection.py:549 Closing channel for endpoint ghrun-i5ufdptdv4.auto.internal:4497
DEBUG    ydb.connection:connection.py:549 Closing channel for endpoint ghrun-i5ufdptdv4.auto.internal:2472
DEBUG    ydb.connection:connection.py:549 Closing channel for endpoint ghrun-i5ufdptdv4.auto.internal:61815
DEBUG    ydb.connection:connection.py:549 Closing channel for endpoint ghrun-i5ufdptdv4.auto.internal:4152
DEBUG    ydb.connection:connection.py:549 Closing channel for endpoint ghrun-i5ufdptdv4.auto.internal:3980
DEBUG    ydb.connection:connection.py:549 Closing channel for endpoint ghrun-i5ufdptdv4.auto.internal:7411
DEBUG    ydb.connection:connection.py:549 Closing channel for endpoint ghrun-i5ufdptdv4.auto.internal:16818
DEBUG    ydb.connection:connection.py:549 Closing channel for endpoint ghrun-i5ufdptdv4.auto.internal:22908
INFO     ydb.pool.Discovery:pool.py:277 Successfully terminated discovery process
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:273 Stopped node localhost:7411/2
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:273 Stopped node localhost:22908/3
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:273 Stopped node localhost:4497/4
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:273 Stopped node localhost:16818/5
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:273 Stopped node localhost:4152/6
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:273 Stopped node localhost:15612/7
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:273 Stopped node localhost:3980/9
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:273 Stopped node localhost:61815/8
INFO     ydb.tests.library.harness.kikimr_runner:kikimr_runner.py:273 Stopped node localhost:2472/1
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/27592
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/12604
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/9217
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/3980
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/13269
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/16167
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/9276
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/61815
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/20713
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/63202
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/15794
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/15612
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/14848
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/26533
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/26362
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/4152
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/7043
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/6589
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/17443
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/16818
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/1354
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/1238
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/18460
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/4497
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/21623
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/21080
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/3318
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/22908
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/1931
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/23987
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/29012
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/7411
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/16291
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/28734
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/4705
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/2472
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/12928
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/17502
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/3493
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/29638
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/20237
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/19602
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/5707
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/26241
DEBUG    library.python.filelock:__init__.py:119 Ensuring FileLock released: /home/runner/.ya/build/port_sync_dir/10123
============================== slowest durations ===============================
75.91s call     test_streaming.py::TestStreamingInYdb::test_read_topic_shared_reading_restart_nodes
36.42s call     test_streaming.py::TestStreamingInYdb::test_read_topic_shared_reading_insert_to_topic
33.56s call     test_streaming.py::TestStreamingInYdb::test_restart_query
22.09s teardown test_streaming.py::TestStreamingInYdb::test_restart_query_by_rescaling
17.11s setup    test_streaming.py::TestStreamingInYdb::test_read_topic
16.58s call     test_streaming.py::TestStreamingInYdb::test_json_errors
15.69s call     test_streaming.py::TestStreamingInYdb::test_read_topic_shared_reading_limit
3.56s call     test_streaming.py::TestStreamingInYdb::test_read_topic_restore_state
1.59s call     test_streaming.py::TestStreamingInYdb::test_read_topic
0.65s call     test_streaming.py::TestStreamingInYdb::test_restart_query_by_rescaling
0.02s setup    test_streaming.py::TestStreamingInYdb::test_restart_query
0.01s setup    test_streaming.py::TestStreamingInYdb::test_read_topic_shared_reading_restart_nodes
0.01s setup    test_streaming.py::TestStreamingInYdb::test_json_errors
0.01s teardown test_streaming.py::TestStreamingInYdb::test_read_topic
0.01s setup    test_streaming.py::TestStreamingInYdb::test_read_topic_shared_reading_limit
0.01s setup    test_streaming.py::TestStreamingInYdb::test_read_topic_shared_reading_insert_to_topic

(8 durations < 0.005s hidden.  Use -vv to show these durations.)
=========================== short test summary info ============================
FAILED test_streaming.py::TestStreamingInYdb::test_read_topic_restore_state - ydb.issues.SchemeError: position { row: 25 column: 49 } message: "Json UDF is deprecated. Please use JSON API instead" end_position { row: 25 column: 49 } issue_code: 4506 severity: 2 ,message: "Executing operation with object \"STREAMING_QUERY\"" issue_code: 2003 severity: 1 issues { message: "<main>: Error: Streaming query /Root/query1 already exists\n" issue_code: 2003 severity: 1 } ,message: "Query invalidated on scheme/internal error during Scheme execution" issue_code: 2019 severity: 1 (server_code: 400070)
FAILED test_streaming.py::TestStreamingInYdb::test_restart_query_by_rescaling - ydb.issues.GenericError: position { row: 7 column: 39 } message: "extraneous input \'80\' expecting {\'*\', \'(\', \'@\', \'$\', ABORT, ACTION, ADD, AFTER, ALL, ALTER, ANALYZE, AND, ANSI, ANY, ARRAY, AS, ASC, ASSUME, ASYMMETRIC, ASYNC, AT, ATTACH, ATTRIBUTES, AUTOINCREMENT, BACKUP, BATCH, COLLECTION, BEFORE, BEGIN, BERNOULLI, BETWEEN, BITCAST, BY, CALLABLE, CASCADE, CASE, CAST, CHANGEFEED, CHECK, CLASSIFIER, COLLATE, COLUMN, COLUMNS, COMMIT, COMPACT, CONDITIONAL, CONFLICT, CONNECT, CONSTRAINT, CONSUMER, COVER, CREATE, CROSS, CUBE, CURRENT, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, DATA, DATABASE, DECIMAL, DECLARE, DEFAULT, DEFERRABLE, DEFERRED, DEFINE, DELETE, DESC, DESCRIBE, DETACH, DICT, DIRECTORY, DYNAMICLINEAR, DISABLE, DISCARD, DISTINCT, DO, DROP, EACH, ELSE, EMPTY, EMPTY_ACTION, ENCRYPTED, END, ENUM, ERASE, ERROR, ESCAPE, EVALUATE, EXCEPT, EXCLUDE, EXCLUSION, EXCLUSIVE, EXISTS, EXPLAIN, EXPORT, EXTERNAL, FAIL, FAMILY, FILTER, FIRST, FLATTEN, FLOW, FOLLOWING, FOR, FOREIGN, FROM, FULL, FUNCTION, GLOB, GLOBAL, GRANT, GROUP, GROUPING, GROUPS, HASH, HAVING, HOP, IF, IGNORE, ILIKE, IMMEDIATE, IMPORT, IN, INCREMENT, INCREMENTAL, INDEX, INDEXED, INHERITS, INITIAL, INITIALLY, INNER, INSERT, INSTEAD, INTERSECT, INTO, IS, ISNULL, JOIN, JSON_EXISTS, JSON_QUERY, JSON_VALUE, KEY, LAST, LEFT, LEGACY, LIKE, LIMIT, LINEAR, LIST, LOCAL, LOGIN, MANAGE, MATCH, MATCHES, MATCH_RECOGNIZE, MEASURES, MICROSECONDS, MILLISECONDS, MODIFY, NANOSECONDS, NATURAL, NEXT, NO, NOLOGIN, NOT, NOTNULL, NULL, NULLS, OBJECT, OF, OFFSET, OMIT, ON, ONE, ONLY, OPTION, OPTIONAL, OR, ORDER, OTHERS, OUTER, OVER, OWNER, PARALLEL, PARTITION, PASSING, PASSWORD, PAST, PATTERN, PER, PERMUTE, PLAN, POOL, PRAGMA, PRECEDING, PRESORT, PRIMARY, PRIVILEGES, PROCESS, QUERY, QUEUE, RAISE, RANGE, REDUCE, REFERENCES, REGEXP, REINDEX, RELEASE, REMOVE, RENAME, REPLACE, REPLICATION, RESET, RESOURCE, RESPECT, RESTART, RESTORE, RESTRICT, RESULT, RETURN, RETURNING, REVERT, REVOKE, RIGHT, RLIKE, ROLLBACK, ROLLUP, ROW, ROWS, SAMPLE, SAVEPOINT, SCHEMA, SECONDS, SEEK, SELECT, SEMI, SET, SETS, SHOW, TSKIP, SECRET, SEQUENCE, SOURCE, START, STREAM, STREAMING, STRUCT, SUBQUERY, SUBSET, SYMBOLS, SYMMETRIC, SYNC, SYSTEM, TABLE, TABLES, TABLESAMPLE, TABLESTORE, TAGGED, TEMP, TEMPORARY, THEN, TIES, TO, TOPIC, TRANSACTION, TRANSFER, TRIGGER, TUPLE, TYPE, UNBOUNDED, UNCONDITIONAL, UNION, UNIQUE, UNKNOWN, UNMATCHED, UPDATE, UPSERT, USE, USER, USING, VACUUM, VALUES, VARIANT, VIEW, VIRTUAL, WATERMARK, WHEN, WHERE, WINDOW, WITH, WITHOUT, WRAPPER, XOR, STRING_VALUE, ID_PLAIN, ID_QUOTED}" end_position { row: 7 column: 39 } severity: 1 (server_code: 400080)
=================== 2 failed, 6 passed in 224.67s (0:03:44) ====================
