aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilnurkh <ilnurkh@yandex-team.com>2023-10-17 01:11:07 +0300
committerilnurkh <ilnurkh@yandex-team.com>2023-10-17 01:27:04 +0300
commitd8195f952f701e0565d2130706ac4b7777ba7e79 (patch)
treebf61e8f5575823264927e76c99e636ad58a08df6
parent4a305f97de00dda2538b77d7ba38b712e2b9f2e0 (diff)
downloadydb-d8195f952f701e0565d2130706ac4b7777ba7e79.tar.gz
Y_FAIL->Y_ABORT at '^ydb'
https://clubs.at.yandex-team.ru/arcadia/29404
-rw-r--r--ydb/core/actorlib_impl/actor_tracker_ut.cpp4
-rw-r--r--ydb/core/actorlib_impl/connect_socket_protocol.cpp24
-rw-r--r--ydb/core/actorlib_impl/http_request_protocol.h2
-rw-r--r--ydb/core/actorlib_impl/name_service_client_protocol.cpp2
-rw-r--r--ydb/core/actorlib_impl/read_data_protocol.cpp4
-rw-r--r--ydb/core/actorlib_impl/send_data_protocol.cpp4
-rw-r--r--ydb/core/actorlib_impl/test_protocols_ut.cpp2
-rw-r--r--ydb/core/base/blobstorage.cpp4
-rw-r--r--ydb/core/base/blobstorage.h4
-rw-r--r--ydb/core/base/board_lookup.cpp2
-rw-r--r--ydb/core/base/board_replica.cpp2
-rw-r--r--ydb/core/base/group_stat.h2
-rw-r--r--ydb/core/base/statestorage.cpp2
-rw-r--r--ydb/core/base/statestorage_guardian.cpp4
-rw-r--r--ydb/core/base/statestorage_proxy.cpp4
-rw-r--r--ydb/core/blob_depot/agent/agent_impl.h2
-rw-r--r--ydb/core/blob_depot/agent/blob_mapping_cache.cpp4
-rw-r--r--ydb/core/blob_depot/agent/blocks.cpp2
-rw-r--r--ydb/core/blob_depot/agent/proxy.cpp2
-rw-r--r--ydb/core/blob_depot/agent/query.cpp4
-rw-r--r--ydb/core/blob_depot/agent/storage_block.cpp2
-rw-r--r--ydb/core/blob_depot/agent/storage_collect_garbage.cpp2
-rw-r--r--ydb/core/blob_depot/agent/storage_discover.cpp4
-rw-r--r--ydb/core/blob_depot/agent/storage_get.cpp2
-rw-r--r--ydb/core/blob_depot/agent/storage_patch.cpp2
-rw-r--r--ydb/core/blob_depot/agent/storage_put.cpp2
-rw-r--r--ydb/core/blob_depot/agent/storage_range.cpp2
-rw-r--r--ydb/core/blob_depot/agent/storage_status.cpp2
-rw-r--r--ydb/core/blob_depot/blob_depot.cpp6
-rw-r--r--ydb/core/blob_depot/blob_depot_tablet.h2
-rw-r--r--ydb/core/blob_depot/coro_tx.cpp4
-rw-r--r--ydb/core/blob_depot/data.h6
-rw-r--r--ydb/core/blob_depot/data_trash.cpp2
-rw-r--r--ydb/core/blob_depot/data_uncertain.cpp2
-rw-r--r--ydb/core/blob_depot/given_id_range.cpp2
-rw-r--r--ydb/core/blob_depot/mon_main.cpp2
-rw-r--r--ydb/core/blob_depot/testing.cpp6
-rw-r--r--ydb/core/blob_depot/types.h2
-rw-r--r--ydb/core/blobstorage/backpressure/event.h2
-rw-r--r--ydb/core/blobstorage/backpressure/queue_backpressure_client.cpp8
-rw-r--r--ydb/core/blobstorage/backpressure/queue_backpressure_client_ut.cpp2
-rw-r--r--ydb/core/blobstorage/backpressure/queue_backpressure_server.h4
-rw-r--r--ydb/core/blobstorage/backpressure/ut_client/backpressure_ut.cpp2
-rw-r--r--ydb/core/blobstorage/crypto/chacha_vec.cpp2
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy.h4
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_assimilate.cpp4
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_blob_tracker.h2
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_block.cpp2
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_collect.cpp2
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_discover.cpp4
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_discover_m3dc.cpp8
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_discover_m3of4.cpp4
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_get_impl.cpp4
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_indexrestoreget.cpp2
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_mon.h6
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_multicollect.cpp2
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_multiget.cpp2
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_nodemon.cpp4
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_patch.cpp6
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_range.cpp2
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_strategy_base.cpp12
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_strategy_get_m3dc_basic.h4
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_strategy_get_m3of4.h6
-rw-r--r--ydb/core/blobstorage/dsproxy/dsproxy_strategy_put_m3of4.h2
-rw-r--r--ydb/core/blobstorage/dsproxy/group_sessions.cpp4
-rw-r--r--ydb/core/blobstorage/dsproxy/group_sessions.h2
-rw-r--r--ydb/core/blobstorage/dsproxy/mock/dsproxy_mock.cpp2
-rw-r--r--ydb/core/blobstorage/dsproxy/ut/dsproxy_sequence_ut.cpp2
-rw-r--r--ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_base.h4
-rw-r--r--ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_put.h2
-rw-r--r--ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_range.h2
-rw-r--r--ydb/core/blobstorage/groupinfo/blobstorage_groupinfo.cpp18
-rw-r--r--ydb/core/blobstorage/groupinfo/blobstorage_groupinfo_partlayout.cpp2
-rw-r--r--ydb/core/blobstorage/incrhuge/incrhuge_id_dict.h4
-rw-r--r--ydb/core/blobstorage/incrhuge/incrhuge_keeper.cpp2
-rw-r--r--ydb/core/blobstorage/incrhuge/incrhuge_keeper_common.h2
-rw-r--r--ydb/core/blobstorage/incrhuge/incrhuge_keeper_delete.cpp2
-rw-r--r--ydb/core/blobstorage/incrhuge/incrhuge_keeper_log.cpp4
-rw-r--r--ydb/core/blobstorage/incrhuge/incrhuge_keeper_recovery.cpp10
-rw-r--r--ydb/core/blobstorage/incrhuge/ut/test_actor_concurrent.h8
-rw-r--r--ydb/core/blobstorage/incrhuge/ut/test_actor_seq.h4
-rw-r--r--ydb/core/blobstorage/nodewarden/distconf.cpp2
-rw-r--r--ydb/core/blobstorage/nodewarden/node_warden_cache.cpp2
-rw-r--r--ydb/core/blobstorage/nodewarden/node_warden_impl.cpp4
-rw-r--r--ydb/core/blobstorage/nodewarden/node_warden_proxy.cpp2
-rw-r--r--ydb/core/blobstorage/nodewarden/node_warden_scrub.cpp6
-rw-r--r--ydb/core/blobstorage/pdisk/blobstorage_pdisk_color_limits.h2
-rw-r--r--ydb/core/blobstorage/pdisk/blobstorage_pdisk_driveestimator.cpp2
-rw-r--r--ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl.cpp4
-rw-r--r--ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl_log.cpp4
-rw-r--r--ydb/core/blobstorage/pdisk/blobstorage_pdisk_logreader.cpp4
-rw-r--r--ydb/core/blobstorage/pdisk/blobstorage_pdisk_sectorrestorator.cpp2
-rw-r--r--ydb/core/blobstorage/pdisk/blobstorage_pdisk_ut_base_test.h2
-rw-r--r--ydb/core/blobstorage/pdisk/mock/pdisk_mock.cpp8
-rw-r--r--ydb/core/blobstorage/testing/group_overseer/group_overseer.cpp2
-rw-r--r--ydb/core/blobstorage/testing/group_overseer/group_state.cpp16
-rw-r--r--ydb/core/blobstorage/ut_blobstorage/lib/env.h2
-rw-r--r--ydb/core/blobstorage/ut_blobstorage/lib/node_warden_mock_vdisk.h2
-rw-r--r--ydb/core/blobstorage/ut_blobstorage/scrub.cpp2
-rw-r--r--ydb/core/blobstorage/ut_group/main.cpp4
-rw-r--r--ydb/core/blobstorage/ut_pdiskfit/lib/basic_test.cpp6
-rw-r--r--ydb/core/blobstorage/ut_pdiskfit/lib/basic_test.h2
-rw-r--r--ydb/core/blobstorage/ut_pdiskfit/lib/fail_injection_test.h8
-rw-r--r--ydb/core/blobstorage/ut_vdisk/lib/helpers.cpp16
-rw-r--r--ydb/core/blobstorage/ut_vdisk/lib/test_huge.cpp4
-rw-r--r--ydb/core/blobstorage/vdisk/common/blobstorage_dblogcutter.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/common/vdisk_context.h2
-rw-r--r--ydb/core/blobstorage/vdisk/common/vdisk_events.h4
-rw-r--r--ydb/core/blobstorage/vdisk/common/vdisk_handle_class.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/common/vdisk_pdisk_error.h2
-rw-r--r--ydb/core/blobstorage/vdisk/defrag/defrag_quantum.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/handoff/handoff_basic.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/handoff/handoff_map.h10
-rw-r--r--ydb/core/blobstorage/vdisk/handoff/handoff_mon.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/handoff/handoff_proxy.cpp4
-rw-r--r--ydb/core/blobstorage/vdisk/huge/blobstorage_hullhuge.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/huge/blobstorage_hullhugerecovery.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/huge/booltt.h2
-rw-r--r--ydb/core/blobstorage/vdisk/hulldb/base/hullbase_barrier.h8
-rw-r--r--ydb/core/blobstorage/vdisk/hulldb/base/hullbase_block.h8
-rw-r--r--ydb/core/blobstorage/vdisk/hulldb/bulksst_add/hulldb_bulksst_add.h4
-rw-r--r--ydb/core/blobstorage/vdisk/hulldb/compstrat/hulldb_compstrat_balance.h4
-rw-r--r--ydb/core/blobstorage/vdisk/hulldb/fresh/fresh_segment_impl.h4
-rw-r--r--ydb/core/blobstorage/vdisk/hulldb/generic/blobstorage_hullrecmerger.h4
-rw-r--r--ydb/core/blobstorage/vdisk/hulldb/generic/blobstorage_hullwritesst.h8
-rw-r--r--ydb/core/blobstorage/vdisk/hulldb/generic/hulldb_bulksstmngr.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/hulldb/generic/hullds_idx.h2
-rw-r--r--ydb/core/blobstorage/vdisk/hulldb/hull_ds_all.h2
-rw-r--r--ydb/core/blobstorage/vdisk/hullop/blobstorage_hullactor.cpp4
-rw-r--r--ydb/core/blobstorage/vdisk/hullop/blobstorage_hullcommit.h2
-rw-r--r--ydb/core/blobstorage/vdisk/hullop/blobstorage_hullcompactworker.h4
-rw-r--r--ydb/core/blobstorage/vdisk/localrecovery/localrecovery_defs.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/localrecovery/localrecovery_logreplay.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/localrecovery/localrecovery_public.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/query/query_base.h2
-rw-r--r--ydb/core/blobstorage/vdisk/query/query_extr.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/query/query_public.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/query/query_stattablet.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/query/query_stream.h2
-rw-r--r--ydb/core/blobstorage/vdisk/repl/blobstorage_hullrepljob.cpp12
-rw-r--r--ydb/core/blobstorage/vdisk/repl/blobstorage_hullreplwritesst.h6
-rw-r--r--ydb/core/blobstorage/vdisk/repl/blobstorage_hullreplwritesst_ut.cpp4
-rw-r--r--ydb/core/blobstorage/vdisk/repl/blobstorage_repl.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/repl/blobstorage_replproxy.cpp4
-rw-r--r--ydb/core/blobstorage/vdisk/scrub/restore_corrupted_blob_actor.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/scrub/scrub_actor.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/skeleton/blobstorage_monactors.cpp4
-rw-r--r--ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeleton.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeletonfront.cpp16
-rw-r--r--ydb/core/blobstorage/vdisk/skeleton/blobstorage_syncfull.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/skeleton/skeleton_compactionstate.cpp6
-rw-r--r--ydb/core/blobstorage/vdisk/skeleton/skeleton_mon_dbmainpage.cpp4
-rw-r--r--ydb/core/blobstorage/vdisk/skeleton/skeleton_oos_logic.cpp8
-rw-r--r--ydb/core/blobstorage/vdisk/skeleton/skeleton_overload_handler.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/syncer/blobstorage_syncer.cpp4
-rw-r--r--ydb/core/blobstorage/vdisk/syncer/blobstorage_syncer_committer.cpp2
-rw-r--r--ydb/core/blobstorage/vdisk/syncer/guid_firstrun.cpp4
-rw-r--r--ydb/core/blobstorage/vdisk/syncer/guid_recovery.cpp26
-rw-r--r--ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogformat.h4
-rw-r--r--ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgimpl.cpp4
-rw-r--r--ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgreader.cpp4
-rw-r--r--ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgwriter.h2
-rw-r--r--ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogneighbors.h2
-rw-r--r--ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogreader.cpp4
-rw-r--r--ydb/core/client/minikql_compile/mkql_compile_service.cpp2
-rw-r--r--ydb/core/client/minikql_compile/yql_expr_minikql.cpp2
-rw-r--r--ydb/core/client/minikql_result_lib/objects.h4
-rw-r--r--ydb/core/client/server/grpc_server.cpp10
-rw-r--r--ydb/core/client/server/msgbus_server.cpp6
-rw-r--r--ydb/core/client/server/msgbus_server_cms.cpp2
-rw-r--r--ydb/core/client/server/msgbus_server_console.cpp2
-rw-r--r--ydb/core/client/server/msgbus_server_persqueue.cpp4
-rw-r--r--ydb/core/client/server/msgbus_server_pq_metacache.cpp4
-rw-r--r--ydb/core/client/server/msgbus_server_request.cpp4
-rw-r--r--ydb/core/cms/api_adapters.cpp10
-rw-r--r--ydb/core/cms/cms.cpp2
-rw-r--r--ydb/core/cms/console/config_helpers.cpp6
-rw-r--r--ydb/core/cms/console/configs_cache.h2
-rw-r--r--ydb/core/cms/console/configs_dispatcher.cpp10
-rw-r--r--ydb/core/cms/console/console_configs_manager.cpp2
-rw-r--r--ydb/core/cms/console/console_configs_manager.h2
-rw-r--r--ydb/core/cms/console/console_configs_provider.cpp6
-rw-r--r--ydb/core/cms/console/console_configs_provider.h2
-rw-r--r--ydb/core/cms/console/console_configs_subscriber.cpp2
-rw-r--r--ydb/core/cms/console/console_tenants_manager.cpp16
-rw-r--r--ydb/core/cms/console/console_tenants_manager.h2
-rw-r--r--ydb/core/cms/console/immediate_controls_configurator.cpp2
-rw-r--r--ydb/core/cms/console/log_settings_configurator.cpp2
-rw-r--r--ydb/core/cms/console/modifications_validator.cpp2
-rw-r--r--ydb/core/cms/console/shared_cache_configurator.cpp2
-rw-r--r--ydb/core/cms/console/util/config_index.cpp6
-rw-r--r--ydb/core/cms/erasure_checkers.cpp2
-rw-r--r--ydb/core/cms/node_checkers.cpp4
-rw-r--r--ydb/core/cms/sentinel.cpp2
-rw-r--r--ydb/core/cms/walle_create_task_adapter.cpp2
-rw-r--r--ydb/core/driver_lib/cli_utils/cli_cmd_config.h4
-rw-r--r--ydb/core/driver_lib/cli_utils/cli_cmds_cms.cpp6
-rw-r--r--ydb/core/driver_lib/cli_utils/cli_cmds_get.cpp2
-rw-r--r--ydb/core/driver_lib/cli_utils/cli_cmds_root.cpp2
-rw-r--r--ydb/core/driver_lib/cli_utils/cli_keyvalue.cpp2
-rw-r--r--ydb/core/driver_lib/run/kikimr_services_initializers.cpp6
-rw-r--r--ydb/core/driver_lib/run/main.cpp2
-rw-r--r--ydb/core/driver_lib/run/run.cpp4
-rw-r--r--ydb/core/driver_lib/version/version.cpp4
-rw-r--r--ydb/core/engine/minikql/flat_local_tx_minikql.h4
-rw-r--r--ydb/core/engine/minikql/minikql_engine_host.cpp2
-rw-r--r--ydb/core/engine/mkql_engine_flat_extfunc.cpp4
-rw-r--r--ydb/core/erasure/erasure.cpp10
-rw-r--r--ydb/core/erasure/erasure_restore.cpp2
-rw-r--r--ydb/core/erasure/erasure_rope_ut.cpp4
-rw-r--r--ydb/core/erasure/erasure_ut.cpp4
-rw-r--r--ydb/core/formats/arrow/replace_key.h4
-rw-r--r--ydb/core/fq/libs/compute/common/pinger.cpp2
-rw-r--r--ydb/core/fq/libs/logs/log.cpp2
-rw-r--r--ydb/core/grpc_services/base/base.h30
-rw-r--r--ydb/core/grpc_services/db_metadata_cache.h6
-rw-r--r--ydb/core/grpc_services/grpc_request_proxy.cpp2
-rw-r--r--ydb/core/grpc_services/grpc_request_proxy_simple.cpp2
-rw-r--r--ydb/core/grpc_services/local_rpc/local_rpc.h12
-rw-r--r--ydb/core/grpc_services/rpc_cancel_operation.cpp2
-rw-r--r--ydb/core/grpc_services/rpc_forget_operation.cpp2
-rw-r--r--ydb/core/grpc_services/rpc_get_operation.cpp2
-rw-r--r--ydb/core/grpc_services/rpc_import_data.cpp2
-rw-r--r--ydb/core/grpc_services/rpc_list_operations.cpp2
-rw-r--r--ydb/core/grpc_services/rpc_read_table.cpp2
-rw-r--r--ydb/core/kafka_proxy/actors/kafka_topic_offsets_actor.h4
-rw-r--r--ydb/core/kesus/proxy/proxy.cpp4
-rw-r--r--ydb/core/kesus/proxy/proxy_actor.cpp6
-rw-r--r--ydb/core/kesus/tablet/quoter_performance_test/session.h2
-rw-r--r--ydb/core/kesus/tablet/tx_init.cpp2
-rw-r--r--ydb/core/kesus/tablet/ut_helpers.cpp6
-rw-r--r--ydb/core/keyvalue/keyvalue_state.cpp4
-rw-r--r--ydb/core/keyvalue/keyvalue_state.h4
-rw-r--r--ydb/core/keyvalue/keyvalue_storage_read_request.cpp2
-rw-r--r--ydb/core/keyvalue/keyvalue_storage_read_request_ut.cpp2
-rw-r--r--ydb/core/kqp/compile_service/kqp_compile_computation_pattern_service.cpp2
-rw-r--r--ydb/core/kqp/compile_service/kqp_compile_service.cpp2
-rw-r--r--ydb/core/kqp/compute_actor/kqp_scan_compute_actor.cpp4
-rw-r--r--ydb/core/kqp/compute_actor/kqp_scan_fetcher_actor.cpp2
-rw-r--r--ydb/core/kqp/node_service/kqp_node_service.cpp2
-rw-r--r--ydb/core/kqp/proxy_service/kqp_proxy_service.cpp2
-rw-r--r--ydb/core/kqp/rm_service/kqp_rm_service.cpp4
-rw-r--r--ydb/core/kqp/runtime/kqp_channel_storage.cpp2
-rw-r--r--ydb/core/kqp/runtime/kqp_effects.cpp4
-rw-r--r--ydb/core/kqp/runtime/kqp_output_stream.cpp4
-rw-r--r--ydb/core/kqp/session_actor/kqp_temp_tables_manager.cpp2
-rw-r--r--ydb/core/kqp/ut/indexes/kqp_indexes_multishard_ut.cpp4
-rw-r--r--ydb/core/load_test/aggregated_result.cpp2
-rw-r--r--ydb/core/load_test/group_write.cpp2
-rw-r--r--ydb/core/load_test/interval_gen.h4
-rw-r--r--ydb/core/load_test/service_actor.cpp2
-rw-r--r--ydb/core/load_test/ycsb/bulk_mkql_upsert.cpp2
-rw-r--r--ydb/core/mind/bscontroller/bsc.cpp4
-rw-r--r--ydb/core/mind/bscontroller/config.cpp2
-rw-r--r--ydb/core/mind/bscontroller/config_cmd.cpp2
-rw-r--r--ydb/core/mind/bscontroller/config_fit_groups.cpp2
-rw-r--r--ydb/core/mind/bscontroller/impl.h6
-rw-r--r--ydb/core/mind/bscontroller/load_everything.cpp6
-rw-r--r--ydb/core/mind/bscontroller/migrate.cpp2
-rw-r--r--ydb/core/mind/bscontroller/monitoring.cpp2
-rw-r--r--ydb/core/mind/bscontroller/scrub.cpp2
-rw-r--r--ydb/core/mind/bscontroller/storage_stats_calculator.cpp2
-rw-r--r--ydb/core/mind/bscontroller/ut_selfheal/vdisk_mock.h2
-rw-r--r--ydb/core/mind/bscontroller/virtual_group.cpp2
-rw-r--r--ydb/core/mind/configured_tablet_bootstrapper.cpp2
-rw-r--r--ydb/core/mind/hive/monitoring.cpp2
-rw-r--r--ydb/core/mind/hive/tx__update_tablet_status.cpp2
-rw-r--r--ydb/core/mind/labels_maintainer.cpp2
-rw-r--r--ydb/core/mind/lease_holder.cpp4
-rw-r--r--ydb/core/mind/local.cpp2
-rw-r--r--ydb/core/mind/node_broker_impl.h2
-rw-r--r--ydb/core/mind/table_adapter.h10
-rw-r--r--ydb/core/mind/tenant_pool.cpp6
-rw-r--r--ydb/core/mind/tenant_slot_broker_impl.h2
-rw-r--r--ydb/core/persqueue/blob.cpp2
-rw-r--r--ydb/core/persqueue/partition_init.cpp14
-rw-r--r--ydb/core/persqueue/partition_monitoring.cpp2
-rw-r--r--ydb/core/persqueue/partition_types.h2
-rw-r--r--ydb/core/persqueue/partition_write.cpp4
-rw-r--r--ydb/core/persqueue/pq_impl.cpp10
-rw-r--r--ydb/core/persqueue/read_balancer.cpp6
-rw-r--r--ydb/core/persqueue/read_balancer.h2
-rw-r--r--ydb/core/persqueue/type_coders.h2
-rw-r--r--ydb/core/persqueue/writer/source_id_encoding.cpp8
-rw-r--r--ydb/core/quoter/quoter_service.cpp4
-rw-r--r--ydb/core/quoter/quoter_service_bandwidth_test/quota_requester.cpp2
-rw-r--r--ydb/core/sys_view/processor/db_counters.cpp2
-rw-r--r--ydb/core/sys_view/processor/processor_impl.cpp2
-rw-r--r--ydb/core/sys_view/storage/base.h4
-rw-r--r--ydb/core/tablet/bootstrapper.cpp2
-rw-r--r--ydb/core/tablet/private/aggregated_counters.cpp2
-rw-r--r--ydb/core/tablet/resource_broker_impl.h2
-rw-r--r--ydb/core/tablet/tablet_counters.cpp2
-rw-r--r--ydb/core/tablet/tablet_counters_aggregator.cpp2
-rw-r--r--ydb/core/tablet/tablet_counters_protobuf.h6
-rw-r--r--ydb/core/tablet/tablet_list_renderer.cpp4
-rw-r--r--ydb/core/tablet/tablet_req_rebuildhistory.cpp10
-rw-r--r--ydb/core/tablet/tablet_resolver.cpp14
-rw-r--r--ydb/core/tablet/tablet_sys.cpp6
-rw-r--r--ydb/core/tablet/tablet_sys.h4
-rw-r--r--ydb/core/tablet_flat/flat_bio_actor.cpp4
-rw-r--r--ydb/core/tablet_flat/flat_boot_alter.h2
-rw-r--r--ydb/core/tablet_flat/flat_boot_bundle.h6
-rw-r--r--ydb/core/tablet_flat/flat_boot_gclog.h2
-rw-r--r--ydb/core/tablet_flat/flat_boot_iface.h6
-rw-r--r--ydb/core/tablet_flat/flat_boot_loans.h2
-rw-r--r--ydb/core/tablet_flat/flat_boot_redo.h2
-rw-r--r--ydb/core/tablet_flat/flat_boot_util.h2
-rw-r--r--ydb/core/tablet_flat/flat_database.cpp10
-rw-r--r--ydb/core/tablet_flat/flat_dbase_apply.cpp2
-rw-r--r--ydb/core/tablet_flat/flat_dbase_naked.h4
-rw-r--r--ydb/core/tablet_flat/flat_dbase_sz_env.h2
-rw-r--r--ydb/core/tablet_flat/flat_executor.cpp26
-rw-r--r--ydb/core/tablet_flat/flat_executor_compaction_logic.cpp6
-rw-r--r--ydb/core/tablet_flat/flat_executor_database_ut.cpp4
-rw-r--r--ydb/core/tablet_flat/flat_fwd_blobs.h10
-rw-r--r--ydb/core/tablet_flat/flat_fwd_cache.h10
-rw-r--r--ydb/core/tablet_flat/flat_fwd_env.h4
-rw-r--r--ydb/core/tablet_flat/flat_fwd_page.h8
-rw-r--r--ydb/core/tablet_flat/flat_iterator.h18
-rw-r--r--ydb/core/tablet_flat/flat_mem_iter.h2
-rw-r--r--ydb/core/tablet_flat/flat_mem_warm.h4
-rw-r--r--ydb/core/tablet_flat/flat_ops_compact.h14
-rw-r--r--ydb/core/tablet_flat/flat_page_blobs.h2
-rw-r--r--ydb/core/tablet_flat/flat_page_bloom.h10
-rw-r--r--ydb/core/tablet_flat/flat_page_frames.h4
-rw-r--r--ydb/core/tablet_flat/flat_page_other.h4
-rw-r--r--ydb/core/tablet_flat/flat_part_forward.h4
-rw-r--r--ydb/core/tablet_flat/flat_part_iter_multi.h12
-rw-r--r--ydb/core/tablet_flat/flat_part_keys.h4
-rw-r--r--ydb/core/tablet_flat/flat_part_loader.cpp6
-rw-r--r--ydb/core/tablet_flat/flat_part_loader.h2
-rw-r--r--ydb/core/tablet_flat/flat_part_overlay.cpp10
-rw-r--r--ydb/core/tablet_flat/flat_part_screen.h4
-rw-r--r--ydb/core/tablet_flat/flat_redo_player.h6
-rw-r--r--ydb/core/tablet_flat/flat_redo_writer.h4
-rw-r--r--ydb/core/tablet_flat/flat_row_celled.h2
-rw-r--r--ydb/core/tablet_flat/flat_row_nulls.h2
-rw-r--r--ydb/core/tablet_flat/flat_row_remap.h2
-rw-r--r--ydb/core/tablet_flat/flat_row_scheme.h8
-rw-r--r--ydb/core/tablet_flat/flat_row_state.h2
-rw-r--r--ydb/core/tablet_flat/flat_sausage_flow.h2
-rw-r--r--ydb/core/tablet_flat/flat_sausage_grind.h4
-rw-r--r--ydb/core/tablet_flat/flat_sausage_packet.h2
-rw-r--r--ydb/core/tablet_flat/flat_sausage_solid.h2
-rw-r--r--ydb/core/tablet_flat/flat_sausagecache.cpp2
-rw-r--r--ydb/core/tablet_flat/flat_scan_actor.h4
-rw-r--r--ydb/core/tablet_flat/flat_scan_feed.h18
-rw-r--r--ydb/core/tablet_flat/flat_scan_iface.h2
-rw-r--r--ydb/core/tablet_flat/flat_stat_part.h2
-rw-r--r--ydb/core/tablet_flat/flat_store_hotdog.cpp2
-rw-r--r--ydb/core/tablet_flat/flat_store_solid.h4
-rw-r--r--ydb/core/tablet_flat/flat_table.cpp4
-rw-r--r--ydb/core/tablet_flat/flat_writer_bundle.h2
-rw-r--r--ydb/core/tablet_flat/shared_sausagecache.cpp6
-rw-r--r--ydb/core/tablet_flat/tablet_flat_executor.cpp2
-rw-r--r--ydb/core/tablet_flat/tablet_flat_executor.h2
-rw-r--r--ydb/core/tablet_flat/test/libs/exec/dummy.h6
-rw-r--r--ydb/core/tablet_flat/test/libs/exec/logger.h2
-rw-r--r--ydb/core/tablet_flat/test/libs/exec/nanny.h8
-rw-r--r--ydb/core/tablet_flat/test/libs/exec/storage.h2
-rw-r--r--ydb/core/tablet_flat/test/libs/exec/warden.h8
-rw-r--r--ydb/core/tablet_flat/test/libs/rows/cook.h4
-rw-r--r--ydb/core/tablet_flat/test/libs/rows/layout.h4
-rw-r--r--ydb/core/tablet_flat/test/libs/rows/mass.h2
-rw-r--r--ydb/core/tablet_flat/test/libs/table/model/keys.h4
-rw-r--r--ydb/core/tablet_flat/test/libs/table/model/large.h4
-rw-r--r--ydb/core/tablet_flat/test/libs/table/model/small.h4
-rw-r--r--ydb/core/tablet_flat/test/libs/table/test_comp.h10
-rw-r--r--ydb/core/tablet_flat/test/libs/table/test_dbase.h10
-rw-r--r--ydb/core/tablet_flat/test/libs/table/test_dummy.h4
-rw-r--r--ydb/core/tablet_flat/test/libs/table/test_envs.h2
-rw-r--r--ydb/core/tablet_flat/test/libs/table/test_make.h4
-rw-r--r--ydb/core/tablet_flat/test/libs/table/test_store.h10
-rw-r--r--ydb/core/tablet_flat/test/libs/table/test_writer.h2
-rw-r--r--ydb/core/tablet_flat/test/libs/table/wrap_dbase.h2
-rw-r--r--ydb/core/tablet_flat/test/tool/perf/names.h2
-rw-r--r--ydb/core/tablet_flat/ut/flat_test_db.h4
-rw-r--r--ydb/core/tablet_flat/ut/ut_screen.cpp2
-rw-r--r--ydb/core/tablet_flat/ut/ut_slice_loader.cpp6
-rw-r--r--ydb/core/tablet_flat/util_fmt_logger.h2
-rw-r--r--ydb/core/test_tablet/load_actor_read_validate.cpp6
-rw-r--r--ydb/core/test_tablet/load_actor_state.cpp2
-rw-r--r--ydb/core/test_tablet/test_shard_context.cpp2
-rw-r--r--ydb/core/test_tablet/test_shard_mon.cpp2
-rw-r--r--ydb/core/testlib/actors/test_runtime_ut.cpp4
-rw-r--r--ydb/core/testlib/cs_helper.cpp2
-rw-r--r--ydb/core/testlib/tablet_helpers.cpp4
-rw-r--r--ydb/core/testlib/tenant_runtime.cpp2
-rw-r--r--ydb/core/testlib/test_client.cpp2
-rw-r--r--ydb/core/tx/columnshard/blob.h16
-rw-r--r--ydb/core/tx/columnshard/blob_cache.cpp2
-rw-r--r--ydb/core/tx/columnshard/blob_manager.cpp4
-rw-r--r--ydb/core/tx/columnshard/columnshard__init.cpp6
-rw-r--r--ydb/core/tx/columnshard/columnshard__progress_tx.cpp2
-rw-r--r--ydb/core/tx/columnshard/columnshard__scan.cpp2
-rw-r--r--ydb/core/tx/columnshard/columnshard__write.cpp2
-rw-r--r--ydb/core/tx/columnshard/columnshard_impl.cpp4
-rw-r--r--ydb/core/tx/columnshard/columnshard_ut_common.h2
-rw-r--r--ydb/core/tx/columnshard/engines/changes/with_appended.cpp4
-rw-r--r--ydb/core/tx/columnshard/engines/portions/meta.cpp2
-rw-r--r--ydb/core/tx/columnshard/engines/ut_program.cpp4
-rw-r--r--ydb/core/tx/columnshard/splitter/ut/ut_splitter.cpp2
-rw-r--r--ydb/core/tx/coordinator/coordinator__restore_transaction.cpp2
-rw-r--r--ydb/core/tx/coordinator/coordinator_impl.cpp2
-rw-r--r--ydb/core/tx/datashard/build_data_tx_out_rs_unit.cpp2
-rw-r--r--ydb/core/tx/datashard/build_kqp_data_tx_out_rs_unit.cpp2
-rw-r--r--ydb/core/tx/datashard/change_collector_async_index.cpp2
-rw-r--r--ydb/core/tx/datashard/change_collector_cdc_stream.cpp2
-rw-r--r--ydb/core/tx/datashard/change_exchange_split.cpp2
-rw-r--r--ydb/core/tx/datashard/change_record.cpp8
-rw-r--r--ydb/core/tx/datashard/datashard.cpp4
-rw-r--r--ydb/core/tx/datashard/datashard__engine_host.cpp2
-rw-r--r--ydb/core/tx/datashard/datashard__init.cpp4
-rw-r--r--ydb/core/tx/datashard/datashard__kqp_scan.cpp2
-rw-r--r--ydb/core/tx/datashard/datashard__op_rows.cpp2
-rw-r--r--ydb/core/tx/datashard/datashard__progress_tx.cpp2
-rw-r--r--ydb/core/tx/datashard/datashard__propose_tx_base.cpp8
-rw-r--r--ydb/core/tx/datashard/datashard__read_iterator.cpp8
-rw-r--r--ydb/core/tx/datashard/datashard__stats.cpp4
-rw-r--r--ydb/core/tx/datashard/datashard_active_transaction.cpp2
-rw-r--r--ydb/core/tx/datashard/datashard_direct_erase.cpp2
-rw-r--r--ydb/core/tx/datashard/datashard_kqp_read_table.cpp2
-rw-r--r--ydb/core/tx/datashard/datashard_snapshots.cpp2
-rw-r--r--ydb/core/tx/datashard/datashard_user_table.cpp6
-rw-r--r--ydb/core/tx/datashard/datashard_user_table.h4
-rw-r--r--ydb/core/tx/datashard/datashard_ut_common.cpp6
-rw-r--r--ydb/core/tx/datashard/datashard_ut_read_table.h4
-rw-r--r--ydb/core/tx/datashard/erase_rows_condition.cpp4
-rw-r--r--ydb/core/tx/datashard/execute_data_tx_unit.cpp2
-rw-r--r--ydb/core/tx/datashard/execute_kqp_data_tx_unit.cpp2
-rw-r--r--ydb/core/tx/datashard/export_s3.h2
-rw-r--r--ydb/core/tx/datashard/export_s3_buffer_raw.cpp6
-rw-r--r--ydb/core/tx/datashard/export_s3_uploader.cpp2
-rw-r--r--ydb/core/tx/datashard/import_s3.cpp2
-rw-r--r--ydb/core/tx/datashard/make_scan_snapshot_unit.cpp2
-rw-r--r--ydb/core/tx/datashard/prepare_data_tx_in_rs_unit.cpp2
-rw-r--r--ydb/core/tx/datashard/prepare_kqp_data_tx_in_rs_unit.cpp2
-rw-r--r--ydb/core/tx/datashard/range_ops.cpp4
-rw-r--r--ydb/core/tx/datashard/volatile_tx.cpp6
-rw-r--r--ydb/core/tx/mediator/mediator_impl.cpp4
-rw-r--r--ydb/core/tx/mediator/tablet_queue.cpp2
-rw-r--r--ydb/core/tx/replication/controller/tx_drop_replication.cpp2
-rw-r--r--ydb/core/tx/replication/ydb_proxy/ydb_proxy.cpp2
-rw-r--r--ydb/core/tx/scheme_board/cache.cpp6
-rw-r--r--ydb/core/tx/scheme_board/load_test.cpp2
-rw-r--r--ydb/core/tx/scheme_board/monitoring.cpp6
-rw-r--r--ydb/core/tx/scheme_board/monitoring_ut.cpp26
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__conditional_erase.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__init.cpp8
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__init_root.cpp4
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation.cpp66
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_allocate_pq.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_alter_bsv.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_alter_extsubdomain.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_alter_fs.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_alter_kesus.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_alter_login.cpp6
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_alter_olap_store.cpp6
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_alter_olap_table.cpp6
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_alter_pq.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_alter_solomon.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_alter_subdomain.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_alter_table.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_alter_user_attrs.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_assign_bsv.cpp6
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_backup_restore_common.h4
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_blob_depot.cpp6
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_cancel_tx.cpp6
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_common.cpp10
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_bsv.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_external_data_source.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_external_table.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_extsubdomain.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_fs.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_kesus.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_olap_store.cpp8
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_olap_table.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_pq.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_replication.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_rtmr.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_sequence.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_solomon.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_subdomain.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_create_table.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_deallocate_pq.cpp6
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_bsv.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_cdc_stream.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_extsubdomain.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_fs.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_kesus.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_olap_store.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_olap_table.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_pq.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_replication.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_sequence.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_solomon.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_subdomain.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_drop_unsafe.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_finalize_build_index.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_just_reject.cpp6
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_memory_changes.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_modify_acl.cpp6
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_move_index.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_move_table_index.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_rmdir.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_split_merge.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__operation_upgrade_subdomain.cpp8
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__pq_stats.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard__table_stats.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard_audit_log_fragment.cpp6
-rw-r--r--ydb/core/tx/schemeshard/schemeshard_build_index__progress.cpp66
-rw-r--r--ydb/core/tx/schemeshard/schemeshard_build_index_tx_base.cpp4
-rw-r--r--ydb/core/tx/schemeshard/schemeshard_cdc_stream_scan.cpp4
-rw-r--r--ydb/core/tx/schemeshard/schemeshard_export_flow_proposals.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard_impl.cpp6
-rw-r--r--ydb/core/tx/schemeshard/schemeshard_import__cancel.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard_import_flow_proposals.cpp2
-rw-r--r--ydb/core/tx/schemeshard/schemeshard_path.cpp2
-rw-r--r--ydb/core/tx/schemeshard/ut_restore/ut_restore.cpp2
-rw-r--r--ydb/core/tx/sequenceshard/sequenceshard_impl.cpp2
-rw-r--r--ydb/core/tx/tx_proxy/commitreq.cpp2
-rw-r--r--ydb/core/tx/tx_proxy/datareq.cpp6
-rw-r--r--ydb/core/tx/tx_proxy/schemereq.cpp44
-rw-r--r--ydb/core/tx/tx_proxy/snapshotreq.cpp4
-rw-r--r--ydb/core/util/event_priority_queue_ut.cpp2
-rw-r--r--ydb/core/util/failure_injection.cpp2
-rw-r--r--ydb/core/util/single_thread_ic_mock.cpp2
-rw-r--r--ydb/core/util/testactorsys.cpp12
-rw-r--r--ydb/core/util/testactorsys.h6
-rw-r--r--ydb/core/wrappers/s3_storage_config.cpp4
-rw-r--r--ydb/core/ydb_convert/table_description.cpp2
-rw-r--r--ydb/core/ydb_convert/ydb_convert.cpp2
-rw-r--r--ydb/core/ymq/actor/actor.cpp2
-rw-r--r--ydb/core/ymq/actor/auth_multi_factory.cpp2
-rw-r--r--ydb/core/ymq/actor/executor.cpp2
-rw-r--r--ydb/core/ymq/actor/index_events_processor.cpp6
-rw-r--r--ydb/core/ymq/actor/queue_leader.cpp2
-rw-r--r--ydb/core/ymq/http/http.cpp2
-rw-r--r--ydb/library/backup/backup.cpp2
-rw-r--r--ydb/library/backup/db_iterator.h4
-rw-r--r--ydb/library/pdisk_io/spdk_state.h10
-rw-r--r--ydb/library/workload/kv_workload.cpp2
-rw-r--r--ydb/library/ycloud/impl/folder_service_adapter.cpp2
-rw-r--r--ydb/library/yql/core/yql_expr_csee.cpp2
-rw-r--r--ydb/library/yql/dq/actors/compute/dq_compute_actor_checkpoints.cpp2
-rw-r--r--ydb/library/yql/dq/actors/compute/dq_compute_actor_checkpoints.h2
-rw-r--r--ydb/library/yql/dq/runtime/dq_arrow_helpers_ut.cpp2
-rw-r--r--ydb/library/yql/dq/runtime/dq_tasks_runner.h2
-rw-r--r--ydb/library/yql/dq/state/dq_state_load_plan.cpp2
-rw-r--r--ydb/library/yql/minikql/comp_nodes/mkql_decimal_div.cpp2
-rw-r--r--ydb/library/yql/minikql/comp_nodes/mkql_decimal_mod.cpp2
-rw-r--r--ydb/library/yql/minikql/comp_nodes/mkql_decimal_mul.cpp2
-rw-r--r--ydb/library/yql/minikql/comp_nodes/mkql_dictitems.cpp2
-rw-r--r--ydb/library/yql/minikql/comp_nodes/mkql_invoke.cpp2
-rw-r--r--ydb/library/yql/minikql/comp_nodes/mkql_join.cpp14
-rw-r--r--ydb/library/yql/minikql/comp_nodes/mkql_join_dict.cpp2
-rw-r--r--ydb/library/yql/minikql/comp_nodes/mkql_map_join.cpp8
-rw-r--r--ydb/library/yql/minikql/comp_nodes/mkql_random.cpp2
-rw-r--r--ydb/library/yql/minikql/comp_nodes/mkql_sort.cpp2
-rw-r--r--ydb/library/yql/minikql/comp_nodes/mkql_udf.cpp2
-rw-r--r--ydb/library/yql/minikql/comp_nodes/mkql_withcontext.cpp2
-rw-r--r--ydb/library/yql/minikql/comp_nodes/ut/mkql_computation_node_ut.cpp2
-rw-r--r--ydb/library/yql/minikql/comp_nodes/ut/mkql_switch_ut.cpp8
-rw-r--r--ydb/library/yql/minikql/compact_hash.h10
-rw-r--r--ydb/library/yql/minikql/computation/mkql_computation_node_holders.cpp4
-rw-r--r--ydb/library/yql/minikql/computation/mkql_computation_node_pack.cpp2
-rw-r--r--ydb/library/yql/minikql/computation/mkql_validate.cpp2
-rw-r--r--ydb/library/yql/minikql/computation/mkql_validate_impl.h2
-rw-r--r--ydb/library/yql/minikql/computation/mkql_validate_ut.cpp6
-rw-r--r--ydb/library/yql/minikql/dom/make.cpp6
-rw-r--r--ydb/library/yql/minikql/jsonpath/ast_builder.cpp14
-rw-r--r--ydb/library/yql/minikql/jsonpath/value.cpp28
-rw-r--r--ydb/library/yql/minikql/mkql_node.cpp26
-rw-r--r--ydb/library/yql/minikql/mkql_program_builder.cpp2
-rw-r--r--ydb/library/yql/minikql/mkql_type_ops.cpp4
-rw-r--r--ydb/library/yql/parser/pg_wrapper/comp_factory.cpp2
-rw-r--r--ydb/library/yql/providers/common/codec/yql_codec.cpp2
-rw-r--r--ydb/library/yql/providers/common/mkql/yql_provider_mkql.cpp2
-rw-r--r--ydb/library/yql/providers/common/provider/yql_table_lookup.cpp2
-rw-r--r--ydb/library/yql/providers/dq/task_runner/tasks_runner_pipe.cpp28
-rw-r--r--ydb/library/yql/providers/pq/provider/yql_pq_helpers.cpp2
-rw-r--r--ydb/library/yql/providers/yt/comp_nodes/dq/dq_yt_rpc_reader.cpp2
-rw-r--r--ydb/library/yql/public/purecalc/common/transformations/align_output_schema.cpp4
-rw-r--r--ydb/library/yql/public/purecalc/common/transformations/output_columns_filter.cpp2
-rw-r--r--ydb/library/yql/public/purecalc/io_specs/protobuf/ut/test_spec.cpp2
-rw-r--r--ydb/library/yql/public/udf/service/stub/udf_service.cpp14
-rw-r--r--ydb/library/yql/public/udf/udf_type_inspection.h28
-rw-r--r--ydb/library/yql/public/udf/udf_type_ops.h18
-rw-r--r--ydb/library/yql/public/udf/udf_ut_helpers.h2
-rw-r--r--ydb/library/yql/public/udf/udf_value.h72
-rw-r--r--ydb/library/yql/public/udf/udf_value_inl.h4
-rw-r--r--ydb/library/yql/sql/v0/builtin.cpp2
-rw-r--r--ydb/library/yql/sql/v0/context.cpp2
-rw-r--r--ydb/library/yql/sql/v0/select.cpp2
-rw-r--r--ydb/library/yql/sql/v0/sql.cpp60
-rw-r--r--ydb/library/yql/sql/v1/builtin.cpp2
-rw-r--r--ydb/library/yql/sql/v1/select.cpp2
-rw-r--r--ydb/library/yql/sql/v1/sql_call_expr.cpp10
-rw-r--r--ydb/library/yql/sql/v1/sql_expression.cpp28
-rw-r--r--ydb/library/yql/sql/v1/sql_group_by.cpp2
-rw-r--r--ydb/library/yql/sql/v1/sql_into_tables.cpp4
-rw-r--r--ydb/library/yql/sql/v1/sql_match_recognize.cpp8
-rw-r--r--ydb/library/yql/sql/v1/sql_query.cpp8
-rw-r--r--ydb/library/yql/sql/v1/sql_select.cpp12
-rw-r--r--ydb/library/yql/sql/v1/sql_translation.cpp104
-rw-r--r--ydb/library/yql/tools/mrjob/mrjob.cpp2
-rw-r--r--ydb/library/yql/udfs/common/histogram/histogram_udf.cpp4
-rw-r--r--ydb/library/yql/udfs/common/hyperscan/hyperscan_udf.cpp2
-rw-r--r--ydb/library/yql/udfs/common/json2/sql_value.h4
-rw-r--r--ydb/library/yql/udfs/common/re2/re2_udf.cpp6
-rw-r--r--ydb/library/yql/udfs/common/url_base/lib/url_query.cpp2
-rw-r--r--ydb/library/yverify_stream/yverify_stream.h2
-rw-r--r--ydb/public/lib/deprecated/kicli/kikimr.cpp2
-rw-r--r--ydb/public/lib/idx_test/idx_test_loader.cpp2
-rw-r--r--ydb/public/lib/validation/main.cpp2
-rw-r--r--ydb/public/lib/ydb_cli/common/print_operation.cpp4
-rw-r--r--ydb/public/sdk/cpp/client/draft/ydb_dynamic_config.cpp2
-rw-r--r--ydb/public/sdk/cpp/client/impl/ydb_internal/db_driver_state/endpoint_pool.cpp2
-rw-r--r--ydb/public/sdk/cpp/client/ydb_coordination/coordination.cpp4
-rw-r--r--ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/read_session.ipp6
-rw-r--r--ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session.h2
-rw-r--r--ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session_impl.cpp4
-rw-r--r--ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session_impl.h2
-rw-r--r--ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/compress_executor_ut.cpp4
-rw-r--r--ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/ut_utils/ut_utils.h2
-rw-r--r--ydb/public/sdk/cpp/client/ydb_persqueue_public/codecs/codecs.cpp2
-rw-r--r--ydb/public/sdk/cpp/client/ydb_topic/codecs/codecs.cpp2
-rw-r--r--ydb/public/sdk/cpp/client/ydb_topic/impl/topic.cpp2
-rw-r--r--ydb/public/sdk/cpp/client/ydb_topic/impl/write_session.h2
-rw-r--r--ydb/public/sdk/cpp/client/ydb_topic/impl/write_session_impl.h6
-rw-r--r--ydb/services/cms/cms_ut.cpp2
-rw-r--r--ydb/services/datastreams/datastreams_ut.cpp2
-rw-r--r--ydb/services/kesus/grpc_service.cpp8
-rw-r--r--ydb/services/lib/actors/pq_schema_actor.h2
-rw-r--r--ydb/services/persqueue_v1/actors/schema_actors.cpp4
-rw-r--r--ydb/services/persqueue_v1/actors/schema_actors.h4
-rw-r--r--ydb/services/persqueue_v1/actors/write_session_actor.ipp4
-rw-r--r--ydb/services/persqueue_v1/ut/pq_data_writer.h2
-rw-r--r--ydb/services/ydb/sdk_credprovider_ut/dummy_provider_ut.cpp2
-rw-r--r--ydb/services/ydb/ydb_index_ut.cpp2
641 files changed, 1514 insertions, 1514 deletions
diff --git a/ydb/core/actorlib_impl/actor_tracker_ut.cpp b/ydb/core/actorlib_impl/actor_tracker_ut.cpp
index c0b333bf14..125a6e26f5 100644
--- a/ydb/core/actorlib_impl/actor_tracker_ut.cpp
+++ b/ydb/core/actorlib_impl/actor_tracker_ut.cpp
@@ -38,7 +38,7 @@ public:
switch (ev->GetTypeRewrite()) {
HFunc(TEvents::TEvPoisonPill, HandlePoison);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
};
@@ -64,7 +64,7 @@ public:
switch (ev->GetTypeRewrite()) {
HFunc(TEvents::TEvPoisonPill, TBase::HandlePoison);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
};
diff --git a/ydb/core/actorlib_impl/connect_socket_protocol.cpp b/ydb/core/actorlib_impl/connect_socket_protocol.cpp
index 23b16ce429..dcc299a6b9 100644
--- a/ydb/core/actorlib_impl/connect_socket_protocol.cpp
+++ b/ydb/core/actorlib_impl/connect_socket_protocol.cpp
@@ -26,7 +26,7 @@ void TConnectSocketProtocol::ProtocolFunc(
break;
default:
- Y_FAIL("Unknown message type dispatched");
+ Y_ABORT("Unknown message type dispatched");
}
}
@@ -56,15 +56,15 @@ bool TConnectSocketProtocol::CheckConnectResult(
break;
case EBADF:
- Y_FAIL("bad descriptor");
+ Y_ABORT("bad descriptor");
case EFAULT:
- Y_FAIL("socket structure address is outside the user's address space");
+ Y_ABORT("socket structure address is outside the user's address space");
case EAFNOSUPPORT:
- Y_FAIL("EAFNOSUPPORT");
+ Y_ABORT("EAFNOSUPPORT");
case EISCONN:
- Y_FAIL("socket is already connected");
+ Y_ABORT("socket is already connected");
case ENOTSOCK:
- Y_FAIL("descriptor is not a socket");
+ Y_ABORT("descriptor is not a socket");
case EACCES:
CatchConnectError(ctx, "permission denied");
@@ -105,22 +105,22 @@ static TDelegate CheckConnectionRoutine(
if (GetSockOpt(*sock, SOL_SOCKET, SO_ERROR, errCode) == -1) {
switch (errno) {
case EBADF:
- Y_FAIL("Bad descriptor");
+ Y_ABORT("Bad descriptor");
case EFAULT:
- Y_FAIL("Invalid optval in getsockopt");
+ Y_ABORT("Invalid optval in getsockopt");
case EINVAL:
- Y_FAIL("Invalid optlne in getsockopt");
+ Y_ABORT("Invalid optlne in getsockopt");
case ENOPROTOOPT:
- Y_FAIL("Unknown option getsockopt");
+ Y_ABORT("Unknown option getsockopt");
case ENOTSOCK:
- Y_FAIL("Not a socket in getsockopt");
+ Y_ABORT("Not a socket in getsockopt");
default:
- Y_FAIL("Unexpected error from getsockopt");
+ Y_ABORT("Unexpected error from getsockopt");
}
}
diff --git a/ydb/core/actorlib_impl/http_request_protocol.h b/ydb/core/actorlib_impl/http_request_protocol.h
index be3ebaa62f..e23862ab9a 100644
--- a/ydb/core/actorlib_impl/http_request_protocol.h
+++ b/ydb/core/actorlib_impl/http_request_protocol.h
@@ -236,7 +236,7 @@ private:
switch (ev->GetTypeRewrite()) {
CFuncCtx(TEvHTTPProtocolRetry::EventType, Retry, ctx);
default:
- Y_FAIL("Unknown message type dispatched");
+ Y_ABORT("Unknown message type dispatched");
}
}
diff --git a/ydb/core/actorlib_impl/name_service_client_protocol.cpp b/ydb/core/actorlib_impl/name_service_client_protocol.cpp
index fdc69829fb..f5019a7c73 100644
--- a/ydb/core/actorlib_impl/name_service_client_protocol.cpp
+++ b/ydb/core/actorlib_impl/name_service_client_protocol.cpp
@@ -21,7 +21,7 @@ void TResolveClientProtocol::ProtocolFunc(
break;
default:
- Y_FAIL("Unknown message type dispatched");
+ Y_ABORT("Unknown message type dispatched");
}
}
diff --git a/ydb/core/actorlib_impl/read_data_protocol.cpp b/ydb/core/actorlib_impl/read_data_protocol.cpp
index 2047932405..f8238580a9 100644
--- a/ydb/core/actorlib_impl/read_data_protocol.cpp
+++ b/ydb/core/actorlib_impl/read_data_protocol.cpp
@@ -19,7 +19,7 @@ void TReadDataProtocolImpl::ProtocolFunc(
break;
default:
- Y_FAIL("Unknown message type dispatched");
+ Y_ABORT("Unknown message type dispatched");
}
}
@@ -112,7 +112,7 @@ void TReadDataProtocolImpl::TryAgain(const TActorContext& ctx) noexcept {
case ENOTSOCK:
case EOPNOTSUPP:
{
- Y_FAIL("Very bad socket error");
+ Y_ABORT("Very bad socket error");
}
}
}
diff --git a/ydb/core/actorlib_impl/send_data_protocol.cpp b/ydb/core/actorlib_impl/send_data_protocol.cpp
index 6fd6a86437..bf1a291ca5 100644
--- a/ydb/core/actorlib_impl/send_data_protocol.cpp
+++ b/ydb/core/actorlib_impl/send_data_protocol.cpp
@@ -19,7 +19,7 @@ void TSendDataProtocol::ProtocolFunc(
break;
default:
- Y_FAIL("Unknown message type dispatched");
+ Y_ABORT("Unknown message type dispatched");
}
}
@@ -93,7 +93,7 @@ void TSendDataProtocol::TryAgain(const TActorContext& ctx) noexcept {
case ENOTSOCK:
case EOPNOTSUPP:
{
- Y_FAIL("Very bad socket error");
+ Y_ABORT("Very bad socket error");
}
}
}
diff --git a/ydb/core/actorlib_impl/test_protocols_ut.cpp b/ydb/core/actorlib_impl/test_protocols_ut.cpp
index 8d336b5477..1323eb6546 100644
--- a/ydb/core/actorlib_impl/test_protocols_ut.cpp
+++ b/ydb/core/actorlib_impl/test_protocols_ut.cpp
@@ -481,7 +481,7 @@ Y_UNIT_TEST_SUITE(TestProtocols) {
const TActorContext& ctx) noexcept
{
if (State != EState::WRITE_DATA_COMPLETE)
- Y_FAIL("Stream is not ready to write data");
+ Y_ABORT("Stream is not ready to write data");
TEvHTTPSendContent const* msg = ev->Get();
HTTPWriteContent(this, ctx, msg->Data, msg->Len,msg->Last);
diff --git a/ydb/core/base/blobstorage.cpp b/ydb/core/base/blobstorage.cpp
index 2907f0689a..2a15283b95 100644
--- a/ydb/core/base/blobstorage.cpp
+++ b/ydb/core/base/blobstorage.cpp
@@ -13,7 +13,7 @@ NKikimrBlobStorage::EPDiskType PDiskTypeToPDiskType(const NPDisk::EDeviceType ty
case NPDisk::DEVICE_TYPE_UNKNOWN:
return NKikimrBlobStorage::EPDiskType::UNKNOWN_TYPE;
default:
- Y_FAIL("Device type is unknown; type# %" PRIu64, (ui64)type);
+ Y_ABORT("Device type is unknown; type# %" PRIu64, (ui64)type);
}
}
@@ -28,7 +28,7 @@ NPDisk::EDeviceType PDiskTypeToPDiskType(const NKikimrBlobStorage::EPDiskType ty
case NKikimrBlobStorage::EPDiskType::UNKNOWN_TYPE:
return NPDisk::DEVICE_TYPE_UNKNOWN;
default:
- Y_FAIL("Device type is unknown; type# %" PRIu64, (ui64)type);
+ Y_ABORT("Device type is unknown; type# %" PRIu64, (ui64)type);
}
}
diff --git a/ydb/core/base/blobstorage.h b/ydb/core/base/blobstorage.h
index af83ccea8e..7955b52929 100644
--- a/ydb/core/base/blobstorage.h
+++ b/ydb/core/base/blobstorage.h
@@ -2370,7 +2370,7 @@ static inline NKikimrBlobStorage::EVDiskQueueId HandleClassToQueueId(NKikimrBlob
case NKikimrBlobStorage::EPutHandleClass::UserData:
return NKikimrBlobStorage::EVDiskQueueId::PutUserData;
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
@@ -2386,7 +2386,7 @@ static inline NKikimrBlobStorage::EVDiskQueueId HandleClassToQueueId(NKikimrBlob
case NKikimrBlobStorage::EGetHandleClass::LowRead:
return NKikimrBlobStorage::EVDiskQueueId::GetLowRead;
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
diff --git a/ydb/core/base/board_lookup.cpp b/ydb/core/base/board_lookup.cpp
index f28ddcbaa6..113e80b7f5 100644
--- a/ydb/core/base/board_lookup.cpp
+++ b/ydb/core/base/board_lookup.cpp
@@ -187,7 +187,7 @@ class TBoardLookupActor : public TActorBootstrapped<TBoardLookupActor> {
WaitForReplicasToSuccess = (Replicas.size() / 2 + 1);
break;
default:
- Y_FAIL("unsupported mode");
+ Y_ABORT("unsupported mode");
}
Become(&TThis::StateLookup);
diff --git a/ydb/core/base/board_replica.cpp b/ydb/core/base/board_replica.cpp
index a89cfa2b3a..358e352934 100644
--- a/ydb/core/base/board_replica.cpp
+++ b/ydb/core/base/board_replica.cpp
@@ -334,7 +334,7 @@ class TBoardReplicaActor : public TActor<TBoardReplicaActor> {
break;
}
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
diff --git a/ydb/core/base/group_stat.h b/ydb/core/base/group_stat.h
index 69ef0ade18..7b22193e58 100644
--- a/ydb/core/base/group_stat.h
+++ b/ydb/core/base/group_stat.h
@@ -258,7 +258,7 @@ namespace NKikimr {
case EKind::GET_FAST:
return GetFast;
}
- Y_FAIL("unexpected TGroupStat::EKind value");
+ Y_ABORT("unexpected TGroupStat::EKind value");
}
};
diff --git a/ydb/core/base/statestorage.cpp b/ydb/core/base/statestorage.cpp
index 10db7861de..e1a1707a86 100644
--- a/ydb/core/base/statestorage.cpp
+++ b/ydb/core/base/statestorage.cpp
@@ -242,7 +242,7 @@ static void CopyStateStorageRingInfo(
return;
}
- Y_FAIL("must have rings or legacy node config");
+ Y_ABORT("must have rings or legacy node config");
}
TIntrusivePtr<TStateStorageInfo> BuildStateStorageInfo(char (&namePrefix)[TActorId::MaxServiceIDLength], const NKikimrConfig::TDomainsConfig::TStateStorage& config) {
diff --git a/ydb/core/base/statestorage_guardian.cpp b/ydb/core/base/statestorage_guardian.cpp
index cfd7d8249e..4ccee3e99c 100644
--- a/ydb/core/base/statestorage_guardian.cpp
+++ b/ydb/core/base/statestorage_guardian.cpp
@@ -212,7 +212,7 @@ class TReplicaGuardian : public TActorBootstrapped<TReplicaGuardian> {
} else if (status == NKikimrProto::ERROR) {
return UpdateInfo();
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -472,7 +472,7 @@ class TTabletGuardian : public TActorBootstrapped<TTabletGuardian> {
void Handle(TEvents::TEvUndelivered::TPtr &ev) {
Y_UNUSED(ev);
- Y_FAIL("must not happens, guardian must be created over active tablet");
+ Y_ABORT("must not happens, guardian must be created over active tablet");
}
ui32 CountOnlineReplicas() const {
diff --git a/ydb/core/base/statestorage_proxy.cpp b/ydb/core/base/statestorage_proxy.cpp
index 8f648ea355..327b783268 100644
--- a/ydb/core/base/statestorage_proxy.cpp
+++ b/ydb/core/base/statestorage_proxy.cpp
@@ -226,7 +226,7 @@ class TStateStorageProxyRequest : public TActor<TStateStorageProxyRequest> {
} else if (status == NKikimrProto::ERROR) {
ReplicaSelection->MergeReply(TStateStorageInfo::TSelection::StatusNoInfo, &ReplyStatus, cookie, false);
} else {
- Y_FAIL();
+ Y_ABORT();
}
for (ui32 i = 0, end = record.FollowerSize(); i < end; ++i) {
@@ -797,7 +797,7 @@ class TStateStorageProxy : public TActor<TStateStorageProxy> {
break;
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
ResolveReplicas(ev, fakeTabletId, SchemeBoardInfo);
diff --git a/ydb/core/blob_depot/agent/agent_impl.h b/ydb/core/blob_depot/agent/agent_impl.h
index d2e73b687f..f7fcf65e64 100644
--- a/ydb/core/blob_depot/agent/agent_impl.h
+++ b/ydb/core/blob_depot/agent/agent_impl.h
@@ -62,7 +62,7 @@ namespace NKikimr::NBlobDepot {
} else if (auto *error = std::get_if<TError>(&Outcome)) {
s << "Error# '" << EscapeC(error->ErrorReason) << '\'';
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blob_depot/agent/blob_mapping_cache.cpp b/ydb/core/blob_depot/agent/blob_mapping_cache.cpp
index 6190285efc..89b728d3c0 100644
--- a/ydb/core/blob_depot/agent/blob_mapping_cache.cpp
+++ b/ydb/core/blob_depot/agent/blob_mapping_cache.cpp
@@ -91,7 +91,7 @@ namespace NKikimr::NBlobDepot {
item.SetKey(resolveContext.Key);
process(item, true);
} else {
- Y_FAIL("unexpected resolve response");
+ Y_ABORT("unexpected resolve response");
}
}
}
@@ -161,7 +161,7 @@ namespace NKikimr::NBlobDepot {
}
}
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blob_depot/agent/blocks.cpp b/ydb/core/blob_depot/agent/blocks.cpp
index a350ce0dcf..ce3025f362 100644
--- a/ydb/core/blob_depot/agent/blocks.cpp
+++ b/ydb/core/blob_depot/agent/blocks.cpp
@@ -44,7 +44,7 @@ namespace NKikimr::NBlobDepot {
block.RefreshId = 0;
IssueOnUpdateBlock(block);
} else {
- Y_FAIL("unexpected response type");
+ Y_ABORT("unexpected response type");
}
}
diff --git a/ydb/core/blob_depot/agent/proxy.cpp b/ydb/core/blob_depot/agent/proxy.cpp
index e40b978cc6..740885a42e 100644
--- a/ydb/core/blob_depot/agent/proxy.cpp
+++ b/ydb/core/blob_depot/agent/proxy.cpp
@@ -45,7 +45,7 @@ namespace NKikimr::NBlobDepot {
}
default:
- Y_FAIL("unexpected request type for decommission proxy Type# 0x%08" PRIx32, type);
+ Y_ABORT("unexpected request type for decommission proxy Type# 0x%08" PRIx32, type);
}
Send(SelfId(), response.release(), 0, id);
}
diff --git a/ydb/core/blob_depot/agent/query.cpp b/ydb/core/blob_depot/agent/query.cpp
index 13efdc66ca..00e7337f92 100644
--- a/ydb/core/blob_depot/agent/query.cpp
+++ b/ydb/core/blob_depot/agent/query.cpp
@@ -9,7 +9,7 @@ namespace NKikimr::NBlobDepot {
ENUMERATE_INCOMING_EVENTS(XX)
#undef XX
}
- Y_FAIL();
+ Y_ABORT();
}
void TBlobDepotAgent::HandleStorageProxy(TAutoPtr<IEventHandle> ev) {
@@ -242,7 +242,7 @@ namespace NKikimr::NBlobDepot {
ENUMERATE_INCOMING_EVENTS(XX)
#undef XX
}
- Y_FAIL();
+ Y_ABORT();
}
} // NKikimr::NBlobDepot
diff --git a/ydb/core/blob_depot/agent/storage_block.cpp b/ydb/core/blob_depot/agent/storage_block.cpp
index 0bf35d5961..6afb7a80cf 100644
--- a/ydb/core/blob_depot/agent/storage_block.cpp
+++ b/ydb/core/blob_depot/agent/storage_block.cpp
@@ -40,7 +40,7 @@ namespace NKikimr::NBlobDepot {
} else if (auto *p = std::get_if<TEvBlobDepot::TEvBlockResult*>(&response)) {
return HandleBlockResult(std::move(context), **p);
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blob_depot/agent/storage_collect_garbage.cpp b/ydb/core/blob_depot/agent/storage_collect_garbage.cpp
index ed3780b3b7..73e38b6e7a 100644
--- a/ydb/core/blob_depot/agent/storage_collect_garbage.cpp
+++ b/ydb/core/blob_depot/agent/storage_collect_garbage.cpp
@@ -81,7 +81,7 @@ namespace NKikimr::NBlobDepot {
} else if (auto *p = std::get_if<TEvBlobDepot::TEvCollectGarbageResult*>(&response)) {
HandleCollectGarbageResult(std::move(context), (*p)->Record);
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blob_depot/agent/storage_discover.cpp b/ydb/core/blob_depot/agent/storage_discover.cpp
index bfa14780bf..6f1239bb55 100644
--- a/ydb/core/blob_depot/agent/storage_discover.cpp
+++ b/ydb/core/blob_depot/agent/storage_discover.cpp
@@ -78,7 +78,7 @@ namespace NKikimr::NBlobDepot {
HandleResolveResult(id, std::move(context), **p);
}
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -143,7 +143,7 @@ namespace NKikimr::NBlobDepot {
return CheckIfDone();
}
} else {
- Y_FAIL(); // do not expect to return single key in few messages
+ Y_ABORT(); // do not expect to return single key in few messages
}
if (status == NKikimrProto::OVERRUN) { // there will be extra message with data
diff --git a/ydb/core/blob_depot/agent/storage_get.cpp b/ydb/core/blob_depot/agent/storage_get.cpp
index 9273613899..b3e6d8c034 100644
--- a/ydb/core/blob_depot/agent/storage_get.cpp
+++ b/ydb/core/blob_depot/agent/storage_get.cpp
@@ -183,7 +183,7 @@ namespace NKikimr::NBlobDepot {
CheckAndFinish();
}
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blob_depot/agent/storage_patch.cpp b/ydb/core/blob_depot/agent/storage_patch.cpp
index b25443d501..1fbb328f34 100644
--- a/ydb/core/blob_depot/agent/storage_patch.cpp
+++ b/ydb/core/blob_depot/agent/storage_patch.cpp
@@ -14,7 +14,7 @@ namespace NKikimr::NBlobDepot {
void ProcessResponse(ui64 /*id*/, TRequestContext::TPtr /*context*/, TResponse response) override {
(void)response;
- Y_FAIL();
+ Y_ABORT();
}
};
diff --git a/ydb/core/blob_depot/agent/storage_put.cpp b/ydb/core/blob_depot/agent/storage_put.cpp
index 472c5e072f..4f2c045f9a 100644
--- a/ydb/core/blob_depot/agent/storage_put.cpp
+++ b/ydb/core/blob_depot/agent/storage_put.cpp
@@ -205,7 +205,7 @@ namespace NKikimr::NBlobDepot {
} else if (std::holds_alternative<TTabletDisconnected>(response)) {
EndWithError(NKikimrProto::ERROR, "BlobDepot tablet disconnected");
} else {
- Y_FAIL("unexpected response");
+ Y_ABORT("unexpected response");
}
}
diff --git a/ydb/core/blob_depot/agent/storage_range.cpp b/ydb/core/blob_depot/agent/storage_range.cpp
index f55082058f..e6dcbb5189 100644
--- a/ydb/core/blob_depot/agent/storage_range.cpp
+++ b/ydb/core/blob_depot/agent/storage_range.cpp
@@ -60,7 +60,7 @@ namespace NKikimr::NBlobDepot {
} else if (std::holds_alternative<TTabletDisconnected>(response)) {
EndWithError(NKikimrProto::ERROR, "BlobDepot tablet disconnected");
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blob_depot/agent/storage_status.cpp b/ydb/core/blob_depot/agent/storage_status.cpp
index 8e52166a9e..5b7713db95 100644
--- a/ydb/core/blob_depot/agent/storage_status.cpp
+++ b/ydb/core/blob_depot/agent/storage_status.cpp
@@ -14,7 +14,7 @@ namespace NKikimr::NBlobDepot {
}
void ProcessResponse(ui64 /*id*/, TRequestContext::TPtr /*context*/, TResponse /*response*/) override {
- Y_FAIL();
+ Y_ABORT();
}
};
diff --git a/ydb/core/blob_depot/blob_depot.cpp b/ydb/core/blob_depot/blob_depot.cpp
index 37a86b2080..32eb8d5ff9 100644
--- a/ydb/core/blob_depot/blob_depot.cpp
+++ b/ydb/core/blob_depot/blob_depot.cpp
@@ -40,7 +40,7 @@ namespace NKikimr::NBlobDepot {
hFunc(TEvBlobDepot::TEvPushNotifyResult, Handle);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -89,7 +89,7 @@ namespace NKikimr::NBlobDepot {
if (!ReadyForAgentQueries()) { // we can't handle agent queries now -- enqueue this message
info.PostponeQ.emplace_back(ev.Release());
} else if (!info.PostponeQ.empty()) {
- Y_FAIL("PostponeQ can't be nonempty while agent is running");
+ Y_ABORT("PostponeQ can't be nonempty while agent is running");
} else if (info.InFlightDeliveries++) {
TActivationContext::Send(ev.Release());
} else { // handle event as delivery one
@@ -130,7 +130,7 @@ namespace NKikimr::NBlobDepot {
default:
if (!HandleDefaultEvents(ev, SelfId())) {
- Y_FAIL("unexpected event Type# 0x%08" PRIx32, type);
+ Y_ABORT("unexpected event Type# 0x%08" PRIx32, type);
}
break;
}
diff --git a/ydb/core/blob_depot/blob_depot_tablet.h b/ydb/core/blob_depot/blob_depot_tablet.h
index 296872f990..c0b6efa3e0 100644
--- a/ydb/core/blob_depot/blob_depot_tablet.h
+++ b/ydb/core/blob_depot/blob_depot_tablet.h
@@ -149,7 +149,7 @@ namespace NKikimr::NBlobDepot {
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void Enqueue(TAutoPtr<IEventHandle>& ev) override {
- Y_FAIL("unexpected event Type# %08" PRIx32, ev->GetTypeRewrite());
+ Y_ABORT("unexpected event Type# %08" PRIx32, ev->GetTypeRewrite());
}
void DefaultSignalTabletActive(const TActorContext&) override {} // signalled explicitly after load is complete
diff --git a/ydb/core/blob_depot/coro_tx.cpp b/ydb/core/blob_depot/coro_tx.cpp
index c3a31b3571..58b0e55cab 100644
--- a/ydb/core/blob_depot/coro_tx.cpp
+++ b/ydb/core/blob_depot/coro_tx.cpp
@@ -145,7 +145,7 @@ namespace NKikimr::NBlobDepot {
return false;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -170,7 +170,7 @@ namespace NKikimr::NBlobDepot {
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blob_depot/data.h b/ydb/core/blob_depot/data.h
index ab62dca2c2..f66fb684b6 100644
--- a/ydb/core/blob_depot/data.h
+++ b/ydb/core/blob_depot/data.h
@@ -137,7 +137,7 @@ namespace NKikimr::NBlobDepot {
} else if (Data.Type == MinType) {
return {};
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -193,7 +193,7 @@ namespace NKikimr::NBlobDepot {
return 0;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
}
@@ -232,7 +232,7 @@ namespace NKikimr::NBlobDepot {
} else if (Data.Type <= MaxInlineStringLen) {
return TStringBuf(reinterpret_cast<const char*>(Data.Bytes), DecodeInlineStringLenFromTypeByte(Data.Type));
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blob_depot/data_trash.cpp b/ydb/core/blob_depot/data_trash.cpp
index 788bd65c3e..001928a281 100644
--- a/ydb/core/blob_depot/data_trash.cpp
+++ b/ydb/core/blob_depot/data_trash.cpp
@@ -92,7 +92,7 @@ namespace NKikimr::NBlobDepot {
if (const TGenStep genStep(*it); genStep <= record.IssuedGenStep) {
doNotKeep.push_back(*it);
} else if (nextGenStep < genStep) {
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blob_depot/data_uncertain.cpp b/ydb/core/blob_depot/data_uncertain.cpp
index bdbc331765..2f2ad26799 100644
--- a/ydb/core/blob_depot/data_uncertain.cpp
+++ b/ydb/core/blob_depot/data_uncertain.cpp
@@ -201,7 +201,7 @@ namespace NKikimr::NBlobDepot {
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
if (--request->NumUncertainKeys == 0) { // we can finish the request
STLOG(PRI_DEBUG, BLOB_DEPOT, BDT67, "uncertainty resolver finished", (Id, Self->GetLogId()),
diff --git a/ydb/core/blob_depot/given_id_range.cpp b/ydb/core/blob_depot/given_id_range.cpp
index 7ef168f677..fc56b348e3 100644
--- a/ydb/core/blob_depot/given_id_range.cpp
+++ b/ydb/core/blob_depot/given_id_range.cpp
@@ -134,7 +134,7 @@ namespace NKikimr::NBlobDepot {
if (myIt->first < otherIt->first) {
++myIt;
} else if (otherIt->first < myIt->first) {
- Y_FAIL();
+ Y_ABORT();
} else {
TChunk& myChunk = myIt->second;
const TChunk& otherChunk = otherIt->second;
diff --git a/ydb/core/blob_depot/mon_main.cpp b/ydb/core/blob_depot/mon_main.cpp
index 63cb92deeb..2953d187e4 100644
--- a/ydb/core/blob_depot/mon_main.cpp
+++ b/ydb/core/blob_depot/mon_main.cpp
@@ -80,7 +80,7 @@ namespace NKikimr::NBlobDepot {
break;
}
if (!render) {
- Y_FAIL();
+ Y_ABORT();
}
HTML(Stream) {
diff --git a/ydb/core/blob_depot/testing.cpp b/ydb/core/blob_depot/testing.cpp
index 6890dc97b5..e94b873abb 100644
--- a/ydb/core/blob_depot/testing.cpp
+++ b/ydb/core/blob_depot/testing.cpp
@@ -12,7 +12,7 @@ namespace NKikimr::NBlobDepot {
if (auto *x = dynamic_cast<TBlobDepot*>(actor)) {
x->Validate(overseer);
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -20,7 +20,7 @@ namespace NKikimr::NBlobDepot {
if (auto *x = dynamic_cast<TBlobDepot*>(actor)) {
x->OnSuccessfulGetResult(id);
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -30,7 +30,7 @@ namespace NKikimr::NBlobDepot {
switch (userState) {
case NTesting::EBlobState::NOT_WRITTEN:
case NTesting::EBlobState::CERTAINLY_COLLECTED_OR_NEVER_WRITTEN:
- Y_FAIL();
+ Y_ABORT();
case NTesting::EBlobState::POSSIBLY_WRITTEN:
break;
diff --git a/ydb/core/blob_depot/types.h b/ydb/core/blob_depot/types.h
index 9200a23135..24082e56b1 100644
--- a/ydb/core/blob_depot/types.h
+++ b/ydb/core/blob_depot/types.h
@@ -101,7 +101,7 @@ namespace NKikimr::NBlobDepot {
return Index << typeBits | static_cast<ui32>(type);
}
- Y_FAIL();
+ Y_ABORT();
}
static ui32 IndexFromCookie(ui32 cookie) {
diff --git a/ydb/core/blobstorage/backpressure/event.h b/ydb/core/blobstorage/backpressure/event.h
index 544c50d36c..651e83b625 100644
--- a/ydb/core/blobstorage/backpressure/event.h
+++ b/ydb/core/blobstorage/backpressure/event.h
@@ -115,7 +115,7 @@ public:
CASE(TEvVGetBlock);
CASE(TEvVCollectGarbage);
CASE(TEvVGetBarrier);
- default: Y_FAIL();
+ default: Y_ABORT();
#undef CASE
}
}
diff --git a/ydb/core/blobstorage/backpressure/queue_backpressure_client.cpp b/ydb/core/blobstorage/backpressure/queue_backpressure_client.cpp
index f71d7d33d8..b3c9d1d33c 100644
--- a/ydb/core/blobstorage/backpressure/queue_backpressure_client.cpp
+++ b/ydb/core/blobstorage/backpressure/queue_backpressure_client.cpp
@@ -239,7 +239,7 @@ private:
break;
default:
- Y_FAIL("unexpected message type 0x%08" PRIx32, type);
+ Y_ABORT("unexpected message type 0x%08" PRIx32, type);
}
if (ev->GetChannel() != expected) {
@@ -377,7 +377,7 @@ private:
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
Queue.Unwind(msgId, sequenceId, expectedMsgId, expectedSequenceId);
@@ -902,7 +902,7 @@ private:
DEFINE_EVENTS(XX)
#undef XX
default:
- Y_FAIL("unexpected event Type# 0x%08" PRIx32, type);
+ Y_ABORT("unexpected event Type# 0x%08" PRIx32, type);
}
#endif
switch (type) {
@@ -955,7 +955,7 @@ private:
CFunc(NActors::TEvents::TSystem::PoisonPill, Die)
default:
- Y_FAIL("unexpected event Type# 0x%08" PRIx32, type);
+ Y_ABORT("unexpected event Type# 0x%08" PRIx32, type);
}
}
};
diff --git a/ydb/core/blobstorage/backpressure/queue_backpressure_client_ut.cpp b/ydb/core/blobstorage/backpressure/queue_backpressure_client_ut.cpp
index 3f6a370a47..164d2bf172 100644
--- a/ydb/core/blobstorage/backpressure/queue_backpressure_client_ut.cpp
+++ b/ydb/core/blobstorage/backpressure/queue_backpressure_client_ut.cpp
@@ -61,7 +61,7 @@ public:
HFunc(TEvBlobStorage::TEvVReadyNotify, HandleBw);
HFunc(TEvBlobStorage::TEvVWindowChange, HandleBw);
HFunc(TEvBlobStorage::TEvVSyncGuid, HandleForward);
- default: Y_FAIL("unexpected event Type# 0x%08" PRIx32, ev->GetTypeRewrite());
+ default: Y_ABORT("unexpected event Type# 0x%08" PRIx32, ev->GetTypeRewrite());
}
}
}
diff --git a/ydb/core/blobstorage/backpressure/queue_backpressure_server.h b/ydb/core/blobstorage/backpressure/queue_backpressure_server.h
index 951d1b764d..13829fe5e3 100644
--- a/ydb/core/blobstorage/backpressure/queue_backpressure_server.h
+++ b/ydb/core/blobstorage/backpressure/queue_backpressure_server.h
@@ -252,7 +252,7 @@ namespace NKikimr {
case EWindowState::Fading:
case EWindowState::Frozen:
break;
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
UpdateCountdown(costChange);
}
@@ -348,7 +348,7 @@ namespace NKikimr {
break;
}
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
diff --git a/ydb/core/blobstorage/backpressure/ut_client/backpressure_ut.cpp b/ydb/core/blobstorage/backpressure/ut_client/backpressure_ut.cpp
index 1a0760c6cf..3c92342241 100644
--- a/ydb/core/blobstorage/backpressure/ut_client/backpressure_ut.cpp
+++ b/ydb/core/blobstorage/backpressure/ut_client/backpressure_ut.cpp
@@ -67,7 +67,7 @@ Y_UNIT_TEST_SUITE(Backpressure) {
}
default:
- Y_FAIL();
+ Y_ABORT();
}
const TDuration quantum = TDuration::FromValue(minQ.GetValue() + RandomNumber(maxQ.GetValue() - minQ.GetValue() + 1));
diff --git a/ydb/core/blobstorage/crypto/chacha_vec.cpp b/ydb/core/blobstorage/crypto/chacha_vec.cpp
index 0899c6f3fc..e16d890c6c 100644
--- a/ydb/core/blobstorage/crypto/chacha_vec.cpp
+++ b/ydb/core/blobstorage/crypto/chacha_vec.cpp
@@ -520,7 +520,7 @@ void ChaChaVec::Encipher(const ui8* plaintext, ui8* ciphertext, size_t len)
} else if (input_unalignment == 8) {
EncipherImpl<false>(plaintext, ciphertext, len);
} else {
- Y_FAIL("ChaChaVec can work only with input aligned on 8, 16 or more bytes");
+ Y_ABORT("ChaChaVec can work only with input aligned on 8, 16 or more bytes");
}
}
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy.h b/ydb/core/blobstorage/dsproxy/dsproxy.h
index a442f7b1a2..c00de9c3ad 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy.h
+++ b/ydb/core/blobstorage/dsproxy/dsproxy.h
@@ -154,7 +154,7 @@ inline void SetExecutionRelay(IEventBase& ev, std::shared_ptr<TEvBlobStorage::TE
#undef XX
default:
- Y_FAIL("unexpected event Type# 0x%08" PRIx32, type);
+ Y_ABORT("unexpected event Type# 0x%08" PRIx32, type);
}
}
@@ -498,7 +498,7 @@ public:
XX(Patch)
XX(Assimilate)
default:
- Y_FAIL();
+ Y_ABORT();
#undef XX
}
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_assimilate.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_assimilate.cpp
index 210eaa9279..49950b57c7 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_assimilate.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_assimilate.cpp
@@ -201,7 +201,7 @@ class TBlobStorageGroupAssimilateRequest : public TBlobStorageGroupRequestActor<
TItemVariant BeginMerge() const {
return std::visit([](auto value) -> TItemVariant {
if constexpr (std::is_same_v<decltype(value), TFinished>) {
- Y_FAIL();
+ Y_ABORT();
} else {
return TItemVariant(std::in_place_type<std::decay_t<decltype(*value)>>, *value);
}
@@ -211,7 +211,7 @@ class TBlobStorageGroupAssimilateRequest : public TBlobStorageGroupRequestActor<
bool Merge(TItemVariant *to) const {
return std::visit([to](auto value) -> bool {
if constexpr (std::is_same_v<decltype(value), TFinished>) {
- Y_FAIL();
+ Y_ABORT();
} else if (auto *toItem = std::get_if<std::decay_t<decltype(*value)>>(to)) {
return toItem->Merge(*value);
} else {
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_blob_tracker.h b/ydb/core/blobstorage/dsproxy/dsproxy_blob_tracker.h
index 6a8dacfb15..51e3ada556 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_blob_tracker.h
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_blob_tracker.h
@@ -79,7 +79,7 @@ namespace NKikimr {
break;
default:
- Y_FAIL("unexpected blob status# %s", NKikimrProto::EReplyStatus_Name(status).data());
+ Y_ABORT("unexpected blob status# %s", NKikimrProto::EReplyStatus_Name(status).data());
}
}
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_block.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_block.cpp
index 3893c8ee92..2a38b5b486 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_block.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_block.cpp
@@ -85,7 +85,7 @@ class TBlobStorageGroupBlockRequest : public TBlobStorageGroupRequestActor<TBlob
}
default:
- Y_FAIL("unexpected newStatus# %s", NKikimrProto::EReplyStatus_Name(newStatus).data());
+ Y_ABORT("unexpected newStatus# %s", NKikimrProto::EReplyStatus_Name(newStatus).data());
}
for (const TVDiskID& vdiskId : queryStatus) {
SendToQueue(std::make_unique<TEvBlobStorage::TEvVStatus>(vdiskId), 0);
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_collect.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_collect.cpp
index b2343d80cd..df997e3ae7 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_collect.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_collect.cpp
@@ -89,7 +89,7 @@ class TBlobStorageGroupCollectGarbageRequest : public TBlobStorageGroupRequestAc
return ReplyAndDie(NKikimrProto::ERROR);
default:
- Y_FAIL("unexpected newStatus# %s", NKikimrProto::EReplyStatus_Name(newStatus).data());
+ Y_ABORT("unexpected newStatus# %s", NKikimrProto::EReplyStatus_Name(newStatus).data());
}
for (const TVDiskID& vdiskId : queryStatus) {
SendToQueue(std::make_unique<TEvBlobStorage::TEvVStatus>(vdiskId), 0);
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_discover.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_discover.cpp
index 689ee94c8a..3c4cb72b1e 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_discover.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_discover.cpp
@@ -340,7 +340,7 @@ class TBlobStorageGroupDiscoverRequest : public TBlobStorageGroupRequestActor<TB
} else if (status == NKikimrProto::ERROR || status == NKikimrProto::VDISK_ERROR_STATE) {
++GetBlockErrors;
} else {
- Y_FAIL("status: %s" , NKikimrProto::EReplyStatus_Name(status).data());
+ Y_ABORT("status: %s" , NKikimrProto::EReplyStatus_Name(status).data());
}
// Not Minimal Restorable, but minimal needed for write to succseed
@@ -431,7 +431,7 @@ class TBlobStorageGroupDiscoverRequest : public TBlobStorageGroupRequestActor<TB
} else if (recordStatus == NKikimrProto::NODATA) {
vDiskData.IsAllRead = true;
} else {
- Y_FAIL("status: %s" , NKikimrProto::EReplyStatus_Name(recordStatus).data());
+ Y_ABORT("status: %s" , NKikimrProto::EReplyStatus_Name(recordStatus).data());
}
}
if (record.ResultSize() < vDiskData.LastRequestSize && !vDiskData.IsError && !record.GetIsRangeOverflow()) {
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_discover_m3dc.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_discover_m3dc.cpp
index d5ceee82af..9867d9e0a1 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_discover_m3dc.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_discover_m3dc.cpp
@@ -137,7 +137,7 @@ public:
break;
default:
- Y_FAIL("unexpected reply status# %s", NKikimrProto::EReplyStatus_Name(status).data());
+ Y_ABORT("unexpected reply status# %s", NKikimrProto::EReplyStatus_Name(status).data());
}
return true;
@@ -412,7 +412,7 @@ private:
break;
default:
- Y_FAIL("unexpected status# %s", NKikimrProto::EReplyStatus_Name(status).data());
+ Y_ABORT("unexpected status# %s", NKikimrProto::EReplyStatus_Name(status).data());
}
}
@@ -637,7 +637,7 @@ public:
break;
default:
- Y_FAIL("unexpected item status# %s", NKikimrProto::EReplyStatus_Name(resp.Status).data());
+ Y_ABORT("unexpected item status# %s", NKikimrProto::EReplyStatus_Name(resp.Status).data());
}
Y_ABORT_UNLESS(RequestsInFlight || Responded, "Status# %s GetInFlight# %s GetBlockFinished# %s",
@@ -719,7 +719,7 @@ public:
break;
default:
- Y_FAIL("unexpected TEvVGetBlockResult status# %s", NKikimrProto::EReplyStatus_Name(quorumStatus).data());
+ Y_ABORT("unexpected TEvVGetBlockResult status# %s", NKikimrProto::EReplyStatus_Name(quorumStatus).data());
}
Y_ABORT_UNLESS(RequestsInFlight || Responded);
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_discover_m3of4.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_discover_m3of4.cpp
index 7e54d0160b..93750b98bf 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_discover_m3of4.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_discover_m3of4.cpp
@@ -270,7 +270,7 @@ public:
Doubted = false;
switch (Info->GetTopology().GetQuorumChecker().GetBlobState(layout, failedSubgroupDisks)) {
case TBlobStorageGroupInfo::EBS_DISINTEGRATED:
- Y_FAIL("incorrect state"); // we should not reach this point as we check failure model a bit earlier
+ Y_ABORT("incorrect state"); // we should not reach this point as we check failure model a bit earlier
case TBlobStorageGroupInfo::EBS_UNRECOVERABLE_FRAGMENTARY:
// this blob is not recoverable, so, possibly, it must have never been written; we may skip it
@@ -291,7 +291,7 @@ public:
}
default:
- Y_FAIL("unexpected blob state");
+ Y_ABORT("unexpected blob state");
}
}
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_get_impl.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_get_impl.cpp
index 8b7ff14b68..b022bcd5d5 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_get_impl.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_get_impl.cpp
@@ -462,7 +462,7 @@ void TGetImpl::OnVPutResult(TLogContext &logCtx, TEvBlobStorage::TEvVPutResult &
Blackboard.AddPutOkResponse(blob, orderNumber);
break;
default:
- Y_FAIL("Unexpected status# %s", NKikimrProto::EReplyStatus_Name(status).data());
+ Y_ABORT("Unexpected status# %s", NKikimrProto::EReplyStatus_Name(status).data());
}
Step(logCtx, outVGets, outVPuts, outGetResult);
}
@@ -507,7 +507,7 @@ void TGetImpl::OnVPutResult(TLogContext &logCtx, TEvBlobStorage::TEvVMultiPutRes
Blackboard.AddPutOkResponse(blob, orderNumber);
break;
default:
- Y_FAIL("Unexpected status# %s", NKikimrProto::EReplyStatus_Name(status).data());
+ Y_ABORT("Unexpected status# %s", NKikimrProto::EReplyStatus_Name(status).data());
}
}
Step(logCtx, outVGets, outVMultiPuts, outGetResult);
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_indexrestoreget.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_indexrestoreget.cpp
index 2685614d06..3295a578c8 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_indexrestoreget.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_indexrestoreget.cpp
@@ -113,7 +113,7 @@ class TBlobStorageGroupIndexRestoreGetRequest
break;
default:
- Y_FAIL("unexpected newStatus# %s", NKikimrProto::EReplyStatus_Name(newStatus).data());
+ Y_ABORT("unexpected newStatus# %s", NKikimrProto::EReplyStatus_Name(newStatus).data());
}
for (const auto& result : record.GetResult()) {
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_mon.h b/ydb/core/blobstorage/dsproxy/dsproxy_mon.h
index e5f26f7447..072edb2076 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_mon.h
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_mon.h
@@ -127,7 +127,7 @@ struct TResponseStatusGroup : TThrRefBase {
ENUM_STATUS(XX)
#undef XX
default:
- Y_FAIL("unexpected Status# %s", NKikimrProto::EReplyStatus_Name(status).data());
+ Y_ABORT("unexpected Status# %s", NKikimrProto::EReplyStatus_Name(status).data());
}
}
#undef ENUM_STATUS
@@ -257,7 +257,7 @@ public:
case ERequestType::Range: return RangeGroup;
case ERequestType::Patch: return PatchGroup;
}
- Y_FAIL();
+ Y_ABORT();
}
template<typename T>
@@ -322,7 +322,7 @@ public:
PutUserDataResponseTime.Increment(durationMs);
break;
default:
- Y_FAIL("Unexpected case, HandleClass# %" PRIu64, (ui64)cls);
+ Y_ABORT("Unexpected case, HandleClass# %" PRIu64, (ui64)cls);
}
NodeMon->CountPutPesponseTime(type, cls, size, duration);
}
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_multicollect.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_multicollect.cpp
index ffee9dbc27..540325ede4 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_multicollect.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_multicollect.cpp
@@ -81,7 +81,7 @@ class TBlobStorageGroupMultiCollectRequest
}
std::unique_ptr<IEventBase> RestartQuery(ui32) {
- Y_FAIL();
+ Y_ABORT();
}
public:
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_multiget.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_multiget.cpp
index 93f66a0066..680c2851ba 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_multiget.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_multiget.cpp
@@ -83,7 +83,7 @@ class TBlobStorageGroupMultiGetRequest : public TBlobStorageGroupRequestActor<TB
}
std::unique_ptr<IEventBase> RestartQuery(ui32) {
- Y_FAIL();
+ Y_ABORT();
}
public:
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_nodemon.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_nodemon.cpp
index 3424507598..6a189ea6c7 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_nodemon.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_nodemon.cpp
@@ -132,7 +132,7 @@ void TDsProxyNodeMon::CountPutPesponseTime(NPDisk::EDeviceType type, NKikimrBlob
PutUserDataResponseTimeHist[idx]->Collect(durationMsFloat);
break;
default:
- Y_FAIL("Unexpected case, HandleClass# %" PRIu64, (ui64)cls);
+ Y_ABORT("Unexpected case, HandleClass# %" PRIu64, (ui64)cls);
}
}
@@ -171,7 +171,7 @@ void TDsProxyNodeMon::CountGetResponseTime(NPDisk::EDeviceType type, NKikimrBlob
GetLowReadResponseTimeHist[idx]->Collect(durationMsFloat);
break;
default:
- Y_FAIL("Unexpected case, HandleClass# %" PRIu64, (ui64)cls);
+ Y_ABORT("Unexpected case, HandleClass# %" PRIu64, (ui64)cls);
}
}
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_patch.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_patch.cpp
index 8ceb39f7ba..131112c799 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_patch.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_patch.cpp
@@ -827,7 +827,7 @@ public:
hFunc(TEvBlobStorage::TEvPutResult, Handle);
IgnoreFunc(TEvBlobStorage::TEvVPatchResult);
default:
- Y_FAIL("Received unknown event");
+ Y_ABORT("Received unknown event");
};
}
@@ -839,7 +839,7 @@ public:
hFunc(TEvBlobStorage::TEvVMovedPatchResult, Handle);
IgnoreFunc(TEvBlobStorage::TEvVPatchResult);
default:
- Y_FAIL("Received unknown event");
+ Y_ABORT("Received unknown event");
};
}
@@ -851,7 +851,7 @@ public:
hFunc(TEvBlobStorage::TEvVPatchFoundParts, Handle);
hFunc(TEvBlobStorage::TEvVPatchResult, Handle);
default:
- Y_FAIL("Received unknown event");
+ Y_ABORT("Received unknown event");
};
}
};
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_range.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_range.cpp
index 6c542cdda4..bc29a1fea7 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_range.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_range.cpp
@@ -112,7 +112,7 @@ class TBlobStorageGroupRangeRequest : public TBlobStorageGroupRequestActor<TBlob
break;
default:
- Y_FAIL("unexpected queryStatus# %s", NKikimrProto::EReplyStatus_Name(status).data());
+ Y_ABORT("unexpected queryStatus# %s", NKikimrProto::EReplyStatus_Name(status).data());
}
if (isOk) {
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_strategy_base.cpp b/ydb/core/blobstorage/dsproxy/dsproxy_strategy_base.cpp
index bfac4a2a43..d698dfe2d8 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_strategy_base.cpp
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_strategy_base.cpp
@@ -196,19 +196,19 @@ void TStrategyBase::AddGetRequest(TLogContext &logCtx, TGroupDiskRequests &group
bool TStrategyBase::VerifyTheWholeSituation(TBlobState &state) {
switch (state.WholeSituation) {
case TBlobState::ESituation::Unknown:
- Y_FAIL("Blob Id# %s whole situation Unknown", state.Id.ToString().c_str());
+ Y_ABORT("Blob Id# %s whole situation Unknown", state.Id.ToString().c_str());
case TBlobState::ESituation::Lost:
- Y_FAIL("Blob Id# %s whole situation Lost", state.Id.ToString().c_str());
+ Y_ABORT("Blob Id# %s whole situation Lost", state.Id.ToString().c_str());
case TBlobState::ESituation::Error:
- Y_FAIL("Blob Id# %s whole situation Error", state.Id.ToString().c_str());
+ Y_ABORT("Blob Id# %s whole situation Error", state.Id.ToString().c_str());
case TBlobState::ESituation::Sent:
- Y_FAIL("Blob Id# %s whole situation Sent", state.Id.ToString().c_str());
+ Y_ABORT("Blob Id# %s whole situation Sent", state.Id.ToString().c_str());
case TBlobState::ESituation::Absent:
return true;
case TBlobState::ESituation::Present:
return false;
}
- Y_FAIL("Blob Id# %s unexpected WholeSituation# %" PRIu32, state.Id.ToString().c_str(), (ui32)state.WholeSituation);
+ Y_ABORT("Blob Id# %s unexpected WholeSituation# %" PRIu32, state.Id.ToString().c_str(), (ui32)state.WholeSituation);
}
void TStrategyBase::PreparePartLayout(const TBlobState &state, const TBlobStorageGroupInfo &info,
@@ -263,7 +263,7 @@ bool TStrategyBase::IsPutNeeded(const TBlobState &state, const TBlobStorageGroup
isNeeded = true;
break;
case TBlobState::ESituation::Error:
- Y_FAIL("unexpected Situation");
+ Y_ABORT("unexpected Situation");
case TBlobState::ESituation::Present:
case TBlobState::ESituation::Sent:
break;
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_strategy_get_m3dc_basic.h b/ydb/core/blobstorage/dsproxy/dsproxy_strategy_get_m3dc_basic.h
index 47748ba816..2e4ffac74b 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_strategy_get_m3dc_basic.h
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_strategy_get_m3dc_basic.h
@@ -48,7 +48,7 @@ namespace NKikimr {
case TBlobState::ESituation::Lost:
break;
case TBlobState::ESituation::Sent:
- Y_FAIL("unexpected state");
+ Y_ABORT("unexpected state");
}
return false;
@@ -202,7 +202,7 @@ namespace NKikimr {
}
return EStrategyOutcome::DONE;
} else {
- Y_FAIL("must not reach this point");
+ Y_ABORT("must not reach this point");
}
}
};
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_strategy_get_m3of4.h b/ydb/core/blobstorage/dsproxy/dsproxy_strategy_get_m3of4.h
index 00d2f25559..aec4efb859 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_strategy_get_m3of4.h
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_strategy_get_m3of4.h
@@ -52,7 +52,7 @@ namespace NKikimr {
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
group.NumSlowDisks += state.Disks[diskIdx].IsSlow;
}
@@ -81,7 +81,7 @@ namespace NKikimr {
break;
case TBlobState::ESituation::Sent:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -142,7 +142,7 @@ namespace NKikimr {
break;
case TBlobState::ESituation::Sent: // incorrect state
- Y_FAIL();
+ Y_ABORT();
case TBlobState::ESituation::Absent:
break;
diff --git a/ydb/core/blobstorage/dsproxy/dsproxy_strategy_put_m3of4.h b/ydb/core/blobstorage/dsproxy/dsproxy_strategy_put_m3of4.h
index b6a47262da..dd212701e1 100644
--- a/ydb/core/blobstorage/dsproxy/dsproxy_strategy_put_m3of4.h
+++ b/ydb/core/blobstorage/dsproxy/dsproxy_strategy_put_m3of4.h
@@ -34,7 +34,7 @@ public:
return Process(state, info, groupDiskRequests, true);
default:
- Y_FAIL("unexpected Tactic");
+ Y_ABORT("unexpected Tactic");
}
}
diff --git a/ydb/core/blobstorage/dsproxy/group_sessions.cpp b/ydb/core/blobstorage/dsproxy/group_sessions.cpp
index 97ac9268a3..2623218cad 100644
--- a/ydb/core/blobstorage/dsproxy/group_sessions.cpp
+++ b/ydb/core/blobstorage/dsproxy/group_sessions.cpp
@@ -23,7 +23,7 @@ TString QueueIdName(NKikimrBlobStorage::EVDiskQueueId queueId) {
case NKikimrBlobStorage::EVDiskQueueId::GetFastRead: return "GetFastRead";
case NKikimrBlobStorage::EVDiskQueueId::GetDiscover: return "GetDiscover";
case NKikimrBlobStorage::EVDiskQueueId::GetLowRead: return "GetLowRead";
- default: Y_FAIL("unexpected EVDiskQueueId");
+ default: Y_ABORT("unexpected EVDiskQueueId");
}
}
@@ -63,7 +63,7 @@ TGroupSessions::TGroupSessions(const TIntrusivePtr<TBlobStorageGroupInfo>& info,
break;
default:
- Y_FAIL("unexpected queue id");
+ Y_ABORT("unexpected queue id");
}
TIntrusivePtr<NBackpressure::TFlowRecord> flowRecord(new NBackpressure::TFlowRecord);
diff --git a/ydb/core/blobstorage/dsproxy/group_sessions.h b/ydb/core/blobstorage/dsproxy/group_sessions.h
index 6522f7f25a..1cd7316983 100644
--- a/ydb/core/blobstorage/dsproxy/group_sessions.h
+++ b/ydb/core/blobstorage/dsproxy/group_sessions.h
@@ -68,7 +68,7 @@ namespace NKikimr {
case NKikimrBlobStorage::EVDiskQueueId::GetFastRead: return GetFastRead;
case NKikimrBlobStorage::EVDiskQueueId::GetDiscover: return GetDiscover;
case NKikimrBlobStorage::EVDiskQueueId::GetLowRead: return GetLowRead;
- default: Y_FAIL("unexpected EVDiskQueueId");
+ default: Y_ABORT("unexpected EVDiskQueueId");
}
}
diff --git a/ydb/core/blobstorage/dsproxy/mock/dsproxy_mock.cpp b/ydb/core/blobstorage/dsproxy/mock/dsproxy_mock.cpp
index 8eb1436b73..8697c05659 100644
--- a/ydb/core/blobstorage/dsproxy/mock/dsproxy_mock.cpp
+++ b/ydb/core/blobstorage/dsproxy/mock/dsproxy_mock.cpp
@@ -80,7 +80,7 @@ namespace NKikimr {
hFunc(TEvents::TEvPoisonPill, HandlePoison);
default:
- Y_FAIL("unexpected event 0x%08" PRIx32, type);
+ Y_ABORT("unexpected event 0x%08" PRIx32, type);
}
}
diff --git a/ydb/core/blobstorage/dsproxy/ut/dsproxy_sequence_ut.cpp b/ydb/core/blobstorage/dsproxy/ut/dsproxy_sequence_ut.cpp
index 23b78a0baa..7bde268aa8 100644
--- a/ydb/core/blobstorage/dsproxy/ut/dsproxy_sequence_ut.cpp
+++ b/ydb/core/blobstorage/dsproxy/ut/dsproxy_sequence_ut.cpp
@@ -340,7 +340,7 @@ void SendVGetResult(ui32 blobIdx, ui32 vDiskIdx, NKikimrProto::EReplyStatus stat
runtime.Send(new IEventHandle(request.Sender, request.ActorId, result.release(), 0, request.Cookie));
return;
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_base.h b/ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_base.h
index 72e227eea7..567e37740b 100644
--- a/ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_base.h
+++ b/ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_base.h
@@ -96,7 +96,7 @@ public:
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
return resp->Release();
@@ -207,7 +207,7 @@ public:
}
void ProcessUnexpectedEvent(TAutoPtr<IEventHandle> ev) {
- Y_FAIL("unexpected event received: Type# %08" PRIx32, ev->GetTypeRewrite());
+ Y_ABORT("unexpected event received: Type# %08" PRIx32, ev->GetTypeRewrite());
}
};
diff --git a/ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_put.h b/ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_put.h
index 514e81de65..85c699edeb 100644
--- a/ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_put.h
+++ b/ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_put.h
@@ -52,7 +52,7 @@ public:
break;
default:
- Y_FAIL("unexpected status %s", NKikimrProto::EReplyStatus_Name(result->Status).data());
+ Y_ABORT("unexpected status %s", NKikimrProto::EReplyStatus_Name(result->Status).data());
}
};
diff --git a/ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_range.h b/ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_range.h
index c84b139b82..7e20e851b4 100644
--- a/ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_range.h
+++ b/ydb/core/blobstorage/dsproxy/ut_ftol/dsproxy_fault_tolerance_ut_range.h
@@ -64,7 +64,7 @@ public:
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
// now collect information about actually written replicas
diff --git a/ydb/core/blobstorage/groupinfo/blobstorage_groupinfo.cpp b/ydb/core/blobstorage/groupinfo/blobstorage_groupinfo.cpp
index 666920992c..e3101a6339 100644
--- a/ydb/core/blobstorage/groupinfo/blobstorage_groupinfo.cpp
+++ b/ydb/core/blobstorage/groupinfo/blobstorage_groupinfo.cpp
@@ -475,10 +475,10 @@ IBlobToDiskMapper *TBlobStorageGroupInfo::TTopology::CreateMapper(TBlobStorageGr
return IBlobToDiskMapper::CreateMirror3dcMapper(topology);
default:
- Y_FAIL("unexpected erasure type 0x%08" PRIx32, static_cast<ui32>(gtype.GetErasure()));
+ Y_ABORT("unexpected erasure type 0x%08" PRIx32, static_cast<ui32>(gtype.GetErasure()));
}
- Y_FAIL();
+ Y_ABORT();
}
TBlobStorageGroupInfo::IQuorumChecker *TBlobStorageGroupInfo::TTopology::CreateQuorumChecker(const TTopology *topology) {
@@ -509,11 +509,11 @@ TBlobStorageGroupInfo::IQuorumChecker *TBlobStorageGroupInfo::TTopology::CreateQ
return new TQuorumCheckerMirror3of4(topology);
default:
- Y_FAIL("unexpected erasure type 0x%08" PRIx32,
+ Y_ABORT("unexpected erasure type 0x%08" PRIx32,
static_cast<ui32>(topology->GType.GetErasure()));
}
- Y_FAIL();
+ Y_ABORT();
}
TString TBlobStorageGroupInfo::TTopology::ToString() const {
@@ -750,7 +750,7 @@ bool TBlobStorageGroupInfo::DecryptGroupKey(TBlobStorageGroupInfo::EEncryptionMo
return isHashGood;
}
}
- Y_FAIL("Unexpected Encryption Mode# %" PRIu64, (ui64)encryptionMode);
+ Y_ABORT("Unexpected Encryption Mode# %" PRIu64, (ui64)encryptionMode);
}
const TBlobStorageGroupInfo::IQuorumChecker& TBlobStorageGroupInfo::GetQuorumChecker() const {
@@ -1111,7 +1111,7 @@ bool TFailDomain::IsDifferentAt(const TLevelIds &id, const TFailDomain &other) c
while (key != id.Ids.end()) {
while (true) {
if (a == Levels.end()) {
- Y_FAIL("Not enough a levels for FailDomain comparison");
+ Y_ABORT("Not enough a levels for FailDomain comparison");
}
if (a->first < *key) {
++a;
@@ -1119,7 +1119,7 @@ bool TFailDomain::IsDifferentAt(const TLevelIds &id, const TFailDomain &other) c
while (true) {
if (b == other.Levels.end()) {
- Y_FAIL("Not enough b levels for FailDomain comparison");
+ Y_ABORT("Not enough b levels for FailDomain comparison");
}
if (b->first < *key) {
++b;
@@ -1132,12 +1132,12 @@ bool TFailDomain::IsDifferentAt(const TLevelIds &id, const TFailDomain &other) c
++b;
break;
} else {
- Y_FAIL("Missing b level for FailDomain comparison");
+ Y_ABORT("Missing b level for FailDomain comparison");
}
}
break;
} else {
- Y_FAIL("Missing a level for FailDomain comparison");
+ Y_ABORT("Missing a level for FailDomain comparison");
}
}
}
diff --git a/ydb/core/blobstorage/groupinfo/blobstorage_groupinfo_partlayout.cpp b/ydb/core/blobstorage/groupinfo/blobstorage_groupinfo_partlayout.cpp
index 37eec8059a..7405ffbef4 100644
--- a/ydb/core/blobstorage/groupinfo/blobstorage_groupinfo_partlayout.cpp
+++ b/ydb/core/blobstorage/groupinfo/blobstorage_groupinfo_partlayout.cpp
@@ -23,7 +23,7 @@ namespace NKikimr {
switch (gtype.GetErasure()) {
case TBlobStorageGroupType::ErasureMirror3dc:
case TBlobStorageGroupType::ErasureMirror3of4:
- Y_FAIL("inapplicable operation for erasure %s", TBlobStorageGroupType::ErasureSpeciesName(gtype.GetErasure()).data());
+ Y_ABORT("inapplicable operation for erasure %s", TBlobStorageGroupType::ErasureSpeciesName(gtype.GetErasure()).data());
default: {
/*******************************************************************************************************
* PerPartStatus is a matrix with bits indicating if the some part is present at specific disk; it looks
diff --git a/ydb/core/blobstorage/incrhuge/incrhuge_id_dict.h b/ydb/core/blobstorage/incrhuge/incrhuge_id_dict.h
index ae60fdf893..674811864d 100644
--- a/ydb/core/blobstorage/incrhuge/incrhuge_id_dict.h
+++ b/ydb/core/blobstorage/incrhuge/incrhuge_id_dict.h
@@ -101,7 +101,7 @@ namespace NKikimr {
try {
new(&page->Items[index].Value) TValue(std::move(value));
} catch (...) {
- Y_FAIL("TValue ctor should not throw");
+ Y_ABORT("TValue ctor should not throw");
}
return ComposeId(page->PageId, index);
@@ -143,7 +143,7 @@ namespace NKikimr {
try {
new(&page->Items[index].Value) TValue(std::move(value));
} catch (...) {
- Y_FAIL("TValue ctor should not throw");
+ Y_ABORT("TValue ctor should not throw");
}
// adjust usage counter
diff --git a/ydb/core/blobstorage/incrhuge/incrhuge_keeper.cpp b/ydb/core/blobstorage/incrhuge/incrhuge_keeper.cpp
index 1899c64426..5ac8ae3957 100644
--- a/ydb/core/blobstorage/incrhuge/incrhuge_keeper.cpp
+++ b/ydb/core/blobstorage/incrhuge/incrhuge_keeper.cpp
@@ -151,7 +151,7 @@ namespace NKikimr {
break;
default:
- Y_FAIL("unexpected case");
+ Y_ABORT("unexpected case");
}
}
diff --git a/ydb/core/blobstorage/incrhuge/incrhuge_keeper_common.h b/ydb/core/blobstorage/incrhuge/incrhuge_keeper_common.h
index bc9f706f26..ab735e620e 100644
--- a/ydb/core/blobstorage/incrhuge/incrhuge_keeper_common.h
+++ b/ydb/core/blobstorage/incrhuge/incrhuge_keeper_common.h
@@ -58,7 +58,7 @@ namespace NKikimr {
case EChunkState::Deleting: return "Deleting";
case EChunkState::Unknown: return "Unknown";
}
- Y_FAIL("unexpected case");
+ Y_ABORT("unexpected case");
}
// per chunk information structure
diff --git a/ydb/core/blobstorage/incrhuge/incrhuge_keeper_delete.cpp b/ydb/core/blobstorage/incrhuge/incrhuge_keeper_delete.cpp
index 4a435fb818..54329f8f80 100644
--- a/ydb/core/blobstorage/incrhuge/incrhuge_keeper_delete.cpp
+++ b/ydb/core/blobstorage/incrhuge/incrhuge_keeper_delete.cpp
@@ -179,7 +179,7 @@ namespace NKikimr {
break;
case EItemState::Processing:
- Y_FAIL("unexpected case");
+ Y_ABORT("unexpected case");
}
// ensure that we generated locator for each item
diff --git a/ydb/core/blobstorage/incrhuge/incrhuge_keeper_log.cpp b/ydb/core/blobstorage/incrhuge/incrhuge_keeper_log.cpp
index 46b87982a0..1cae2fe399 100644
--- a/ydb/core/blobstorage/incrhuge/incrhuge_keeper_log.cpp
+++ b/ydb/core/blobstorage/incrhuge/incrhuge_keeper_log.cpp
@@ -176,7 +176,7 @@ namespace NKikimr {
}
default:
- Y_FAIL("unexpected case");
+ Y_ABORT("unexpected case");
}
}
@@ -302,7 +302,7 @@ namespace NKikimr {
}
TString TDeleteRecordMerger::Serialize(const TDeleteChunk& /*record*/) {
- Y_FAIL("this function should never be called");
+ Y_ABORT("this function should never be called");
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/ydb/core/blobstorage/incrhuge/incrhuge_keeper_recovery.cpp b/ydb/core/blobstorage/incrhuge/incrhuge_keeper_recovery.cpp
index 9fad2b0cd2..5225d3f815 100644
--- a/ydb/core/blobstorage/incrhuge/incrhuge_keeper_recovery.cpp
+++ b/ydb/core/blobstorage/incrhuge/incrhuge_keeper_recovery.cpp
@@ -170,7 +170,7 @@ namespace NKikimr {
switch (chunk.GetState()) {
case NKikimrVDiskData::TIncrHugeChunks::Complete: state = "Complete"; break;
case NKikimrVDiskData::TIncrHugeChunks::WriteIntent: state = "WriteIntent"; break;
- default: Y_FAIL("unexpected case");
+ default: Y_ABORT("unexpected case");
}
TChunkSerNum chunkSerNum(chunk.GetChunkSerNum());
@@ -229,7 +229,7 @@ namespace NKikimr {
break;
default:
- Y_FAIL("unexpected case");
+ Y_ABORT("unexpected case");
}
const TChunkSerNum chunkSerNum(chunk.GetChunkSerNum());
@@ -402,11 +402,11 @@ namespace NKikimr {
*existing = locator;
} else if (chunk.ChunkSerNum < existingChunk.ChunkSerNum) {
// fail as is breaks our order of processing -- old chunks first, then new chunks
- Y_FAIL("unexpected order of chunks");
+ Y_ABORT("unexpected order of chunks");
} else {
// chunks are the same; this could happen if defragmenter was processing the current
// chunk we were writing into, but this is completely incorrect behavior
- Y_FAIL("duplicate records; Old# %s New# %s ChunkSerNum# %s index# %" PRIu32,
+ Y_ABORT("duplicate records; Old# %s New# %s ChunkSerNum# %s index# %" PRIu32,
existing->ToString().data(), locator.ToString().data(),
existingChunk.ChunkSerNum.ToString().data(), index);
}
@@ -444,7 +444,7 @@ namespace NKikimr {
std::move(scanResult.Index)});
}
} else {
- Y_FAIL("can't recover");
+ Y_ABORT("can't recover");
}
}
diff --git a/ydb/core/blobstorage/incrhuge/ut/test_actor_concurrent.h b/ydb/core/blobstorage/incrhuge/ut/test_actor_concurrent.h
index e5d167281a..b7f99ee1fe 100644
--- a/ydb/core/blobstorage/incrhuge/ut/test_actor_concurrent.h
+++ b/ydb/core/blobstorage/incrhuge/ut/test_actor_concurrent.h
@@ -159,7 +159,7 @@ public:
bool itemsEnd = it == msg->Items.end();
if ((!refEnd && !itemsEnd && refIt->Lsn < it->Lsn) || itemsEnd) {
- Y_FAIL("lost blob");
+ Y_ABORT("lost blob");
} else if ((!refEnd && !itemsEnd && it->Lsn < refIt->Lsn) || refEnd) {
// no matching reference item for returned one -- possibly write succeeded or delete hasn't completed yet
auto& item = *it++;
@@ -174,7 +174,7 @@ public:
// restore deleted blob
State.ConfirmedState.emplace(it->first, std::move(it->second));
} else {
- Y_FAIL("extra blob Lsn# %" PRIu64 " Id# %016" PRIx64, item.Lsn, item.Id);
+ Y_ABORT("extra blob Lsn# %" PRIu64 " Id# %016" PRIx64, item.Lsn, item.Id);
}
}
} else {
@@ -251,7 +251,7 @@ public:
} else {
option -= deleteScore;
}
- Y_FAIL("this point should be unreachable");
+ Y_ABORT("this point should be unreachable");
}
if (exit) {
break;
@@ -413,7 +413,7 @@ public:
HFunc(TEvIncrHugeReadResult, Handle);
HFunc(TEvIncrHugeDeleteResult, Handle);
default:
- Y_FAIL("unexpected message 0x%08" PRIx32, type);
+ Y_ABORT("unexpected message 0x%08" PRIx32, type);
}
}
};
diff --git a/ydb/core/blobstorage/incrhuge/ut/test_actor_seq.h b/ydb/core/blobstorage/incrhuge/ut/test_actor_seq.h
index 4b4df1d0f6..10e577d497 100644
--- a/ydb/core/blobstorage/incrhuge/ut/test_actor_seq.h
+++ b/ydb/core/blobstorage/incrhuge/ut/test_actor_seq.h
@@ -176,7 +176,7 @@ public:
} else {
option -= writeScore;
}
- Y_FAIL();
+ Y_ABORT();
}
void Handle(TEvIncrHugeDeleteResult::TPtr& ev, const TActorContext& ctx) {
@@ -210,7 +210,7 @@ public:
HFunc(TEvIncrHugeDeleteResult, Handle);
HFunc(TEvIncrHugeWriteResult, Handle);
default:
- Y_FAIL("unexpected message 0x%08" PRIx32, type);
+ Y_ABORT("unexpected message 0x%08" PRIx32, type);
}
}
};
diff --git a/ydb/core/blobstorage/nodewarden/distconf.cpp b/ydb/core/blobstorage/nodewarden/distconf.cpp
index ed5c0c59b7..f6bbfc7347 100644
--- a/ydb/core/blobstorage/nodewarden/distconf.cpp
+++ b/ydb/core/blobstorage/nodewarden/distconf.cpp
@@ -222,7 +222,7 @@ void Out<NKikimr::NStorage::TDistributedConfigKeeper::ERootState>(IOutputStream&
case E::PROPOSE_NEW_STORAGE_CONFIG: s << "PROPOSE_NEW_STORAGE_CONFIG"; return;
case E::ERROR_TIMEOUT: s << "ERROR_TIMEOUT"; return;
}
- Y_FAIL();
+ Y_ABORT();
}
template<>
diff --git a/ydb/core/blobstorage/nodewarden/node_warden_cache.cpp b/ydb/core/blobstorage/nodewarden/node_warden_cache.cpp
index 196d5dd23f..8237ed32c2 100644
--- a/ydb/core/blobstorage/nodewarden/node_warden_cache.cpp
+++ b/ydb/core/blobstorage/nodewarden/node_warden_cache.cpp
@@ -17,7 +17,7 @@ void TNodeWarden::Handle(TEvents::TEvInvokeResult::TPtr ev) {
try {
ev->Get()->Process(ActorContext());
} catch (const std::exception&) {
- Y_FAIL("Exception while executing sync callback: %s", CurrentExceptionMessage().data());
+ Y_ABORT("Exception while executing sync callback: %s", CurrentExceptionMessage().data());
}
// issue other operation if pending (and if not already issued)
diff --git a/ydb/core/blobstorage/nodewarden/node_warden_impl.cpp b/ydb/core/blobstorage/nodewarden/node_warden_impl.cpp
index 0709087644..12bf4781fb 100644
--- a/ydb/core/blobstorage/nodewarden/node_warden_impl.cpp
+++ b/ydb/core/blobstorage/nodewarden/node_warden_impl.cpp
@@ -325,11 +325,11 @@ void TNodeWarden::Handle(NPDisk::TEvSlayResult::TPtr ev) {
break;
case NKikimrProto::RACE:
- Y_FAIL("Unexpected# %s", msg.ToString().data());
+ Y_ABORT("Unexpected# %s", msg.ToString().data());
break;
default:
- Y_FAIL("Unexpected status# %s", msg.ToString().data());
+ Y_ABORT("Unexpected status# %s", msg.ToString().data());
break;
};
}
diff --git a/ydb/core/blobstorage/nodewarden/node_warden_proxy.cpp b/ydb/core/blobstorage/nodewarden/node_warden_proxy.cpp
index a2cddb8c72..b770dd5a4c 100644
--- a/ydb/core/blobstorage/nodewarden/node_warden_proxy.cpp
+++ b/ydb/core/blobstorage/nodewarden/node_warden_proxy.cpp
@@ -30,7 +30,7 @@ void TNodeWarden::StartLocalProxy(ui32 groupId) {
switch (info->DecommitStatus) {
case NKikimrBlobStorage::TGroupDecommitStatus::NONE:
case NKikimrBlobStorage::TGroupDecommitStatus::PENDING:
- Y_FAIL("unexpected DecommitStatus for dynamic group with bound BlobDepotId");
+ Y_ABORT("unexpected DecommitStatus for dynamic group with bound BlobDepotId");
case NKikimrBlobStorage::TGroupDecommitStatus::IN_PROGRESS:
// create proxy that will be used by blob depot agent to fetch underlying data
diff --git a/ydb/core/blobstorage/nodewarden/node_warden_scrub.cpp b/ydb/core/blobstorage/nodewarden/node_warden_scrub.cpp
index 117b119d44..d2f5046ee4 100644
--- a/ydb/core/blobstorage/nodewarden/node_warden_scrub.cpp
+++ b/ydb/core/blobstorage/nodewarden/node_warden_scrub.cpp
@@ -19,7 +19,7 @@ void TNodeWarden::Handle(TEvBlobStorage::TEvControllerScrubQueryStartQuantum::TP
case TVDiskRecord::EScrubState::QUERY_START_QUANTUM:
case TVDiskRecord::EScrubState::IN_PROGRESS:
case TVDiskRecord::EScrubState::QUANTUM_FINISHED_AND_WAITING_FOR_NEXT_ONE:
- Y_FAIL("inconsistent ScrubState# %" PRIu32, vdisk.ScrubState);
+ Y_ABORT("inconsistent ScrubState# %" PRIu32, vdisk.ScrubState);
}
// issue request to BS_CONTROLLER
const TVSlotId vslotId = it->first;
@@ -38,7 +38,7 @@ void TNodeWarden::Handle(TEvBlobStorage::TEvControllerScrubStartQuantum::TPtr ev
case TVDiskRecord::EScrubState::IDLE:
case TVDiskRecord::EScrubState::IN_PROGRESS:
case TVDiskRecord::EScrubState::QUANTUM_FINISHED:
- Y_FAIL("inconsistent ScrubState# %" PRIu32, vdisk.ScrubState);
+ Y_ABORT("inconsistent ScrubState# %" PRIu32, vdisk.ScrubState);
case TVDiskRecord::EScrubState::QUANTUM_FINISHED_AND_WAITING_FOR_NEXT_ONE:
vdisk.QuantumFinished.Clear();
@@ -65,7 +65,7 @@ void TNodeWarden::Handle(TEvBlobStorage::TEvControllerScrubQuantumFinished::TPtr
case TVDiskRecord::EScrubState::QUERY_START_QUANTUM:
case TVDiskRecord::EScrubState::QUANTUM_FINISHED:
case TVDiskRecord::EScrubState::QUANTUM_FINISHED_AND_WAITING_FOR_NEXT_ONE:
- Y_FAIL("inconsistent ScrubState# %" PRIu32, vdisk.ScrubState);
+ Y_ABORT("inconsistent ScrubState# %" PRIu32, vdisk.ScrubState);
}
// forward request to BS_CONTROLLER
SendToController(std::make_unique<TEvBlobStorage::TEvControllerScrubQuantumFinished>(r));
diff --git a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_color_limits.h b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_color_limits.h
index e227bd3869..52d26c6aff 100644
--- a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_color_limits.h
+++ b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_color_limits.h
@@ -89,7 +89,7 @@ struct TColorLimits {
case NKikimrBlobStorage::TPDiskSpaceColor_E_TPDiskSpaceColor_E_INT_MIN_SENTINEL_DO_NOT_USE_:
case NKikimrBlobStorage::TPDiskSpaceColor_E_TPDiskSpaceColor_E_INT_MAX_SENTINEL_DO_NOT_USE_:
- Y_FAIL();
+ Y_ABORT();
}
}
};
diff --git a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_driveestimator.cpp b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_driveestimator.cpp
index c4ffcf1d62..b2c05232b5 100644
--- a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_driveestimator.cpp
+++ b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_driveestimator.cpp
@@ -181,7 +181,7 @@ ui64 TDriveEstimator::MeasureOperationDuration(const ui32 type, const ui64 size)
TReqId(TReqId::EstimatorDurationWrite, 0), nullptr);
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
if (repeat == eventsToSkip) {
start = HPNow();
diff --git a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl.cpp b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl.cpp
index 7d89ba3212..da79f841cc 100644
--- a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl.cpp
+++ b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl.cpp
@@ -3063,7 +3063,7 @@ bool TPDisk::PreprocessRequest(TRequestBase *request) {
delete request;
return false;
default:
- Y_FAIL();
+ Y_ABORT();
break;
}
return true;
@@ -3276,7 +3276,7 @@ void TPDisk::ProcessPausedQueue() {
if (ev->Action == NPDisk::TEvYardControl::ActionPause) {
if (PreprocessRequest(ev)) {
- Y_FAIL();
+ Y_ABORT();
}
break;
}
diff --git a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl_log.cpp b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl_log.cpp
index ff436ee8f7..8543a12f64 100644
--- a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl_log.cpp
+++ b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl_log.cpp
@@ -562,7 +562,7 @@ void TPDisk::ProcessLogReadQueue() {
break;
}
default:
- Y_FAIL();
+ Y_ABORT();
break;
}
delete req;
@@ -903,7 +903,7 @@ void TPDisk::LogFlush(TCompletionAction *action, TVector<ui32> *logChunksToCommi
if (!CommonLogger->IsEmptySector()) {
size_t prevPreallocatedSize = CommonLogger->NextChunks.size();
if (!PreallocateLogChunks(CommonLogger->SectorBytesFree, OwnerSystem, 0, EOwnerGroupType::Static, true)) {
- Y_FAIL("Last chunk is over, how did you do that?!");
+ Y_ABORT("Last chunk is over, how did you do that?!");
}
size_t nextPreallocatedSize = CommonLogger->NextChunks.size();
if (nextPreallocatedSize != prevPreallocatedSize && logChunksToCommit) {
diff --git a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_logreader.cpp b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_logreader.cpp
index 4ea37ac669..7f3ca816f7 100644
--- a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_logreader.cpp
+++ b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_logreader.cpp
@@ -533,7 +533,7 @@ void TLogReader::Exec(ui64 offsetRead, TVector<ui64> &badOffsets, TActorSystem *
break;
}
default:
- Y_FAIL();
+ Y_ABORT();
break;
}
}// while (true)
@@ -573,7 +573,7 @@ bool TLogReader::PrepareToRead() {
TDiskFormat &format = PDisk->Format;
if (Position == TLogPosition::Invalid()) {
if (IsInitial) {
- Y_FAIL();
+ Y_ABORT();
}
ReplyOk();
return true;
diff --git a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_sectorrestorator.cpp b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_sectorrestorator.cpp
index 459c7283f7..fb09cf9028 100644
--- a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_sectorrestorator.cpp
+++ b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_sectorrestorator.cpp
@@ -167,7 +167,7 @@ void TSectorRestorator::Restore(ui8 *source, const ui64 offset, const ui64 magic
<< " ReplicationFactor# " << (ui32)ReplicationFactor
<< " sectorOffset# " << (ui64)sectorOffset);
}
- // Y_FAIL("RESTORE");
+ // Y_ABORT("RESTORE");
memcpy(badSector, goodSector, size_t(Format.SectorSize));
GoodSectorFlags |= (1 << i);
++GoodSectorCount;
diff --git a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_ut_base_test.h b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_ut_base_test.h
index b912d50472..11f063691a 100644
--- a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_ut_base_test.h
+++ b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_ut_base_test.h
@@ -43,7 +43,7 @@ public:
STFUNC(FakeState) {
Y_UNUSED(ev);
- Y_FAIL("This class cannot be used directly. For tests inherit from it");
+ Y_ABORT("This class cannot be used directly. For tests inherit from it");
}
protected:
diff --git a/ydb/core/blobstorage/pdisk/mock/pdisk_mock.cpp b/ydb/core/blobstorage/pdisk/mock/pdisk_mock.cpp
index d6deec2bb2..604e62bcba 100644
--- a/ydb/core/blobstorage/pdisk/mock/pdisk_mock.cpp
+++ b/ydb/core/blobstorage/pdisk/mock/pdisk_mock.cpp
@@ -102,7 +102,7 @@ struct TPDiskMockState::TImpl {
template<typename TQuery>
std::variant<TOwner*, std::tuple<NKikimrProto::EReplyStatus, TString>> FindOwner(TQuery *msg) {
if (const auto it = Owners.find(msg->Owner); it == Owners.end()) {
- Y_FAIL("invalid Owner");
+ Y_ABORT("invalid Owner");
} else if (it->second.Slain) {
return std::make_tuple(NKikimrProto::INVALID_OWNER, "VDisk is slain");
} else if (msg->OwnerRound != it->second.OwnerRound) {
@@ -192,7 +192,7 @@ struct TPDiskMockState::TImpl {
} else if (owner.CommittedChunks.erase(chunkIdx)) {
owner.ReservedChunks.insert(chunkIdx);
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -501,7 +501,7 @@ public:
results.emplace_back(new IEventHandle(recipient, SelfId(), p.release()));
};
if (const auto it = Impl.Owners.find(msg->Owner); it == Impl.Owners.end()) {
- Y_FAIL("invalid Owner");
+ Y_ABORT("invalid Owner");
} else if (it->second.Slain) {
addRes(NKikimrProto::INVALID_OWNER, "VDisk is slain");
} else if (msg->OwnerRound != it->second.OwnerRound) {
@@ -593,7 +593,7 @@ public:
NKikimrProto::EReplyStatus status = NKikimrProto::OK;
TString errorReason;
if (const auto it = Impl.Owners.find(msg->Owner); it == Impl.Owners.end()) {
- Y_FAIL("invalid Owner");
+ Y_ABORT("invalid Owner");
} else if (it->second.Slain) {
status = NKikimrProto::INVALID_OWNER;
errorReason = "VDisk is slain";
diff --git a/ydb/core/blobstorage/testing/group_overseer/group_overseer.cpp b/ydb/core/blobstorage/testing/group_overseer/group_overseer.cpp
index 93d3aff79c..aa0debaccb 100644
--- a/ydb/core/blobstorage/testing/group_overseer/group_overseer.cpp
+++ b/ydb/core/blobstorage/testing/group_overseer/group_overseer.cpp
@@ -57,7 +57,7 @@ namespace NKikimr::NTesting {
if (const auto it = GroupStates.find(groupId); it != GroupStates.end()) {
return it->second.EnumerateBlobs(callback);
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blobstorage/testing/group_overseer/group_state.cpp b/ydb/core/blobstorage/testing/group_overseer/group_state.cpp
index 056172af4f..e9440c83fe 100644
--- a/ydb/core/blobstorage/testing/group_overseer/group_state.cpp
+++ b/ydb/core/blobstorage/testing/group_overseer/group_state.cpp
@@ -32,7 +32,7 @@ namespace NKikimr::NTesting {
if (!block.Confirmed || block.Confirmed->Generation < gen.Generation || gen.Same(*block.Confirmed)) {
block.Confirmed.emplace(gen);
} else {
- Y_FAIL("incorrect successful block");
+ Y_ABORT("incorrect successful block");
}
}
}
@@ -85,11 +85,11 @@ namespace NKikimr::NTesting {
auto& v = putInFlight.mapped();
if (v.IsBlocked && (msg.Status != NKikimrProto::BLOCKED && msg.Status != NKikimrProto::ERROR)) {
- Y_FAIL("incorrect TEvPut result status code -- was BLOCKED at the begin of the query");
+ Y_ABORT("incorrect TEvPut result status code -- was BLOCKED at the begin of the query");
}
if (v.IsCollected && msg.Status != NKikimrProto::ERROR) {
- Y_FAIL("incorrect TEvPut result status code -- was already beyond the barrier at begin of the query");
+ Y_ABORT("incorrect TEvPut result status code -- was already beyond the barrier at begin of the query");
}
if (msg.Status == NKikimrProto::OK) {
@@ -103,12 +103,12 @@ namespace NKikimr::NTesting {
template<>
void TGroupState::ExamineQueryEvent(const TQueryId&, const TEvBlobStorage::TEvPatch&) {
- Y_FAIL("not implemented");
+ Y_ABORT("not implemented");
}
template<>
void TGroupState::ExamineResultEvent(const TQueryId&, const TEvBlobStorage::TEvPatchResult&) {
- Y_FAIL("not implemented");
+ Y_ABORT("not implemented");
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -116,12 +116,12 @@ namespace NKikimr::NTesting {
template<>
void TGroupState::ExamineQueryEvent(const TQueryId&, const TEvBlobStorage::TEvInplacePatch&) {
- Y_FAIL("not implemented");
+ Y_ABORT("not implemented");
}
template<>
void TGroupState::ExamineResultEvent(const TQueryId&, const TEvBlobStorage::TEvInplacePatchResult&) {
- Y_FAIL("not implemented");
+ Y_ABORT("not implemented");
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -394,7 +394,7 @@ namespace NKikimr::NTesting {
return EBlobState::POSSIBLY_COLLECTED;
case EConfidence::CONFIRMED:
- Y_FAIL(); // must never reach this point -- blob must be deleted from the map when this state occurs
+ Y_ABORT(); // must never reach this point -- blob must be deleted from the map when this state occurs
}
}
diff --git a/ydb/core/blobstorage/ut_blobstorage/lib/env.h b/ydb/core/blobstorage/ut_blobstorage/lib/env.h
index 5aed355f76..fb6d48497d 100644
--- a/ydb/core/blobstorage/ut_blobstorage/lib/env.h
+++ b/ydb/core/blobstorage/ut_blobstorage/lib/env.h
@@ -774,7 +774,7 @@ struct TEnvironmentSetup {
} else if (auto *msg = res->CastAsLocal<TEvents::TEvUndelivered>()) {
Y_ABORT_UNLESS(msg->SourceType == TEvBlobStorage::EvVStatus);
} else {
- Y_FAIL();
+ Y_ABORT();
}
// sleep for a while
diff --git a/ydb/core/blobstorage/ut_blobstorage/lib/node_warden_mock_vdisk.h b/ydb/core/blobstorage/ut_blobstorage/lib/node_warden_mock_vdisk.h
index 6b7325992e..3541d86063 100644
--- a/ydb/core/blobstorage/ut_blobstorage/lib/node_warden_mock_vdisk.h
+++ b/ydb/core/blobstorage/ut_blobstorage/lib/node_warden_mock_vdisk.h
@@ -123,7 +123,7 @@ public:
break;
case EState::READY:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blobstorage/ut_blobstorage/scrub.cpp b/ydb/core/blobstorage/ut_blobstorage/scrub.cpp
index 0d38c7ffbd..4f7843adcb 100644
--- a/ydb/core/blobstorage/ut_blobstorage/scrub.cpp
+++ b/ydb/core/blobstorage/ut_blobstorage/scrub.cpp
@@ -53,7 +53,7 @@ Y_UNIT_TEST_SUITE(BlobScrubbing) {
} else if (item.Level == 18) {
++num18;
} else {
- Y_FAIL("unexpected level");
+ Y_ABORT("unexpected level");
}
}
}
diff --git a/ydb/core/blobstorage/ut_group/main.cpp b/ydb/core/blobstorage/ut_group/main.cpp
index 16c1d9a509..18cdc075bb 100644
--- a/ydb/core/blobstorage/ut_group/main.cpp
+++ b/ydb/core/blobstorage/ut_group/main.cpp
@@ -342,7 +342,7 @@ public:
Y_VERIFY_S(ev->Status == NKikimrProto::OK || ev->Status == NKikimrProto::ALREADY, "TEvSlayResult# " << ev->ToString());
LOG_INFO_S(runtime, NActorsServices::TEST, "Slayed VDiskId# " << disk.VDiskId);
} else {
- Y_FAIL("unexpected event to edge actor");
+ Y_ABORT("unexpected event to edge actor");
}
}
@@ -457,7 +457,7 @@ public:
}
void ProcessUnexpectedEvent(TAutoPtr<IEventHandle> ev) {
- Y_FAIL("unexpected event Type# 0x%08" PRIx32, ev->GetTypeRewrite());
+ Y_ABORT("unexpected event Type# 0x%08" PRIx32, ev->GetTypeRewrite());
}
template<typename TEvent, typename... TArgs>
diff --git a/ydb/core/blobstorage/ut_pdiskfit/lib/basic_test.cpp b/ydb/core/blobstorage/ut_pdiskfit/lib/basic_test.cpp
index 2a6e3e20d3..afc05bf39b 100644
--- a/ydb/core/blobstorage/ut_pdiskfit/lib/basic_test.cpp
+++ b/ydb/core/blobstorage/ut_pdiskfit/lib/basic_test.cpp
@@ -182,7 +182,7 @@ class TFakeVDisk
break;
case ECommitState::DELETED:
- Y_FAIL();
+ Y_ABORT();
}
}
str << '}';
@@ -541,7 +541,7 @@ public:
std::swap(chunk, ChunksToForget.back());
ChunksToForget.pop_back();
} else {
- Y_FAIL("unexpected option");
+ Y_ABORT("unexpected option");
}
}
}
@@ -958,7 +958,7 @@ public:
HFunc(NPDisk::TEvChunkWriteResult, Handle);
HFunc(NPDisk::TEvChunkReadResult, Handle);
HFunc(NPDisk::TEvChunkForgetResult, Handle);
- default: Y_FAIL("unexpected message 0x%08" PRIx32, type);
+ default: Y_ABORT("unexpected message 0x%08" PRIx32, type);
}
}
};
diff --git a/ydb/core/blobstorage/ut_pdiskfit/lib/basic_test.h b/ydb/core/blobstorage/ut_pdiskfit/lib/basic_test.h
index 9129e6f66f..bc8a19775d 100644
--- a/ydb/core/blobstorage/ut_pdiskfit/lib/basic_test.h
+++ b/ydb/core/blobstorage/ut_pdiskfit/lib/basic_test.h
@@ -101,7 +101,7 @@ public:
STFUNC(StateFunc) {
switch (const ui32 type = ev->GetTypeRewrite()) {
- default: Y_FAIL("unexpected message 0x%08" PRIx32, type);
+ default: Y_ABORT("unexpected message 0x%08" PRIx32, type);
}
}
};
diff --git a/ydb/core/blobstorage/ut_pdiskfit/lib/fail_injection_test.h b/ydb/core/blobstorage/ut_pdiskfit/lib/fail_injection_test.h
index 8fba944a06..423e626ba5 100644
--- a/ydb/core/blobstorage/ut_pdiskfit/lib/fail_injection_test.h
+++ b/ydb/core/blobstorage/ut_pdiskfit/lib/fail_injection_test.h
@@ -256,7 +256,7 @@ struct TPDiskFailureInjectionTest {
int fds[2];
if (pipe(fds) != 0) {
- Y_FAIL("pipe failed");
+ Y_ABORT("pipe failed");
}
pid_t pid = fork();
@@ -319,7 +319,7 @@ struct TPDiskFailureInjectionTest {
ssize_t len = read(fds[0], buffer, sizeof(buffer));
if (len == -1) {
if (errno != EINTR) {
- Y_FAIL("unexpected error: %s", strerror(errno));
+ Y_ABORT("unexpected error: %s", strerror(errno));
}
continue;
} else if (!len) {
@@ -335,13 +335,13 @@ struct TPDiskFailureInjectionTest {
// wait for child to terminate
int status = 0;
if (waitpid(pid, &status, 0) != pid) {
- Y_FAIL("waitpid failed with error: %s", strerror(errno));
+ Y_ABORT("waitpid failed with error: %s", strerror(errno));
}
if (WIFSIGNALED(status)) {
int sig = WTERMSIG(status);
if (sig != SIGKILL) {
- Y_FAIL("unexpected termination signal: %d pid# %d", sig, (int)pid);
+ Y_ABORT("unexpected termination signal: %d pid# %d", sig, (int)pid);
}
}
} else {
diff --git a/ydb/core/blobstorage/ut_vdisk/lib/helpers.cpp b/ydb/core/blobstorage/ut_vdisk/lib/helpers.cpp
index b23252c051..ba0477182a 100644
--- a/ydb/core/blobstorage/ut_vdisk/lib/helpers.cpp
+++ b/ydb/core/blobstorage/ut_vdisk/lib/helpers.cpp
@@ -498,7 +498,7 @@ class TManyMultiPuts : public TActorBootstrapped<TManyMultiPuts> {
break;
default:
// IMPOSSIBLE
- Y_FAIL();
+ Y_ABORT();
}
if (Step == MsgNum) {
@@ -599,7 +599,7 @@ class TManyGets : public TActorBootstrapped<TManyGets> {
if (const auto& s = ev.GetBlobData(q).ConvertToString(); s != MsgData) {
fprintf(stderr, "Original: %s\n", MsgData.data());
fprintf(stderr, "Received: %s\n", s.data());
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -703,12 +703,12 @@ class TGet : public TActorBootstrapped<TGet> {
if (const auto& s = ev.GetBlobData(q).ConvertToString(); s != data.substr(Shift)) {
fprintf(stderr, "Original: %s\n", data.data());
fprintf(stderr, "Received: %s\n", s.data());
- Y_FAIL();
+ Y_ABORT();
}
}
auto serial = rec.SerializeAsString();
if (serial.size() > MaxProtobufSize) {
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -717,14 +717,14 @@ class TGet : public TActorBootstrapped<TGet> {
switch (status) {
case NKikimrProto::OK:
if (WithErrorResponse) {
- Y_FAIL("Expected ERROR status but given OK");
+ Y_ABORT("Expected ERROR status but given OK");
}
Check(ctx, ev->Get()->Record, *ev->Get());
break;
case NKikimrProto::ERROR:
if (!WithErrorResponse) {
- Y_FAIL("Expected OK status but given ERROR");
+ Y_ABORT("Expected OK status but given ERROR");
}
break;
@@ -1190,7 +1190,7 @@ class TWaitForSync : public TActorBootstrapped<TWaitForSync> {
if (InfoVec[idx].VDiskId == vd)
return idx;
}
- Y_FAIL("nothing found");
+ Y_ABORT("nothing found");
}
};
@@ -1727,7 +1727,7 @@ void CheckQueryResult(NKikimr::TEvBlobStorage::TEvVGetResult::TPtr &ev, const NA
expSet->Finish();
break;
}
- default: Y_FAIL("Impossible case");
+ default: Y_ABORT("Impossible case");
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/ydb/core/blobstorage/ut_vdisk/lib/test_huge.cpp b/ydb/core/blobstorage/ut_vdisk/lib/test_huge.cpp
index e6b06b59a1..04edc67ccb 100644
--- a/ydb/core/blobstorage/ut_vdisk/lib/test_huge.cpp
+++ b/ydb/core/blobstorage/ut_vdisk/lib/test_huge.cpp
@@ -65,11 +65,11 @@ public:
return false;
}
case 1:
- Y_FAIL();
+ Y_ABORT();
case 2:
return true;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blobstorage/vdisk/common/blobstorage_dblogcutter.cpp b/ydb/core/blobstorage/vdisk/common/blobstorage_dblogcutter.cpp
index 06dade7c0e..b4c1e2568d 100644
--- a/ydb/core/blobstorage/vdisk/common/blobstorage_dblogcutter.cpp
+++ b/ydb/core/blobstorage/vdisk/common/blobstorage_dblogcutter.cpp
@@ -93,7 +93,7 @@ namespace NKikimr {
update(ScrubLsnToKeep, ScrubLastTime, "Scrub");
break;
default:
- Y_FAIL("Unexpected case: %d", msg->Component);
+ Y_ABORT("Unexpected case: %d", msg->Component);
}
Process(ctx);
diff --git a/ydb/core/blobstorage/vdisk/common/vdisk_context.h b/ydb/core/blobstorage/vdisk/common/vdisk_context.h
index bfc35c61e3..c18dbf708e 100644
--- a/ydb/core/blobstorage/vdisk/common/vdisk_context.h
+++ b/ydb/core/blobstorage/vdisk/common/vdisk_context.h
@@ -141,7 +141,7 @@ namespace NKikimr {
}
default:
// fail process, unrecoverable error
- Y_FAIL("%s", VDISKP(VDiskLogPrefix, "CheckPDiskResponse: FATAL error from PDisk: %s",
+ Y_ABORT("%s", VDISKP(VDiskLogPrefix, "CheckPDiskResponse: FATAL error from PDisk: %s",
FormatMessage(ev.Status, ev.ErrorReason, ev.StatusFlags, message).data()).data());
return false;
}
diff --git a/ydb/core/blobstorage/vdisk/common/vdisk_events.h b/ydb/core/blobstorage/vdisk/common/vdisk_events.h
index 2f2447de85..534f189e24 100644
--- a/ydb/core/blobstorage/vdisk/common/vdisk_events.h
+++ b/ydb/core/blobstorage/vdisk/common/vdisk_events.h
@@ -55,7 +55,7 @@ namespace NKikimr {
case EQueueClientType::VPatch: return "VPatch";
}
- Y_FAIL("unexpected EQueueClientType");
+ Y_ABORT("unexpected EQueueClientType");
}
// backpressure queue client identifier; ui32 means NodeId of DS Proxy actor, TVDiskID -- replication job identifier.
@@ -103,7 +103,7 @@ namespace NKikimr {
break;
default:
- Y_FAIL("unexpected case");
+ Y_ABORT("unexpected case");
}
}
diff --git a/ydb/core/blobstorage/vdisk/common/vdisk_handle_class.cpp b/ydb/core/blobstorage/vdisk/common/vdisk_handle_class.cpp
index c79b4b59be..d8301c2a77 100644
--- a/ydb/core/blobstorage/vdisk/common/vdisk_handle_class.cpp
+++ b/ydb/core/blobstorage/vdisk/common/vdisk_handle_class.cpp
@@ -21,7 +21,7 @@ namespace NKikimr {
case NKikimrBlobStorage::UserData:
return (hugeBlobSize >= minREALHugeBlobSize ? HugeForeground : Log);
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
diff --git a/ydb/core/blobstorage/vdisk/common/vdisk_pdisk_error.h b/ydb/core/blobstorage/vdisk/common/vdisk_pdisk_error.h
index e55f9e4696..d4474b21f7 100644
--- a/ydb/core/blobstorage/vdisk/common/vdisk_pdisk_error.h
+++ b/ydb/core/blobstorage/vdisk/common/vdisk_pdisk_error.h
@@ -48,7 +48,7 @@ namespace NKikimr {
Y_ABORT_UNLESS(pdiskFlags & NKikimrBlobStorage::StatusNotEnoughDiskSpaceForOperation);
return SetPrivate(WriteOnlyLog);
default:
- Y_FAIL("Unexpected state# %s", NKikimrProto::EReplyStatus_Name(status).data());
+ Y_ABORT("Unexpected state# %s", NKikimrProto::EReplyStatus_Name(status).data());
}
}
diff --git a/ydb/core/blobstorage/vdisk/defrag/defrag_quantum.cpp b/ydb/core/blobstorage/vdisk/defrag/defrag_quantum.cpp
index 4f1bdefb68..79d177909a 100644
--- a/ydb/core/blobstorage/vdisk/defrag/defrag_quantum.cpp
+++ b/ydb/core/blobstorage/vdisk/defrag/defrag_quantum.cpp
@@ -41,7 +41,7 @@ namespace NKikimr {
throw TExPoison();
}
- Y_FAIL("unexpected event Type# 0x%08" PRIx32, ev->GetTypeRewrite());
+ Y_ABORT("unexpected event Type# 0x%08" PRIx32, ev->GetTypeRewrite());
}
void Run() override {
diff --git a/ydb/core/blobstorage/vdisk/handoff/handoff_basic.cpp b/ydb/core/blobstorage/vdisk/handoff/handoff_basic.cpp
index a7fca446e8..3ccdda92ef 100644
--- a/ydb/core/blobstorage/vdisk/handoff/handoff_basic.cpp
+++ b/ydb/core/blobstorage/vdisk/handoff/handoff_basic.cpp
@@ -75,7 +75,7 @@ namespace NKikimr {
{}
TProxyState::TProxyState(IInputStream &) {
- Y_FAIL("Not supported");
+ Y_ABORT("Not supported");
}
void TProxyState::Init(const TVDiskID &selfVDiskID, const TVDiskID &targetVDiskID, ui32 maxElems, ui32 maxBytes) {
diff --git a/ydb/core/blobstorage/vdisk/handoff/handoff_map.h b/ydb/core/blobstorage/vdisk/handoff/handoff_map.h
index 2ce48216e5..2159a47d6e 100644
--- a/ydb/core/blobstorage/vdisk/handoff/handoff_map.h
+++ b/ydb/core/blobstorage/vdisk/handoff/handoff_map.h
@@ -218,7 +218,7 @@ namespace NKikimr {
const NMatrix::TVectorType moveVec = movePlan & localVec;
if (!moveVec.Empty()) {
if (memRec->GetType() == TBlobType::HugeBlob) {
- Y_FAIL("Implement"); // FIXME
+ Y_ABORT("Implement"); // FIXME
} else if (memRec->GetType() == TBlobType::DiskBlob) {
const auto& merger = dataMerger->GetDiskBlobMerger();
const TDiskBlob& blob = merger.GetDiskBlob();
@@ -240,7 +240,7 @@ namespace NKikimr {
}
}
} else
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
// handle delete (avoid writing some parts)
@@ -252,9 +252,9 @@ namespace NKikimr {
if (!delVec.Empty()) {
// yes, we ready to delete some parts
if (memRec->GetType() == TBlobType::HugeBlob) {
- Y_FAIL("Implement"); // FIXME
+ Y_ABORT("Implement"); // FIXME
} else if (memRec->GetType() == TBlobType::ManyHugeBlobs) {
- Y_FAIL("Implement"); // FIXME
+ Y_ABORT("Implement"); // FIXME
} else if (memRec->GetType() == TBlobType::DiskBlob) {
TIngress ingress = memRec->GetIngress(); // ingress we are going to change
const auto& merger = dataMerger->GetDiskBlobMerger();
@@ -290,7 +290,7 @@ namespace NKikimr {
TIngress syncLogIngress = ingress.CopyWithoutLocal(Top->GType);
ctx.Send(ProxyID, new TEvHandoffSyncLogDel(key.LogoBlobID(), syncLogIngress));
} else
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
}
diff --git a/ydb/core/blobstorage/vdisk/handoff/handoff_mon.cpp b/ydb/core/blobstorage/vdisk/handoff/handoff_mon.cpp
index d7779e7981..5e2a2cd36f 100644
--- a/ydb/core/blobstorage/vdisk/handoff/handoff_mon.cpp
+++ b/ydb/core/blobstorage/vdisk/handoff/handoff_mon.cpp
@@ -19,7 +19,7 @@ namespace NKikimr {
TInfo() = default;
TInfo(IInputStream &) {
- Y_FAIL("Not supported");
+ Y_ABORT("Not supported");
}
TInfo(const NHandoff::TCountersPtr &c, const NHandoff::TPrivateProxyStatePtr &p)
: Cntr(c)
diff --git a/ydb/core/blobstorage/vdisk/handoff/handoff_proxy.cpp b/ydb/core/blobstorage/vdisk/handoff/handoff_proxy.cpp
index dc842a1646..267398e0df 100644
--- a/ydb/core/blobstorage/vdisk/handoff/handoff_proxy.cpp
+++ b/ydb/core/blobstorage/vdisk/handoff/handoff_proxy.cpp
@@ -248,7 +248,7 @@ namespace NKikimr {
return;
}
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
void Handle(TEvents::TEvUndelivered::TPtr& ev, const TActorContext& ctx) {
@@ -261,7 +261,7 @@ namespace NKikimr {
Counters.ReplyUndelivered++;
SwitchToBadState(ctx);
} else
- Y_FAIL("Unknown undelivered");
+ Y_ABORT("Unknown undelivered");
}
void HandleWakeup(const TActorContext &ctx) {
diff --git a/ydb/core/blobstorage/vdisk/huge/blobstorage_hullhuge.cpp b/ydb/core/blobstorage/vdisk/huge/blobstorage_hullhuge.cpp
index 5a035403a4..7ee8ed87a9 100644
--- a/ydb/core/blobstorage/vdisk/huge/blobstorage_hullhuge.cpp
+++ b/ydb/core/blobstorage/vdisk/huge/blobstorage_hullhuge.cpp
@@ -799,7 +799,7 @@ namespace NKikimr {
checkAndSet(State.Pers->LogPos.BarriersDbSlotDelLsn);
break;
default:
- Y_FAIL("Impossible case");
+ Y_ABORT("Impossible case");
}
ProcessQueue(ctx);
FreeChunks(ctx);
diff --git a/ydb/core/blobstorage/vdisk/huge/blobstorage_hullhugerecovery.cpp b/ydb/core/blobstorage/vdisk/huge/blobstorage_hullhugerecovery.cpp
index 58dc8783ab..2e401916dd 100644
--- a/ydb/core/blobstorage/vdisk/huge/blobstorage_hullhugerecovery.cpp
+++ b/ydb/core/blobstorage/vdisk/huge/blobstorage_hullhugerecovery.cpp
@@ -525,7 +525,7 @@ namespace NKikimr {
logPosDelLsn = &LogPos.BarriersDbSlotDelLsn;
break;
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
if (lsn > *logPosDelLsn) {
// apply
diff --git a/ydb/core/blobstorage/vdisk/huge/booltt.h b/ydb/core/blobstorage/vdisk/huge/booltt.h
index 13a2960449..94ff129845 100644
--- a/ydb/core/blobstorage/vdisk/huge/booltt.h
+++ b/ydb/core/blobstorage/vdisk/huge/booltt.h
@@ -38,7 +38,7 @@ public:
TDuration d = now - Start;
Top.Push(TRec(now, d));
} else
- Y_FAIL("Unexpected case: curValue# %d newValue# %d", int(curValue), int(newValue));
+ Y_ABORT("Unexpected case: curValue# %d newValue# %d", int(curValue), int(newValue));
}
void Output(IOutputStream &str) {
diff --git a/ydb/core/blobstorage/vdisk/hulldb/base/hullbase_barrier.h b/ydb/core/blobstorage/vdisk/hulldb/base/hullbase_barrier.h
index 6eb2dada6b..e6930872e7 100644
--- a/ydb/core/blobstorage/vdisk/hulldb/base/hullbase_barrier.h
+++ b/ydb/core/blobstorage/vdisk/hulldb/base/hullbase_barrier.h
@@ -161,15 +161,15 @@ namespace NKikimr {
}
void SetHugeBlob(const TDiskPart &) {
- Y_FAIL("Must not be called");
+ Y_ABORT("Must not be called");
}
void SetManyHugeBlobs(ui32, ui32, ui32) {
- Y_FAIL("Must not be called");
+ Y_ABORT("Must not be called");
}
void SetMemBlob(ui64, ui32) {
- Y_FAIL("Must not be called");
+ Y_ABORT("Must not be called");
}
void SetNoBlob() {
@@ -186,7 +186,7 @@ namespace NKikimr {
}
TMemPart GetMemData() const {
- Y_FAIL("Must not be called");
+ Y_ABORT("Must not be called");
}
NMatrix::TVectorType GetLocalParts(TBlobStorageGroupType) const {
diff --git a/ydb/core/blobstorage/vdisk/hulldb/base/hullbase_block.h b/ydb/core/blobstorage/vdisk/hulldb/base/hullbase_block.h
index 0bdc62002c..40d5ac84d2 100644
--- a/ydb/core/blobstorage/vdisk/hulldb/base/hullbase_block.h
+++ b/ydb/core/blobstorage/vdisk/hulldb/base/hullbase_block.h
@@ -109,15 +109,15 @@ namespace NKikimr {
}
void SetHugeBlob(const TDiskPart &) {
- Y_FAIL("Must not be called");
+ Y_ABORT("Must not be called");
}
void SetManyHugeBlobs(ui32, ui32, ui32) {
- Y_FAIL("Must not be called");
+ Y_ABORT("Must not be called");
}
void SetMemBlob(ui64, ui32) {
- Y_FAIL("Must not be called");
+ Y_ABORT("Must not be called");
}
void SetNoBlob() {
@@ -134,7 +134,7 @@ namespace NKikimr {
}
TMemPart GetMemData() const {
- Y_FAIL("Must not be called");
+ Y_ABORT("Must not be called");
}
NMatrix::TVectorType GetLocalParts(TBlobStorageGroupType) const {
diff --git a/ydb/core/blobstorage/vdisk/hulldb/bulksst_add/hulldb_bulksst_add.h b/ydb/core/blobstorage/vdisk/hulldb/bulksst_add/hulldb_bulksst_add.h
index 4c591f12b9..d71f05829b 100644
--- a/ydb/core/blobstorage/vdisk/hulldb/bulksst_add/hulldb_bulksst_add.h
+++ b/ydb/core/blobstorage/vdisk/hulldb/bulksst_add/hulldb_bulksst_add.h
@@ -101,13 +101,13 @@ namespace NKikimr {
template <>
inline TAddBulkSstEssence::TSstAndRecsNum<TLevelSegment<TKeyBlock, TMemRecBlock>>
TAddBulkSstEssence::EnsureOnlyOneSst<TKeyBlock, TMemRecBlock>() const {
- Y_FAIL("Must not be called");
+ Y_ABORT("Must not be called");
}
template <>
inline TAddBulkSstEssence::TSstAndRecsNum<TLevelSegment<TKeyBarrier, TMemRecBarrier>>
TAddBulkSstEssence::EnsureOnlyOneSst<TKeyBarrier, TMemRecBarrier>() const {
- Y_FAIL("Must not be called");
+ Y_ABORT("Must not be called");
}
////////////////////////////////////////////////////////////////////////////////
diff --git a/ydb/core/blobstorage/vdisk/hulldb/compstrat/hulldb_compstrat_balance.h b/ydb/core/blobstorage/vdisk/hulldb/compstrat/hulldb_compstrat_balance.h
index e9387c3968..506b938a57 100644
--- a/ydb/core/blobstorage/vdisk/hulldb/compstrat/hulldb_compstrat_balance.h
+++ b/ydb/core/blobstorage/vdisk/hulldb/compstrat/hulldb_compstrat_balance.h
@@ -129,7 +129,7 @@ namespace NKikimr {
return i + 1;
}
}
- Y_FAIL("free level not found");
+ Y_ABORT("free level not found");
return -1;
}
@@ -640,7 +640,7 @@ namespace NKikimr {
return ActCompactSsts;
}
- Y_FAIL("impossible case");
+ Y_ABORT("impossible case");
}
};
diff --git a/ydb/core/blobstorage/vdisk/hulldb/fresh/fresh_segment_impl.h b/ydb/core/blobstorage/vdisk/hulldb/fresh/fresh_segment_impl.h
index da4a4d32aa..317c862264 100644
--- a/ydb/core/blobstorage/vdisk/hulldb/fresh/fresh_segment_impl.h
+++ b/ydb/core/blobstorage/vdisk/hulldb/fresh/fresh_segment_impl.h
@@ -240,7 +240,7 @@ namespace NKikimr {
template <class TKey, class TMemRec>
inline const TRope& TFreshIndexAndData<TKey, TMemRec>::GetLogoBlobData(const TMemPart& /*memPart*/) const {
- Y_FAIL("invalid call");
+ Y_ABORT("invalid call");
}
template <class TKey, class TMemRec>
@@ -260,7 +260,7 @@ namespace NKikimr {
HugeDataSize += memRec.DataSize();
break;
default:
- Y_FAIL("Unexpected type: type# %d", int(type));
+ Y_ABORT("Unexpected type: type# %d", int(type));
}
PutPrepared(lsn, key, memRec);
}
diff --git a/ydb/core/blobstorage/vdisk/hulldb/generic/blobstorage_hullrecmerger.h b/ydb/core/blobstorage/vdisk/hulldb/generic/blobstorage_hullrecmerger.h
index 4c49c55997..6fead657b0 100644
--- a/ydb/core/blobstorage/vdisk/hulldb/generic/blobstorage_hullrecmerger.h
+++ b/ydb/core/blobstorage/vdisk/hulldb/generic/blobstorage_hullrecmerger.h
@@ -165,7 +165,7 @@ namespace NKikimr {
break;
}
default:
- Y_FAIL("Impossible case");
+ Y_ABORT("Impossible case");
}
VerifyConsistency(memRec, outbound);
}
@@ -410,7 +410,7 @@ namespace NKikimr {
// deduplicate huge blob
LastWriteWinsMerger.Add(extr.SwearOne(), v, circaLsn);
} else {
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
break;
diff --git a/ydb/core/blobstorage/vdisk/hulldb/generic/blobstorage_hullwritesst.h b/ydb/core/blobstorage/vdisk/hulldb/generic/blobstorage_hullwritesst.h
index 58426cbeba..4bedf9e689 100644
--- a/ydb/core/blobstorage/vdisk/hulldb/generic/blobstorage_hullwritesst.h
+++ b/ydb/core/blobstorage/vdisk/hulldb/generic/blobstorage_hullwritesst.h
@@ -23,7 +23,7 @@ namespace NKikimr {
case EWriterDataType::Fresh: return data ? vctx->CompDataFresh : vctx->CompIndexFresh;
case EWriterDataType::Comp: return data ? vctx->CompData : vctx->CompIndex;
case EWriterDataType::Replication: return vctx->Replication;
- default: Y_FAIL("incorrect EWriterDataType provided");
+ default: Y_ABORT("incorrect EWriterDataType provided");
}
}
@@ -32,7 +32,7 @@ namespace NKikimr {
case EWriterDataType::Fresh: return NPriWrite::HullFresh;
case EWriterDataType::Comp: return NPriWrite::HullComp;
case EWriterDataType::Replication: return NPriWrite::HullComp; // FIXME: add HullRepl priority class
- default: Y_FAIL("incorrect EWriterDataType provided");
+ default: Y_ABORT("incorrect EWriterDataType provided");
}
}
@@ -547,7 +547,7 @@ namespace NKikimr {
ItemsWithHugeData++;
break;
}
- default: Y_FAIL("Impossible case");
+ default: Y_ABORT("Impossible case");
}
++Items;
@@ -872,7 +872,7 @@ namespace NKikimr {
}
break;
- default: Y_FAIL("Impossible case");
+ default: Y_ABORT("Impossible case");
}
IndexBuilder.Push(key, memRecToAdd, dataMerger);
diff --git a/ydb/core/blobstorage/vdisk/hulldb/generic/hulldb_bulksstmngr.cpp b/ydb/core/blobstorage/vdisk/hulldb/generic/hulldb_bulksstmngr.cpp
index 4c45134c2d..08513b61c5 100644
--- a/ydb/core/blobstorage/vdisk/hulldb/generic/hulldb_bulksstmngr.cpp
+++ b/ydb/core/blobstorage/vdisk/hulldb/generic/hulldb_bulksstmngr.cpp
@@ -195,7 +195,7 @@ namespace NKikimr {
return *it;
}
}
- Y_FAIL("bulk-formed SSTable not found");
+ Y_ABORT("bulk-formed SSTable not found");
}
void TBulkFormedSstInfoSet::GetOwnedChunks(TSet<TChunkIdx>& chunks) const {
diff --git a/ydb/core/blobstorage/vdisk/hulldb/generic/hullds_idx.h b/ydb/core/blobstorage/vdisk/hulldb/generic/hullds_idx.h
index 28f2096c92..2261ffe3fb 100644
--- a/ydb/core/blobstorage/vdisk/hulldb/generic/hullds_idx.h
+++ b/ydb/core/blobstorage/vdisk/hulldb/generic/hullds_idx.h
@@ -356,7 +356,7 @@ namespace NKikimr {
switch (s) {
case ESatisfactionRankType::Fresh: return Fresh.GetSatisfactionRank();
case ESatisfactionRankType::Level: return CurSlice->GetSatisfactionRank();
- default: Y_FAIL("Unexpected rank type");
+ default: Y_ABORT("Unexpected rank type");
}
}
diff --git a/ydb/core/blobstorage/vdisk/hulldb/hull_ds_all.h b/ydb/core/blobstorage/vdisk/hulldb/hull_ds_all.h
index b2a22b83c3..03fe85e103 100644
--- a/ydb/core/blobstorage/vdisk/hulldb/hull_ds_all.h
+++ b/ydb/core/blobstorage/vdisk/hulldb/hull_ds_all.h
@@ -81,7 +81,7 @@ namespace NKikimr {
case EHullDbType::LogoBlobs: return LogoBlobs->GetSatisfactionRank(s);
case EHullDbType::Blocks: return Blocks->GetSatisfactionRank(s);
case EHullDbType::Barriers: return Barriers->GetSatisfactionRank(s);
- default: Y_FAIL("Unexpected t=%d", int(t));
+ default: Y_ABORT("Unexpected t=%d", int(t));
}
}
diff --git a/ydb/core/blobstorage/vdisk/hullop/blobstorage_hullactor.cpp b/ydb/core/blobstorage/vdisk/hullop/blobstorage_hullactor.cpp
index 513693a015..c8cfafd7ee 100644
--- a/ydb/core/blobstorage/vdisk/hullop/blobstorage_hullactor.cpp
+++ b/ydb/core/blobstorage/vdisk/hullop/blobstorage_hullactor.cpp
@@ -297,7 +297,7 @@ namespace NKikimr {
break;
}
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
RTCtx->LevelIndex->UpdateLevelStat(LevelStat);
@@ -529,7 +529,7 @@ namespace NKikimr {
case THullCommitFinished::CommitReplSst:
break;
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
// notify skeleton about finished compaction
diff --git a/ydb/core/blobstorage/vdisk/hullop/blobstorage_hullcommit.h b/ydb/core/blobstorage/vdisk/hullop/blobstorage_hullcommit.h
index 06adebd80d..78a037f894 100644
--- a/ydb/core/blobstorage/vdisk/hullop/blobstorage_hullcommit.h
+++ b/ydb/core/blobstorage/vdisk/hullop/blobstorage_hullcommit.h
@@ -212,7 +212,7 @@ namespace NKikimr {
auto it = std::adjacent_find(v.Vec.begin(), v.Vec.end(), pred);
if (it != v.end()) {
auto second = std::next(it);
- Y_FAIL("%s", VDISKP(HullLogCtx->VCtx->VDiskLogPrefix, "duplicate removed huge slots: x# %s y# %s",
+ Y_ABORT("%s", VDISKP(HullLogCtx->VCtx->VDiskLogPrefix, "duplicate removed huge slots: x# %s y# %s",
it->ToString().data(), second->ToString().data()).data());
}
}
diff --git a/ydb/core/blobstorage/vdisk/hullop/blobstorage_hullcompactworker.h b/ydb/core/blobstorage/vdisk/hullop/blobstorage_hullcompactworker.h
index 4f2ed31e3d..154ba92c02 100644
--- a/ydb/core/blobstorage/vdisk/hullop/blobstorage_hullcompactworker.h
+++ b/ydb/core/blobstorage/vdisk/hullop/blobstorage_hullcompactworker.h
@@ -318,7 +318,7 @@ namespace NKikimr {
for (;;) {
switch (State) {
case EState::Invalid:
- Y_FAIL("unexpected state");
+ Y_ABORT("unexpected state");
case EState::GetNextItem:
if (It.Valid()) {
@@ -474,7 +474,7 @@ namespace NKikimr {
return nullptr;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blobstorage/vdisk/localrecovery/localrecovery_defs.cpp b/ydb/core/blobstorage/vdisk/localrecovery/localrecovery_defs.cpp
index 4c28ab57c1..a80c47d078 100644
--- a/ydb/core/blobstorage/vdisk/localrecovery/localrecovery_defs.cpp
+++ b/ydb/core/blobstorage/vdisk/localrecovery/localrecovery_defs.cpp
@@ -242,7 +242,7 @@ namespace NKikimr {
if (SuccessfulRecovery) {
bool emptyLog = (RecoveryLogFirstLsn == Max<ui64>()) && RecoveryLogLastLsn == 0;
if (!StartingPoints.empty() && emptyLog) {
- Y_FAIL("Empty log with none empty entry points; State# %s", ToString().data());
+ Y_ABORT("Empty log with none empty entry points; State# %s", ToString().data());
}
}
}
diff --git a/ydb/core/blobstorage/vdisk/localrecovery/localrecovery_logreplay.cpp b/ydb/core/blobstorage/vdisk/localrecovery/localrecovery_logreplay.cpp
index 93f66b335c..16f187715e 100644
--- a/ydb/core/blobstorage/vdisk/localrecovery/localrecovery_logreplay.cpp
+++ b/ydb/core/blobstorage/vdisk/localrecovery/localrecovery_logreplay.cpp
@@ -132,7 +132,7 @@ namespace NKikimr {
case EDispatchStatus::Async:
return; // wait for async call
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
diff --git a/ydb/core/blobstorage/vdisk/localrecovery/localrecovery_public.cpp b/ydb/core/blobstorage/vdisk/localrecovery/localrecovery_public.cpp
index 2a9f0b9d63..4537a45aa7 100644
--- a/ydb/core/blobstorage/vdisk/localrecovery/localrecovery_public.cpp
+++ b/ydb/core/blobstorage/vdisk/localrecovery/localrecovery_public.cpp
@@ -612,7 +612,7 @@ namespace NKikimr {
HullBarriersDBInitialized = true;
break;
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
if (DatabaseStateLoaded())
diff --git a/ydb/core/blobstorage/vdisk/query/query_base.h b/ydb/core/blobstorage/vdisk/query/query_base.h
index 8f28366702..b8e6b23741 100644
--- a/ydb/core/blobstorage/vdisk/query/query_base.h
+++ b/ydb/core/blobstorage/vdisk/query/query_base.h
@@ -60,7 +60,7 @@ namespace NKikimr {
priority = NPriRead::HullLow;
break;
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
return priority;
}
diff --git a/ydb/core/blobstorage/vdisk/query/query_extr.cpp b/ydb/core/blobstorage/vdisk/query/query_extr.cpp
index 92aea31e9e..b17d1ea291 100644
--- a/ydb/core/blobstorage/vdisk/query/query_extr.cpp
+++ b/ydb/core/blobstorage/vdisk/query/query_extr.cpp
@@ -210,7 +210,7 @@ namespace NKikimr {
NReadBatcher::TDataItem::EType t = it->GetType();
switch (t) {
case NReadBatcher::TDataItem::ET_CLEAN:
- Y_FAIL("Impossible case");
+ Y_ABORT("Impossible case");
case NReadBatcher::TDataItem::ET_NODATA:
// put NODATA
Result->AddResult(NKikimrProto::NODATA, it->Id, cookiePtr, pingr);
diff --git a/ydb/core/blobstorage/vdisk/query/query_public.cpp b/ydb/core/blobstorage/vdisk/query/query_public.cpp
index e924ba4516..ef0264585e 100644
--- a/ydb/core/blobstorage/vdisk/query/query_public.cpp
+++ b/ydb/core/blobstorage/vdisk/query/query_public.cpp
@@ -103,7 +103,7 @@ namespace NKikimr {
return CreateLevelIndexExtremeQueryActor(queryCtx, parentId,
std::move(fullSnap.LogoBlobsSnap), std::move(fullSnap.BarriersSnap), ev, std::move(result), replSchedulerId);
} else {
- Y_FAIL("Impossible case");
+ Y_ABORT("Impossible case");
}
}
diff --git a/ydb/core/blobstorage/vdisk/query/query_stattablet.cpp b/ydb/core/blobstorage/vdisk/query/query_stattablet.cpp
index 5e4817b059..e0f9a75f4c 100644
--- a/ydb/core/blobstorage/vdisk/query/query_stattablet.cpp
+++ b/ydb/core/blobstorage/vdisk/query/query_stattablet.cpp
@@ -164,7 +164,7 @@ namespace NKikimr {
val.DataSizeMem += memRec.DataSize();
break;
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
}
diff --git a/ydb/core/blobstorage/vdisk/query/query_stream.h b/ydb/core/blobstorage/vdisk/query/query_stream.h
index db5682b8b8..3bbd4152b3 100644
--- a/ydb/core/blobstorage/vdisk/query/query_stream.h
+++ b/ydb/core/blobstorage/vdisk/query/query_stream.h
@@ -96,7 +96,7 @@ namespace NKikimr {
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blobstorage/vdisk/repl/blobstorage_hullrepljob.cpp b/ydb/core/blobstorage/vdisk/repl/blobstorage_hullrepljob.cpp
index 792bafe5bf..9126809f39 100644
--- a/ydb/core/blobstorage/vdisk/repl/blobstorage_hullrepljob.cpp
+++ b/ydb/core/blobstorage/vdisk/repl/blobstorage_hullrepljob.cpp
@@ -489,7 +489,7 @@ namespace NKikimr {
return false; // we can't proceed right now
case TReplSstStreamWriter::EState::COLLECT:
- Y_FAIL(); // should have exited a few lines above
+ Y_ABORT(); // should have exited a few lines above
case TReplSstStreamWriter::EState::COMMIT_PENDING: {
// acquire commit message from writer and send to the level index actor, writer state will
@@ -505,10 +505,10 @@ namespace NKikimr {
return false; // just waiting for something to happen
case TReplSstStreamWriter::EState::ERROR:
- Y_FAIL("replication failed"); // FIXME: do something sane
+ Y_ABORT("replication failed"); // FIXME: do something sane
default:
- Y_FAIL("unexpected state");
+ Y_ABORT("unexpected state");
}
}
@@ -615,7 +615,7 @@ namespace NKikimr {
case EProcessQueueAction::Exit:
return false;
default:
- Y_FAIL("invalid EProcessQueueAction");
+ Y_ABORT("invalid EProcessQueueAction");
}
}
}
@@ -659,7 +659,7 @@ namespace NKikimr {
return false;
}
- Y_FAIL("incorrect merger state State# %" PRIu32, ui32(Writer.GetState()));
+ Y_ABORT("incorrect merger state State# %" PRIu32, ui32(Writer.GetState()));
}
void RunPhantomChecks() {
@@ -757,7 +757,7 @@ namespace NKikimr {
case TReplSstStreamWriter::EState::COLLECT:
break;
default:
- Y_FAIL("unexpected State# %" PRIu32, static_cast<ui32>(Writer.GetState()));
+ Y_ABORT("unexpected State# %" PRIu32, static_cast<ui32>(Writer.GetState()));
}
if (Writer.AddRecoveredBlob(front)) {
diff --git a/ydb/core/blobstorage/vdisk/repl/blobstorage_hullreplwritesst.h b/ydb/core/blobstorage/vdisk/repl/blobstorage_hullreplwritesst.h
index f3cc4d083e..31374d097d 100644
--- a/ydb/core/blobstorage/vdisk/repl/blobstorage_hullreplwritesst.h
+++ b/ydb/core/blobstorage/vdisk/repl/blobstorage_hullreplwritesst.h
@@ -107,14 +107,14 @@ namespace NKikimr {
break;
default:
- Y_FAIL("unexpected OutputState");
+ Y_ABORT("unexpected OutputState");
}
}
} else if (dynamic_cast<NPDisk::TEvChunkReserve*>(msg.get())) {
// we are issuing chunk allocation message and shall wait for it to finish
State = EState::NOT_READY;
} else {
- Y_FAIL("unexpected message type");
+ Y_ABORT("unexpected message type");
}
return msg;
@@ -203,7 +203,7 @@ namespace NKikimr {
break;
default:
- Y_FAIL("incorrect output state");
+ Y_ABORT("incorrect output state");
}
}
}
diff --git a/ydb/core/blobstorage/vdisk/repl/blobstorage_hullreplwritesst_ut.cpp b/ydb/core/blobstorage/vdisk/repl/blobstorage_hullreplwritesst_ut.cpp
index b70fd6304d..f38d872c6e 100644
--- a/ydb/core/blobstorage/vdisk/repl/blobstorage_hullreplwritesst_ut.cpp
+++ b/ydb/core/blobstorage/vdisk/repl/blobstorage_hullreplwritesst_ut.cpp
@@ -141,7 +141,7 @@ Y_UNIT_TEST_SUITE(HullReplWriteSst) {
writeMsgs.emplace_back(static_cast<NPDisk::TEvChunkWrite*>(msg.release()));
}
} else {
- Y_FAIL();
+ Y_ABORT();
}
break;
}
@@ -199,7 +199,7 @@ Y_UNIT_TEST_SUITE(HullReplWriteSst) {
}
default:
- Y_FAIL();
+ Y_ABORT();
}
}
}
diff --git a/ydb/core/blobstorage/vdisk/repl/blobstorage_repl.cpp b/ydb/core/blobstorage/vdisk/repl/blobstorage_repl.cpp
index 94a69c2fc4..6d1eec1109 100644
--- a/ydb/core/blobstorage/vdisk/repl/blobstorage_repl.cpp
+++ b/ydb/core/blobstorage/vdisk/repl/blobstorage_repl.cpp
@@ -286,7 +286,7 @@ namespace NKikimr {
break;
default:
- Y_FAIL("unexpected State# %s", StateToStr(State));
+ Y_ABORT("unexpected State# %s", StateToStr(State));
}
}
diff --git a/ydb/core/blobstorage/vdisk/repl/blobstorage_replproxy.cpp b/ydb/core/blobstorage/vdisk/repl/blobstorage_replproxy.cpp
index bbdb44cb3b..e51cf1314a 100644
--- a/ydb/core/blobstorage/vdisk/repl/blobstorage_replproxy.cpp
+++ b/ydb/core/blobstorage/vdisk/repl/blobstorage_replproxy.cpp
@@ -70,7 +70,7 @@ namespace NKikimr {
State = Error;
break;
default:
- Y_FAIL("Unexpected value: %d", portion.Status);
+ Y_ABORT("Unexpected value: %d", portion.Status);
}
Y_ABORT_UNLESS(!DataPortion.Valid());
@@ -358,7 +358,7 @@ namespace NKikimr {
case NKikimrProto::TRYLATER:
case NKikimrProto::TRYLATER_TIME:
case NKikimrProto::TRYLATER_SIZE:
- Y_FAIL("unexpected Status# %s from BS_QUEUE", EReplyStatus_Name(rec.GetStatus()).data());
+ Y_ABORT("unexpected Status# %s from BS_QUEUE", EReplyStatus_Name(rec.GetStatus()).data());
default:
++Stat.VDiskRespOther;
STLOG(PRI_DEBUG, BS_REPL, BSVR24, VDISKP(ReplCtx->VCtx->VDiskLogPrefix,
diff --git a/ydb/core/blobstorage/vdisk/scrub/restore_corrupted_blob_actor.cpp b/ydb/core/blobstorage/vdisk/scrub/restore_corrupted_blob_actor.cpp
index 2388e1c9ef..87b1113d5f 100644
--- a/ydb/core/blobstorage/vdisk/scrub/restore_corrupted_blob_actor.cpp
+++ b/ydb/core/blobstorage/vdisk/scrub/restore_corrupted_blob_actor.cpp
@@ -72,7 +72,7 @@ namespace NKikimr {
break;
case TBlobType::MemBlob:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blobstorage/vdisk/scrub/scrub_actor.cpp b/ydb/core/blobstorage/vdisk/scrub/scrub_actor.cpp
index 940fd05a78..6c21771c89 100644
--- a/ydb/core/blobstorage/vdisk/scrub/scrub_actor.cpp
+++ b/ydb/core/blobstorage/vdisk/scrub/scrub_actor.cpp
@@ -43,7 +43,7 @@ namespace NKikimr {
throw TExPoison();
default:
- Y_FAIL("unexpected event Type# 0x%08" PRIx32, type);
+ Y_ABORT("unexpected event Type# 0x%08" PRIx32, type);
}
}
diff --git a/ydb/core/blobstorage/vdisk/skeleton/blobstorage_monactors.cpp b/ydb/core/blobstorage/vdisk/skeleton/blobstorage_monactors.cpp
index f3afc8606f..28427f49d6 100644
--- a/ydb/core/blobstorage/vdisk/skeleton/blobstorage_monactors.cpp
+++ b/ydb/core/blobstorage/vdisk/skeleton/blobstorage_monactors.cpp
@@ -880,7 +880,7 @@ namespace NKikimr {
case NKikimrBlobStorage::StatDb:
return CreateStatDbMessageOK(dbStatType, pretty);
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
};
}
}
@@ -915,7 +915,7 @@ namespace NKikimr {
case NKikimrBlobStorage::StatHugeAction:
return CreateStatHugeMessage();
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
diff --git a/ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeleton.cpp b/ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeleton.cpp
index eb7fd45615..bf0b265411 100644
--- a/ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeleton.cpp
+++ b/ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeleton.cpp
@@ -821,7 +821,7 @@ namespace NKikimr {
// Add already constructed ssts
////////////////////////////////////////////////////////////////////////
void Handle(TEvAddBulkSst::TPtr &ev, const TActorContext &ctx) {
- Y_FAIL("not implemented yet");
+ Y_ABORT("not implemented yet");
const TLsnSeg seg = Db->LsnMngr->AllocLsnForHull(ev->Get()->Essence.GetLsnRange());
NPDisk::TCommitRecord commitRecord;
diff --git a/ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeletonfront.cpp b/ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeletonfront.cpp
index 603d1c4691..9b3880866f 100644
--- a/ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeletonfront.cpp
+++ b/ydb/core/blobstorage/vdisk/skeleton/blobstorage_skeletonfront.cpp
@@ -70,7 +70,7 @@ namespace NKikimr {
EVENT_TYPE(TEvVGetBarrier)
#undef EVENT_TYPE
}
- Y_FAIL("unsupported event type");
+ Y_ABORT("unsupported event type");
}
struct TUpdateInQueueTime {
@@ -400,7 +400,7 @@ namespace NKikimr {
case EInFlightBytes: return CalculateSignalLight(InFlightBytes, Max<ui64>(), yellow);
case EDelayedCount: return CalculateSignalLight(DelayedCount, 0, red);
case EDelayedBytes: return CalculateSignalLight(DelayedBytes, 0, red);
- default: Y_FAIL("Unexpected param");
+ default: Y_ABORT("Unexpected param");
}
}
@@ -856,7 +856,7 @@ namespace NKikimr {
Become(&TThis::StateFunc);
SendNotifications(ctx);
break;
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
}
}
@@ -1329,7 +1329,7 @@ namespace NKikimr {
HandleRequestWithQoS(ctx, ev, "TEvVPut", cost, *IntQueueHugePutsBackground);
break;
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
}
@@ -1356,7 +1356,7 @@ namespace NKikimr {
HandleRequestWithQoS(ctx, ev, "TEvVMultiPut", cost, *IntQueueHugePutsBackground);
break;
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
}
@@ -1381,7 +1381,7 @@ namespace NKikimr {
intQueueId = NKikimrBlobStorage::EVDiskInternalQueueId::IntLowRead;
break;
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
TIntQueueClass &queue = GetIntQueue(intQueueId);
HandleRequestWithQoS(ctx, ev, "TEvVGet", cost, queue);
@@ -1678,7 +1678,7 @@ namespace NKikimr {
case NKikimrBlobStorage::EVDiskQueueId::GetLowRead:
extQueue = &ExtQueueLowGets;
break;
- default: Y_FAIL("Unexpected case extQueueId# %" PRIu32, static_cast<ui32>(extQueueId));
+ default: Y_ABORT("Unexpected case extQueueId# %" PRIu32, static_cast<ui32>(extQueueId));
}
return *extQueue;
}
@@ -1707,7 +1707,7 @@ namespace NKikimr {
case NKikimrBlobStorage::EVDiskInternalQueueId::IntPutHugeBackground:
intQueue = IntQueueHugePutsBackground.get();
break;
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
return *intQueue;
}
diff --git a/ydb/core/blobstorage/vdisk/skeleton/blobstorage_syncfull.cpp b/ydb/core/blobstorage/vdisk/skeleton/blobstorage_syncfull.cpp
index 6481d50a46..47142e9387 100644
--- a/ydb/core/blobstorage/vdisk/skeleton/blobstorage_syncfull.cpp
+++ b/ydb/core/blobstorage/vdisk/skeleton/blobstorage_syncfull.cpp
@@ -113,7 +113,7 @@ namespace NKikimr {
Stage = NKikimrBlobStorage::Barriers;
pres = Process(ctx, FullSnap.BarriersSnap, KeyBarrier, FakeFilter);
break;
- default: Y_FAIL("Unexpected case: stage=%d", Stage);
+ default: Y_ABORT("Unexpected case: stage=%d", Stage);
}
bool finished = (bool)(pres & EmptyFlag) && Stage == NKikimrBlobStorage::Barriers;
diff --git a/ydb/core/blobstorage/vdisk/skeleton/skeleton_compactionstate.cpp b/ydb/core/blobstorage/vdisk/skeleton/skeleton_compactionstate.cpp
index d29a85fb86..3af43f13d8 100644
--- a/ydb/core/blobstorage/vdisk/skeleton/skeleton_compactionstate.cpp
+++ b/ydb/core/blobstorage/vdisk/skeleton/skeleton_compactionstate.cpp
@@ -63,7 +63,7 @@ namespace NKikimr {
case EHullDbType::LogoBlobs: req.CompactLogoBlobs = false; break;
case EHullDbType::Blocks: req.CompactBlocks = false; break;
case EHullDbType::Barriers: req.CompactBarriers = false; break;
- default: Y_FAIL("Unexpected case: %d", int(dbType));
+ default: Y_ABORT("Unexpected case: %d", int(dbType));
}
if (req.AllDone()) {
@@ -104,7 +104,7 @@ namespace NKikimr {
case TDbMon::DbMainPageLogoBlobs: traverse(extractLogoBlobs); break;
case TDbMon::DbMainPageBlocks: traverse(extractBlocks); break;
case TDbMon::DbMainPageBarriers: traverse(extractBarriers); break;
- default: Y_FAIL("Unxepected case");
+ default: Y_ABORT("Unxepected case");
}
// convert subId to database name
@@ -113,7 +113,7 @@ namespace NKikimr {
case TDbMon::DbMainPageLogoBlobs: return "LogoBlobs";
case TDbMon::DbMainPageBlocks: return "Blocks";
case TDbMon::DbMainPageBarriers: return "Barriers";
- default: Y_FAIL("Unxepected case");
+ default: Y_ABORT("Unxepected case");
}
};
diff --git a/ydb/core/blobstorage/vdisk/skeleton/skeleton_mon_dbmainpage.cpp b/ydb/core/blobstorage/vdisk/skeleton/skeleton_mon_dbmainpage.cpp
index 535c4daa95..4937830b31 100644
--- a/ydb/core/blobstorage/vdisk/skeleton/skeleton_mon_dbmainpage.cpp
+++ b/ydb/core/blobstorage/vdisk/skeleton/skeleton_mon_dbmainpage.cpp
@@ -33,7 +33,7 @@ namespace NKikimr {
} else if (str == "Barriers") {
return TDbMon::DbMainPageBarriers;
} else {
- Y_FAIL("Unexpected value: %s", str.data());
+ Y_ABORT("Unexpected value: %s", str.data());
}
}
@@ -105,7 +105,7 @@ namespace NKikimr {
} else if (ptr->SubRequestId == TDbMon::Defrag) {
DefragAnswer = ptr->Answer;
} else {
- Y_FAIL("unexpected SubRequestId# %d", int(ptr->SubRequestId));
+ Y_ABORT("unexpected SubRequestId# %d", int(ptr->SubRequestId));
}
if (HullCompactionAnswer && DefragAnswer) {
diff --git a/ydb/core/blobstorage/vdisk/skeleton/skeleton_oos_logic.cpp b/ydb/core/blobstorage/vdisk/skeleton/skeleton_oos_logic.cpp
index d9a24b5590..8cc8a2e69d 100644
--- a/ydb/core/blobstorage/vdisk/skeleton/skeleton_oos_logic.cpp
+++ b/ydb/core/blobstorage/vdisk/skeleton/skeleton_oos_logic.cpp
@@ -54,7 +54,7 @@ namespace NKikimr {
case AnubisOsirisPut: return "AnubisOsirisPut";
case RecoveredHugeBlob: return "RecoveredHugeBlob";
case DetectedPhantomBlob: return "DetectedPhantomBlob";
- case Count: Y_FAIL();
+ case Count: Y_ABORT();
}
}
@@ -151,7 +151,7 @@ namespace NKikimr {
return stat.NotAllow();
case NKikimrBlobStorage::TPDiskSpaceColor_E_TPDiskSpaceColor_E_INT_MIN_SENTINEL_DO_NOT_USE_:
case NKikimrBlobStorage::TPDiskSpaceColor_E_TPDiskSpaceColor_E_INT_MAX_SENTINEL_DO_NOT_USE_:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -189,7 +189,7 @@ namespace NKikimr {
return stat.NotAllow();
case NKikimrBlobStorage::TPDiskSpaceColor_E_TPDiskSpaceColor_E_INT_MIN_SENTINEL_DO_NOT_USE_:
case NKikimrBlobStorage::TPDiskSpaceColor_E_TPDiskSpaceColor_E_INT_MAX_SENTINEL_DO_NOT_USE_:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -241,7 +241,7 @@ namespace NKikimr {
return stat.NotAllow();
case NKikimrBlobStorage::TPDiskSpaceColor_E_TPDiskSpaceColor_E_INT_MIN_SENTINEL_DO_NOT_USE_:
case NKikimrBlobStorage::TPDiskSpaceColor_E_TPDiskSpaceColor_E_INT_MAX_SENTINEL_DO_NOT_USE_:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/blobstorage/vdisk/skeleton/skeleton_overload_handler.cpp b/ydb/core/blobstorage/vdisk/skeleton/skeleton_overload_handler.cpp
index 3c1a1b6a52..812bd2fad1 100644
--- a/ydb/core/blobstorage/vdisk/skeleton/skeleton_overload_handler.cpp
+++ b/ydb/core/blobstorage/vdisk/skeleton/skeleton_overload_handler.cpp
@@ -147,7 +147,7 @@ namespace NKikimr {
break;
}
default:
- Y_FAIL("unexpected event type in emergency queue(%" PRIu64 ")", (ui64)ev->GetTypeRewrite());
+ Y_ABORT("unexpected event type in emergency queue(%" PRIu64 ")", (ui64)ev->GetTypeRewrite());
}
}
};
diff --git a/ydb/core/blobstorage/vdisk/syncer/blobstorage_syncer.cpp b/ydb/core/blobstorage/vdisk/syncer/blobstorage_syncer.cpp
index d81cf775f0..d522210096 100644
--- a/ydb/core/blobstorage/vdisk/syncer/blobstorage_syncer.cpp
+++ b/ydb/core/blobstorage/vdisk/syncer/blobstorage_syncer.cpp
@@ -246,7 +246,7 @@ namespace NKikimr {
InconsistentState(ctx);
break;
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
@@ -469,7 +469,7 @@ namespace NKikimr {
case TPhaseVal::PhaseRecoverLostData:
// no SchedulerId
break;
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
// print out local info
diff --git a/ydb/core/blobstorage/vdisk/syncer/blobstorage_syncer_committer.cpp b/ydb/core/blobstorage/vdisk/syncer/blobstorage_syncer_committer.cpp
index 704db98ab4..ac380f7a14 100644
--- a/ydb/core/blobstorage/vdisk/syncer/blobstorage_syncer_committer.cpp
+++ b/ydb/core/blobstorage/vdisk/syncer/blobstorage_syncer_committer.cpp
@@ -80,7 +80,7 @@ namespace NKikimr {
Sds.Proto.MutableEntries(index)->MergeFrom(msg->VDiskEntry);
break;
}
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
}
diff --git a/ydb/core/blobstorage/vdisk/syncer/guid_firstrun.cpp b/ydb/core/blobstorage/vdisk/syncer/guid_firstrun.cpp
index b20165a991..f1bfed4b45 100644
--- a/ydb/core/blobstorage/vdisk/syncer/guid_firstrun.cpp
+++ b/ydb/core/blobstorage/vdisk/syncer/guid_firstrun.cpp
@@ -298,7 +298,7 @@ namespace NKikimr {
case EFirstRunStep::ACTION_WriteFinalLocally:
WriteFinalLocally(ctx);
break;
- default: Y_FAIL("Unexpected step: %s", EFirstRunStepToStr(startStep));
+ default: Y_ABORT("Unexpected step: %s", EFirstRunStepToStr(startStep));
}
}
@@ -518,7 +518,7 @@ namespace NKikimr {
}
case WaitForCommitter:
break;
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
}
diff --git a/ydb/core/blobstorage/vdisk/syncer/guid_recovery.cpp b/ydb/core/blobstorage/vdisk/syncer/guid_recovery.cpp
index 1bf467e2f3..53b753ea1a 100644
--- a/ydb/core/blobstorage/vdisk/syncer/guid_recovery.cpp
+++ b/ydb/core/blobstorage/vdisk/syncer/guid_recovery.cpp
@@ -168,7 +168,7 @@ namespace NKikimr {
case EDecision::Inconsistency:
str << " Explanation# \"" << Explanation << "\"";
break;
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
str << "]";
}
@@ -378,7 +378,7 @@ namespace NKikimr {
case TSyncVal::InProgress: return HandleQuorumInProgress(quorumDecision);
case TSyncVal::Final: return HandleQuorumFinal(quorumDecision);
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
@@ -415,7 +415,7 @@ namespace NKikimr {
finalQuorum.Update(x.VDiskIdShort);
break;
}
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
} else {
noAnswer++;
@@ -479,7 +479,7 @@ namespace NKikimr {
<< LocallyRecoveredState;
return TDecision::Inconsistency(str.Str());
}
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
}
@@ -501,7 +501,7 @@ namespace NKikimr {
return TDecision::LostData(step, guid, false);
}
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
break;
}
@@ -520,7 +520,7 @@ namespace NKikimr {
return CheckLocalAndRemoteGuid(quorumDecision, d);
}
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
break;
}
@@ -538,7 +538,7 @@ namespace NKikimr {
return CheckLocalAndRemoteGuid(quorumDecision, d);
}
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
break;
}
@@ -556,11 +556,11 @@ namespace NKikimr {
return CheckLocalAndRemoteGuid(quorumDecision, d);
}
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
break;
}
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
}
@@ -588,7 +588,7 @@ namespace NKikimr {
auto d = TDecision::Good(guid);
return CheckLocalAndRemoteGuid(quorumDecision, d);
}
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
}
@@ -751,7 +751,7 @@ namespace NKikimr {
Finish(ctx, *Decision);
break;
}
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
}
}
@@ -809,7 +809,7 @@ namespace NKikimr {
SettleDataLossPhase(ctx);
break;
}
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
}
@@ -875,7 +875,7 @@ namespace NKikimr {
break;
case PhaseSettleDataLoss:
break;
- default: Y_FAIL("Unexpected case");
+ default: Y_ABORT("Unexpected case");
}
}
diff --git a/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogformat.h b/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogformat.h
index c3498b7c45..db2192b8c9 100644
--- a/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogformat.h
+++ b/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogformat.h
@@ -124,7 +124,7 @@ namespace NKikimr {
case RecBlock: payloadSize = sizeof(TBlockRec); break;
case RecBarrier: payloadSize = sizeof(TBarrierRec); break;
case RecBlockV2: payloadSize = sizeof(TBlockRecV2); break;
- default: Y_FAIL("Unsupported type: RecType=%" PRIu64 " Lsn=%" PRIu64, (ui64)RecType, Lsn);
+ default: Y_ABORT("Unsupported type: RecType=%" PRIu64 " Lsn=%" PRIu64, (ui64)RecType, Lsn);
}
return sizeof(*this) + payloadSize;
}
@@ -169,7 +169,7 @@ namespace NKikimr {
case RecBlock: return GetBlock()->ToString();
case RecBarrier: return GetBarrier()->ToString();
case RecBlockV2: return GetBlockV2()->ToString();
- default: Y_FAIL("Unsupported type: RecType=%" PRIu64 " Lsn=%" PRIu64, (ui64)RecType, Lsn);
+ default: Y_ABORT("Unsupported type: RecType=%" PRIu64 " Lsn=%" PRIu64, (ui64)RecType, Lsn);
}
}
};
diff --git a/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgimpl.cpp b/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgimpl.cpp
index 72b857a6a6..5d79303f22 100644
--- a/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgimpl.cpp
+++ b/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgimpl.cpp
@@ -30,7 +30,7 @@ namespace NKikimr {
case Lz4Signature: return ECodec::Lz4;
case OrderedLz4Signature: return ECodec::OrderedLz4;
case CustomCodecSignature: return ECodec::CustomCodec;
- default: Y_FAIL("Unknown codec; signature# %" PRIu64, signature);
+ default: Y_ABORT("Unknown codec; signature# %" PRIu64, signature);
}
}
@@ -325,7 +325,7 @@ namespace NKikimr {
LogoBlobsColumns.reset(new TLogoBlobColumnsCustomCodec);
break;
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
diff --git a/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgreader.cpp b/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgreader.cpp
index f4c59ec890..e356f0a205 100644
--- a/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgreader.cpp
+++ b/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgreader.cpp
@@ -31,7 +31,7 @@ namespace NKikimr {
fblock2(it->GetBlockV2());
break;
default:
- Y_FAIL("Unknown RecType: %s", it->ToString().data());
+ Y_ABORT("Unknown RecType: %s", it->ToString().data());
}
}
}
@@ -177,7 +177,7 @@ namespace NKikimr {
Impl.reset(new TCustomCodecFragmentReader(data));
break;
default:
- Y_FAIL("Unknwon codec");
+ Y_ABORT("Unknwon codec");
}
}
diff --git a/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgwriter.h b/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgwriter.h
index a2cd6a2dda..a31582e83d 100644
--- a/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgwriter.h
+++ b/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogmsgwriter.h
@@ -100,7 +100,7 @@ namespace NKikimr {
Records.BlocksV2.emplace_back(*hdr->GetBlockV2(), Counter);
break;
default:
- Y_FAIL("Unexpected RecType# %" PRIu64, (ui64)hdr->RecType);
+ Y_ABORT("Unexpected RecType# %" PRIu64, (ui64)hdr->RecType);
}
DataSize += size;
++Counter;
diff --git a/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogneighbors.h b/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogneighbors.h
index f28d73b372..72561fb5e4 100644
--- a/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogneighbors.h
+++ b/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogneighbors.h
@@ -38,7 +38,7 @@ namespace NKikimr {
}
TSyncPos(IInputStream &) {
- Y_FAIL("Not supported");
+ Y_ABORT("Not supported");
}
};
diff --git a/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogreader.cpp b/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogreader.cpp
index a471ce639f..4f0d3e44d9 100644
--- a/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogreader.cpp
+++ b/ydb/core/blobstorage/vdisk/synclog/blobstorage_synclogreader.cpp
@@ -209,7 +209,7 @@ namespace NKikimr {
str << "SYNCLOG LOGIC ERROR: " << wno.Explanation
<< " " << InternalsToString(Ev->Get(), SnapPtr.Get(), DbBirthLsn);
LOG_ERROR(ctx, BS_SYNCLOG, str.Str());
- // Y_FAIL("%s", str.Str().data()); // TODO(alexvru): fix logic
+ // Y_ABORT("%s", str.Str().data()); // TODO(alexvru): fix logic
}
Finish(ctx, NKikimrProto::ERROR, 0, true);
}
@@ -249,7 +249,7 @@ namespace NKikimr {
ReadFromDisk(ctx);
break;
default:
- Y_FAIL("Unexpected value# %d", int(wno.WhatsNext));
+ Y_ABORT("Unexpected value# %d", int(wno.WhatsNext));
}
}
diff --git a/ydb/core/client/minikql_compile/mkql_compile_service.cpp b/ydb/core/client/minikql_compile/mkql_compile_service.cpp
index 3466110adc..5d734dcd05 100644
--- a/ydb/core/client/minikql_compile/mkql_compile_service.cpp
+++ b/ydb/core/client/minikql_compile/mkql_compile_service.cpp
@@ -93,7 +93,7 @@ public:
HFunc(NYql::TMiniKQLCompileActorEvents::TEvCompileResult, Handle);
cFunc(TEvents::TEvPoison::EventType, PassAway);
default:
- Y_FAIL("");
+ Y_ABORT("");
}
}
diff --git a/ydb/core/client/minikql_compile/yql_expr_minikql.cpp b/ydb/core/client/minikql_compile/yql_expr_minikql.cpp
index fb6bf335b4..0b845c1bb8 100644
--- a/ydb/core/client/minikql_compile/yql_expr_minikql.cpp
+++ b/ydb/core/client/minikql_compile/yql_expr_minikql.cpp
@@ -1500,7 +1500,7 @@ public:
switch (ev->GetTypeRewrite()) {
HFunc(IDbSchemeResolver::TEvents::TEvResolveTablesResult, Handle)
default:
- Y_FAIL("Unknown event");
+ Y_ABORT("Unknown event");
}
}
diff --git a/ydb/core/client/minikql_result_lib/objects.h b/ydb/core/client/minikql_result_lib/objects.h
index 4b5ae0da45..23eab54d76 100644
--- a/ydb/core/client/minikql_result_lib/objects.h
+++ b/ydb/core/client/minikql_result_lib/objects.h
@@ -29,14 +29,14 @@ template <typename T>
inline bool HasData(const TProtoValue& value, NScheme::TTypeId schemeType) {
Y_UNUSED(value);
Y_UNUSED(schemeType);
- Y_FAIL("Not scpecified type.");
+ Y_ABORT("Not scpecified type.");
}
template <typename T>
inline T GetData(const TProtoValue& value, NScheme::TTypeId schemeType) {
Y_UNUSED(value);
Y_UNUSED(schemeType);
- Y_FAIL("Not scpecified type.");
+ Y_ABORT("Not scpecified type.");
}
#include "data_funcs.inl"
diff --git a/ydb/core/client/server/grpc_server.cpp b/ydb/core/client/server/grpc_server.cpp
index dd4c96e7cd..030bc0ccdc 100644
--- a/ydb/core/client/server/grpc_server.cpp
+++ b/ydb/core/client/server/grpc_server.cpp
@@ -174,7 +174,7 @@ public:
try {
Finish(dynamic_cast<const TOut&>(resp), 0);
} catch (const std::bad_cast&) {
- Y_FAIL("unexpected response type generated");
+ Y_ABORT("unexpected response type generated");
}
}
@@ -182,7 +182,7 @@ public:
try {
Finish(dynamic_cast<const TOut&>(resp), 0);
} catch (const std::bad_cast&) {
- Y_FAIL("unexpected response type generated");
+ Y_ABORT("unexpected response type generated");
}
}
@@ -190,7 +190,7 @@ public:
try {
Finish(dynamic_cast<const TOut&>(resp), 0);
} catch (const std::bad_cast&) {
- Y_FAIL("unexpected response type generated");
+ Y_ABORT("unexpected response type generated");
}
}
@@ -198,7 +198,7 @@ public:
try {
Finish(dynamic_cast<const TOut&>(resp), 0);
} catch (const std::bad_cast&) {
- Y_FAIL("unexpected response type generated");
+ Y_ABORT("unexpected response type generated");
}
}
@@ -206,7 +206,7 @@ public:
try {
Finish(dynamic_cast<const TOut&>(resp), 0);
} catch (const std::bad_cast&) {
- Y_FAIL("unexpected response type generated");
+ Y_ABORT("unexpected response type generated");
}
}
diff --git a/ydb/core/client/server/msgbus_server.cpp b/ydb/core/client/server/msgbus_server.cpp
index a2c73dcb29..a4ff8b6279 100644
--- a/ydb/core/client/server/msgbus_server.cpp
+++ b/ydb/core/client/server/msgbus_server.cpp
@@ -83,7 +83,7 @@ public:
try { \
static_cast<TYPE&>(*Message).Record = dynamic_cast<const TYPE::RecordType&>(*RequestContext->GetRequest()); \
} catch (const std::bad_cast&) { \
- Y_FAIL("incorrect request message type"); \
+ Y_ABORT("incorrect request message type"); \
} \
return;
@@ -141,7 +141,7 @@ public:
#undef MTYPE
}
- Y_FAIL();
+ Y_ABORT();
}
~TImplGRpc() {
@@ -183,7 +183,7 @@ public:
REPLY_OPTION(TBusConsoleResponse)
default:
- Y_FAIL("unexpected response type %" PRIu32, type);
+ Y_ABORT("unexpected response type %" PRIu32, type);
}
RequestContext = nullptr;
}
diff --git a/ydb/core/client/server/msgbus_server_cms.cpp b/ydb/core/client/server/msgbus_server_cms.cpp
index 5bed18c478..7126d1f3fd 100644
--- a/ydb/core/client/server/msgbus_server_cms.cpp
+++ b/ydb/core/client/server/msgbus_server_cms.cpp
@@ -281,7 +281,7 @@ public:
CFunc(TEvTabletPipe::EvClientDestroyed, Undelivered);
HFunc(TEvTabletPipe::TEvClientConnected, Handle);
default:
- Y_FAIL("TCmsRequestActor::MainState unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("TCmsRequestActor::MainState unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(),
ev->ToString().data());
}
diff --git a/ydb/core/client/server/msgbus_server_console.cpp b/ydb/core/client/server/msgbus_server_console.cpp
index 83490049e6..0d753f54fc 100644
--- a/ydb/core/client/server/msgbus_server_console.cpp
+++ b/ydb/core/client/server/msgbus_server_console.cpp
@@ -342,7 +342,7 @@ public:
CFunc(TEvTabletPipe::EvClientDestroyed, Undelivered);
HFunc(TEvTabletPipe::TEvClientConnected, Handle);
default:
- Y_FAIL("TConsoleRequestActor::MainState unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("TConsoleRequestActor::MainState unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(),
ev->ToString().data());
}
diff --git a/ydb/core/client/server/msgbus_server_persqueue.cpp b/ydb/core/client/server/msgbus_server_persqueue.cpp
index 19008a8f76..bca40b7de8 100644
--- a/ydb/core/client/server/msgbus_server_persqueue.cpp
+++ b/ydb/core/client/server/msgbus_server_persqueue.cpp
@@ -307,7 +307,7 @@ void TPersQueueBaseRequestProcessor::GetTopicsListOrThrow(
void TPersQueueBaseRequestProcessor::Handle(
NPqMetaCacheV2::TEvPqNewMetaCache::TEvDescribeTopicsResponse::TPtr&, const TActorContext&
) {
- Y_FAIL();
+ Y_ABORT();
}
void TPersQueueBaseRequestProcessor::Handle(
@@ -883,7 +883,7 @@ public:
return true;
}
- Y_FAIL("UNKNOWN request");
+ Y_ABORT("UNKNOWN request");
}
void Handle(TEvPersQueue::TEvResponse::TPtr& ev, const TActorContext& ctx) {
diff --git a/ydb/core/client/server/msgbus_server_pq_metacache.cpp b/ydb/core/client/server/msgbus_server_pq_metacache.cpp
index f97875db9b..5fd43ef351 100644
--- a/ydb/core/client/server/msgbus_server_pq_metacache.cpp
+++ b/ydb/core/client/server/msgbus_server_pq_metacache.cpp
@@ -87,7 +87,7 @@ public:
UseLbAccountAlias = metaCacheConfig.GetUseLbAccountAlias();
DbRoot = metaCacheConfig.GetLbUserDatabaseRoot();
if (!UseLbAccountAlias) {
- Y_FAIL("Not supported");
+ Y_ABORT("Not supported");
}
if (AppData(ctx)->PQConfig.GetTopicsAreFirstClassCitizen()) {
@@ -266,7 +266,7 @@ private:
case EQueryType::EGetTopics:
return HandleGetTopicsResult(ev, ctx);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/client/server/msgbus_server_request.cpp b/ydb/core/client/server/msgbus_server_request.cpp
index dfcb48e62a..4eb815a6a5 100644
--- a/ydb/core/client/server/msgbus_server_request.cpp
+++ b/ydb/core/client/server/msgbus_server_request.cpp
@@ -237,7 +237,7 @@ bool TMessageBusServerRequest::AllRequestsCompleted(const TActorContext& ctx) {
if (transaction.HasMiniKQLTransaction())
return AllRequestsCompletedMKQL(ctx);
else
- Y_FAIL("Unexpected transaction type");
+ Y_ABORT("Unexpected transaction type");
}
bool TMessageBusServerRequest::AllRequestsCompletedMKQL(const TActorContext& ctx) {
@@ -272,7 +272,7 @@ bool TMessageBusServerRequest::AllRequestsCompletedMKQL(const TActorContext& ctx
return true;
}
default:
- Y_FAIL("Unknown mkqlTxMode.");
+ Y_ABORT("Unknown mkqlTxMode.");
}
}
diff --git a/ydb/core/cms/api_adapters.cpp b/ydb/core/cms/api_adapters.cpp
index 6e809bbc14..6384cf59a4 100644
--- a/ydb/core/cms/api_adapters.cpp
+++ b/ydb/core/cms/api_adapters.cpp
@@ -26,7 +26,7 @@ namespace {
case Ydb::Maintenance::AVAILABILITY_MODE_FORCE:
return NKikimrCms::MODE_FORCE_RESTART;
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
@@ -39,7 +39,7 @@ namespace {
case NKikimrCms::MODE_FORCE_RESTART:
return Ydb::Maintenance::AVAILABILITY_MODE_FORCE;
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
@@ -154,7 +154,7 @@ class TListClusterNodes: public TAdapterActor<
case NKikimrCms::DOWN:
return Ydb::Maintenance::ITEM_STATE_DOWN;
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
@@ -362,7 +362,7 @@ class TCreateMaintenanceTask: public TPermissionResponseProcessor<
cmsAction.SetHost(scope.host());
break;
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
@@ -385,7 +385,7 @@ class TCreateMaintenanceTask: public TPermissionResponseProcessor<
if (action.has_lock_action()) {
ConvertAction(action.lock_action(), *cmsRequest.AddActions());
} else {
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
}
diff --git a/ydb/core/cms/cms.cpp b/ydb/core/cms/cms.cpp
index 27fd8457f9..2e5620c91a 100644
--- a/ydb/core/cms/cms.cpp
+++ b/ydb/core/cms/cms.cpp
@@ -1345,7 +1345,7 @@ void TCms::ProcessRequest(TAutoPtr<IEventHandle> &ev)
HFuncTraced(TEvCms::TEvGetClusterInfoRequest, Handle);
default:
- Y_FAIL("Unexpected request type");
+ Y_ABORT("Unexpected request type");
}
}
diff --git a/ydb/core/cms/console/config_helpers.cpp b/ydb/core/cms/console/config_helpers.cpp
index 9601060c66..3fbdbdbc4b 100644
--- a/ydb/core/cms/console/config_helpers.cpp
+++ b/ydb/core/cms/console/config_helpers.cpp
@@ -241,7 +241,7 @@ public:
NTabletPipe::SendData(ctx, Pipe, request.Release(), Cookie);
} else {
- Y_FAIL("unknown action");
+ Y_ABORT("unknown action");
}
}
@@ -262,7 +262,7 @@ public:
else if (Action == EAction::REMOVE_SUBSCRIPTION)
SendSubscriptionRequest(ctx);
else
- Y_FAIL("unknown action");
+ Y_ABORT("unknown action");
}
void Handle(TEvConsole::TEvAddConfigSubscriptionResponse::TPtr &ev, const TActorContext &ctx) {
@@ -350,7 +350,7 @@ public:
HFunc(TEvents::TEvUndelivered, Handle);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
diff --git a/ydb/core/cms/console/configs_cache.h b/ydb/core/cms/console/configs_cache.h
index d0a774acc0..012d20e8ea 100644
--- a/ydb/core/cms/console/configs_cache.h
+++ b/ydb/core/cms/console/configs_cache.h
@@ -30,7 +30,7 @@ public:
HFuncTraced(TEvConsole::TEvConfigSubscriptionError, Handle);
HFuncTraced(TEvents::TEvPoisonPill, Handle);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
}
}
diff --git a/ydb/core/cms/console/configs_dispatcher.cpp b/ydb/core/cms/console/configs_dispatcher.cpp
index 7f20aabaf6..65e7f2c208 100644
--- a/ydb/core/cms/console/configs_dispatcher.cpp
+++ b/ydb/core/cms/console/configs_dispatcher.cpp
@@ -211,7 +211,7 @@ public:
// Pretend we got this
hFuncTraced(TEvConsole::TEvConfigNotificationRequest, Handle);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
@@ -750,7 +750,7 @@ void TConfigsDispatcher::Handle(TEvConsole::TEvConfigSubscriptionError::TPtr &ev
{
// The only reason we can get this response is ambiguous domain
// So it is okay to fail here
- Y_FAIL("Can't start Configs Dispatcher: %s",
+ Y_ABORT("Can't start Configs Dispatcher: %s",
ev->Get()->Record.GetReason().c_str());
}
@@ -762,7 +762,7 @@ void TConfigsDispatcher::Handle(TEvConfigsDispatcher::TEvGetConfigRequest::TPtr
if (!DYNAMIC_KINDS.contains(kind)) {
TStringStream sstr;
sstr << static_cast<NKikimrConsole::TConfigItem::EKind>(kind);
- Y_FAIL("unexpected kind in GetConfigRequest: %s", sstr.Str().data());
+ Y_ABORT("unexpected kind in GetConfigRequest: %s", sstr.Str().data());
}
}
@@ -784,7 +784,7 @@ void TConfigsDispatcher::Handle(TEvConfigsDispatcher::TEvSetConfigSubscriptionRe
if (!DYNAMIC_KINDS.contains(kind)) {
TStringStream sstr;
sstr << static_cast<NKikimrConsole::TConfigItem::EKind>(kind);
- Y_FAIL("unexpected kind in SetConfigSubscriptionRequest: %s", sstr.Str().data());
+ Y_ABORT("unexpected kind in SetConfigSubscriptionRequest: %s", sstr.Str().data());
}
if (NON_YAML_KINDS.contains(kind)) {
@@ -795,7 +795,7 @@ void TConfigsDispatcher::Handle(TEvConfigsDispatcher::TEvSetConfigSubscriptionRe
}
if (yamlKinds && nonYamlKinds) {
- Y_FAIL("both yaml and non yaml kinds in SetConfigSubscriptionRequest");
+ Y_ABORT("both yaml and non yaml kinds in SetConfigSubscriptionRequest");
}
auto kinds = KindsToBitMap(ev->Get()->ConfigItemKinds);
diff --git a/ydb/core/cms/console/console_configs_manager.cpp b/ydb/core/cms/console/console_configs_manager.cpp
index 3ceed6a7b3..88d2f46ebe 100644
--- a/ydb/core/cms/console/console_configs_manager.cpp
+++ b/ydb/core/cms/console/console_configs_manager.cpp
@@ -720,7 +720,7 @@ void TConfigsManager::Handle(TEvConsole::TEvResolveAllConfigRequest::TPtr &ev, c
case NYamlConfig::TLabel::EType::Empty:
return Ydb::DynamicConfig::YamlLabelExt::EMPTY;
default:
- Y_FAIL("unexpected enum value");
+ Y_ABORT("unexpected enum value");
}
};
diff --git a/ydb/core/cms/console/console_configs_manager.h b/ydb/core/cms/console/console_configs_manager.h
index 7bd1ff171c..c05519b51d 100644
--- a/ydb/core/cms/console/console_configs_manager.h
+++ b/ydb/core/cms/console/console_configs_manager.h
@@ -208,7 +208,7 @@ private:
CFunc(TEvPrivate::EvCleanupLog, CleanupLog);
default:
- Y_FAIL("TConfigsManager::StateWork unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("TConfigsManager::StateWork unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
}
}
diff --git a/ydb/core/cms/console/console_configs_provider.cpp b/ydb/core/cms/console/console_configs_provider.cpp
index 5893dfc60a..e4c0aa7e78 100644
--- a/ydb/core/cms/console/console_configs_provider.cpp
+++ b/ydb/core/cms/console/console_configs_provider.cpp
@@ -142,7 +142,7 @@ public:
HFunc(TEvTabletPipe::TEvClientDestroyed, Handle);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
@@ -282,7 +282,7 @@ public:
IgnoreFunc(TEvInterconnect::TEvNodeConnected);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
@@ -326,7 +326,7 @@ public:
IgnoreFunc(TEvInterconnect::TEvNodeConnected);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
diff --git a/ydb/core/cms/console/console_configs_provider.h b/ydb/core/cms/console/console_configs_provider.h
index e247ef4b90..7647616cb9 100644
--- a/ydb/core/cms/console/console_configs_provider.h
+++ b/ydb/core/cms/console/console_configs_provider.h
@@ -194,7 +194,7 @@ private:
CFunc(TEvents::TSystem::PoisonPill, HandlePoison);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
diff --git a/ydb/core/cms/console/console_configs_subscriber.cpp b/ydb/core/cms/console/console_configs_subscriber.cpp
index 518594d19a..6ef0ea8068 100644
--- a/ydb/core/cms/console/console_configs_subscriber.cpp
+++ b/ydb/core/cms/console/console_configs_subscriber.cpp
@@ -106,7 +106,7 @@ public:
HFuncTraced(TEvents::TEvPoisonPill, Handle);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
}
}
diff --git a/ydb/core/cms/console/console_tenants_manager.cpp b/ydb/core/cms/console/console_tenants_manager.cpp
index 9de6268bd9..31b5c001be 100644
--- a/ydb/core/cms/console/console_tenants_manager.cpp
+++ b/ydb/core/cms/console/console_tenants_manager.cpp
@@ -323,7 +323,7 @@ public:
HFunc(TEvTabletPipe::TEvClientDestroyed, Handle);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
@@ -336,7 +336,7 @@ public:
HFunc(TEvTabletPipe::TEvClientDestroyed, Handle);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
@@ -349,7 +349,7 @@ public:
HFunc(TEvTabletPipe::TEvClientDestroyed, Handle);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
@@ -362,7 +362,7 @@ public:
HFunc(TEvTabletPipe::TEvClientDestroyed, Handle);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
@@ -878,7 +878,7 @@ public:
HFunc(TEvTxUserProxy::TEvProposeTransactionStatus, HandleSubdomain);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
@@ -891,7 +891,7 @@ public:
HFunc(TEvTabletPipe::TEvClientDestroyed, Handle);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
@@ -2021,7 +2021,7 @@ void TTenantsManager::ProcessTenantActions(TTenant::TPtr tenant, const TActorCon
} else if (tenant->State == TTenant::REMOVING_POOLS) {
DeleteTenantPools(tenant, ctx);
} else {
- Y_FAIL("unexpected tenant state %u", (ui32)tenant->State);
+ Y_ABORT("unexpected tenant state %u", (ui32)tenant->State);
}
}
@@ -2130,7 +2130,7 @@ void TTenantsManager::SendTenantNotifications(TTenant::TPtr tenant,
else if (action == TTenant::REMOVE)
Counters.Inc(code, COUNTER_REMOVE_RESPONSES);
else
- Y_FAIL("unexpected action value (%" PRIu32 ")", static_cast<ui32>(action));
+ Y_ABORT("unexpected action value (%" PRIu32 ")", static_cast<ui32>(action));
}
tenant->Subscribers.clear();
}
diff --git a/ydb/core/cms/console/console_tenants_manager.h b/ydb/core/cms/console/console_tenants_manager.h
index bf5ad34cdf..4d4233813a 100644
--- a/ydb/core/cms/console/console_tenants_manager.h
+++ b/ydb/core/cms/console/console_tenants_manager.h
@@ -963,7 +963,7 @@ public:
HFuncTraced(TEvTenantSlotBroker::TEvTenantState, Handle);
default:
- Y_FAIL("TTenantsManager::StateWork unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("TTenantsManager::StateWork unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
}
}
diff --git a/ydb/core/cms/console/immediate_controls_configurator.cpp b/ydb/core/cms/console/immediate_controls_configurator.cpp
index bbb2d2027e..1c3367e451 100644
--- a/ydb/core/cms/console/immediate_controls_configurator.cpp
+++ b/ydb/core/cms/console/immediate_controls_configurator.cpp
@@ -31,7 +31,7 @@ public:
IgnoreFunc(TEvConfigsDispatcher::TEvSetConfigSubscriptionResponse);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
diff --git a/ydb/core/cms/console/log_settings_configurator.cpp b/ydb/core/cms/console/log_settings_configurator.cpp
index 11e09e3f30..54b7475654 100644
--- a/ydb/core/cms/console/log_settings_configurator.cpp
+++ b/ydb/core/cms/console/log_settings_configurator.cpp
@@ -43,7 +43,7 @@ public:
IgnoreFunc(TEvConfigsDispatcher::TEvSetConfigSubscriptionResponse);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
diff --git a/ydb/core/cms/console/modifications_validator.cpp b/ydb/core/cms/console/modifications_validator.cpp
index f891058f36..4fff4fad87 100644
--- a/ydb/core/cms/console/modifications_validator.cpp
+++ b/ydb/core/cms/console/modifications_validator.cpp
@@ -268,7 +268,7 @@ TModificationsValidator::ComputeAffectedConfigs(const TDynBitMap &kinds,
}
} else {
if (ValidationLevel == NKikimrConsole::VALIDATE_DOMAIN) {
- Y_FAIL("Trying to validate unmodified kinds");
+ Y_ABORT("Trying to validate unmodified kinds");
} else {
// If tenant was modified but it has no more config items in
// the resulting config index then its config is equal to
diff --git a/ydb/core/cms/console/shared_cache_configurator.cpp b/ydb/core/cms/console/shared_cache_configurator.cpp
index 55e8d6972d..a1947dc70e 100644
--- a/ydb/core/cms/console/shared_cache_configurator.cpp
+++ b/ydb/core/cms/console/shared_cache_configurator.cpp
@@ -71,7 +71,7 @@ public:
IgnoreFunc(TEvConfigsDispatcher::TEvSetConfigSubscriptionResponse);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
diff --git a/ydb/core/cms/console/util/config_index.cpp b/ydb/core/cms/console/util/config_index.cpp
index 0dc4232af0..75d620fbaa 100644
--- a/ydb/core/cms/console/util/config_index.cpp
+++ b/ydb/core/cms/console/util/config_index.cpp
@@ -30,7 +30,7 @@ TUsageScope::TUsageScope(const NKikimrConsole::TUsageScope &scope,
case NKikimrConsole::TUsageScope::FILTER_NOT_SET:
break;
default:
- Y_FAIL("unexpected usage scope filter");
+ Y_ABORT("unexpected usage scope filter");
}
}
@@ -257,7 +257,7 @@ void TScopedConfig::MergeItem(TConfigItem::TPtr item,
else if (item->MergeStrategy == NKikimrConsole::TConfigItem::MERGE_OVERWRITE_REPEATED)
MergeMessageOverwriteRepeated(config, item->Config);
else
- Y_FAIL("unexpected merge strategy %d", static_cast<int>(item->MergeStrategy));
+ Y_ABORT("unexpected merge strategy %d", static_cast<int>(item->MergeStrategy));
if (addVersion) {
auto vItem = config.MutableVersion()->AddItems();
@@ -363,7 +363,7 @@ void TConfigIndex::CollectItemsByScope(const NKikimrConsole::TUsageScope &scope,
CollectItemsByTenantAndNodeType("", "", kinds, candidates);
break;
default:
- Y_FAIL("unsupported filter case");
+ Y_ABORT("unsupported filter case");
}
for (auto &item : candidates)
diff --git a/ydb/core/cms/erasure_checkers.cpp b/ydb/core/cms/erasure_checkers.cpp
index 48cbe9fd6c..da7971860d 100644
--- a/ydb/core/cms/erasure_checkers.cpp
+++ b/ydb/core/cms/erasure_checkers.cpp
@@ -244,7 +244,7 @@ TSimpleSharedPtr<IErasureCounter> CreateErasureCounter(TErasureType::EErasureSpe
case TErasureType::ErasureMirror3dc:
return TSimpleSharedPtr<IErasureCounter>(new TMirror3dcCounter(vdisk, groupId));
default:
- Y_FAIL("Unknown erasure type: %d", es);
+ Y_ABORT("Unknown erasure type: %d", es);
}
}
diff --git a/ydb/core/cms/node_checkers.cpp b/ydb/core/cms/node_checkers.cpp
index b13ef5e3e6..33c09077f5 100644
--- a/ydb/core/cms/node_checkers.cpp
+++ b/ydb/core/cms/node_checkers.cpp
@@ -18,7 +18,7 @@ TNodesLimitsCounterBase::ENodeState INodesChecker::NodeState(NKikimrCms::EState
case NKikimrCms::RESTART:
return NODE_STATE_RESTART;
default:
- Y_FAIL("Unknown EState");
+ Y_ABORT("Unknown EState");
}
}
@@ -184,7 +184,7 @@ bool TSysTabletsNodesCounter::TryToLockNode(ui32 nodeId, NKikimrCms::EAvailabili
}
break;
default:
- Y_FAIL("Unknown availability mode");
+ Y_ABORT("Unknown availability mode");
}
reason = TStringBuilder() << "Cannot lock node '" << nodeId << "'"
diff --git a/ydb/core/cms/sentinel.cpp b/ydb/core/cms/sentinel.cpp
index 1f0b0538be..c4773d3636 100644
--- a/ydb/core/cms/sentinel.cpp
+++ b/ydb/core/cms/sentinel.cpp
@@ -361,7 +361,7 @@ class TConfigUpdater: public TUpdaterBase<TEvSentinel::TEvConfigUpdated, TConfig
case RetryCookie::CMS:
return RequestCMSClusterState();
default:
- Y_FAIL("Unexpected case");
+ Y_ABORT("Unexpected case");
}
}
diff --git a/ydb/core/cms/walle_create_task_adapter.cpp b/ydb/core/cms/walle_create_task_adapter.cpp
index 3a761cc04a..c1a2866e37 100644
--- a/ydb/core/cms/walle_create_task_adapter.cpp
+++ b/ydb/core/cms/walle_create_task_adapter.cpp
@@ -178,7 +178,7 @@ private:
action.SetType(TAction::SHUTDOWN_HOST);
action.SetDuration(TDuration::Max().GetValue());
} else
- Y_FAIL("Unknown action");
+ Y_ABORT("Unknown action");
for (auto &host : task.GetHosts()) {
auto &hostAction = *request->Record.AddActions();
diff --git a/ydb/core/driver_lib/cli_utils/cli_cmd_config.h b/ydb/core/driver_lib/cli_utils/cli_cmd_config.h
index bb0b69dbcb..5a9b832051 100644
--- a/ydb/core/driver_lib/cli_utils/cli_cmd_config.h
+++ b/ydb/core/driver_lib/cli_utils/cli_cmd_config.h
@@ -37,7 +37,7 @@ namespace NDriverClient {
}
default:
- Y_FAIL("unexpected reply message type");
+ Y_ABORT("unexpected reply message type");
}
}
return data.GetTransportStatus();
@@ -45,7 +45,7 @@ namespace NDriverClient {
if (const auto& conf = ClientConfig) {
return std::visit(std::move(visitor), *conf);
} else {
- Y_FAIL("Client configuration is not provided");
+ Y_ABORT("Client configuration is not provided");
}
}
};
diff --git a/ydb/core/driver_lib/cli_utils/cli_cmds_cms.cpp b/ydb/core/driver_lib/cli_utils/cli_cmds_cms.cpp
index 8d8e54af65..14a68e0f80 100644
--- a/ydb/core/driver_lib/cli_utils/cli_cmds_cms.cpp
+++ b/ydb/core/driver_lib/cli_utils/cli_cmds_cms.cpp
@@ -360,7 +360,7 @@ public:
*action.AddDevices() = param;
break;
default:
- Y_FAIL("Unknown free arg field");
+ Y_ABORT("Unknown free arg field");
}
}
if (Duration)
@@ -380,7 +380,7 @@ private:
case FF_DEVICE:
return "device";
default:
- Y_FAIL("Unknown free arg field");
+ Y_ABORT("Unknown free arg field");
}
}
@@ -395,7 +395,7 @@ private:
case FF_DEVICE:
return "Device name";
default:
- Y_FAIL("Unknown free arg field");
+ Y_ABORT("Unknown free arg field");
}
}
};
diff --git a/ydb/core/driver_lib/cli_utils/cli_cmds_get.cpp b/ydb/core/driver_lib/cli_utils/cli_cmds_get.cpp
index f659360087..73c444474f 100644
--- a/ydb/core/driver_lib/cli_utils/cli_cmds_get.cpp
+++ b/ydb/core/driver_lib/cli_utils/cli_cmds_get.cpp
@@ -70,7 +70,7 @@ public:
}
}
- Y_FAIL();
+ Y_ABORT();
};
return MessageBusCall<TRequest, TResponse>(config, request, callback);
diff --git a/ydb/core/driver_lib/cli_utils/cli_cmds_root.cpp b/ydb/core/driver_lib/cli_utils/cli_cmds_root.cpp
index 945c33afc8..8cadc7e3ee 100644
--- a/ydb/core/driver_lib/cli_utils/cli_cmds_root.cpp
+++ b/ydb/core/driver_lib/cli_utils/cli_cmds_root.cpp
@@ -65,7 +65,7 @@ public:
}
break;
case TCommandConfig::EServerType::MessageBus:
- Y_FAIL("MessageBus is no longer supported");
+ Y_ABORT("MessageBus is no longer supported");
break;
}
}
diff --git a/ydb/core/driver_lib/cli_utils/cli_keyvalue.cpp b/ydb/core/driver_lib/cli_utils/cli_keyvalue.cpp
index 08c608dc19..e65fbdda1e 100644
--- a/ydb/core/driver_lib/cli_utils/cli_keyvalue.cpp
+++ b/ydb/core/driver_lib/cli_utils/cli_keyvalue.cpp
@@ -156,7 +156,7 @@ int KeyValueRequest(TCommandConfig &cmdConf, int argc, char **argv) {
Y_ABORT_UNLESS(response.GetConcatResult(0).HasStatus());
Y_ABORT_UNLESS(response.GetConcatResult(0).GetStatus() == NKikimrProto::OK);
} else {
- Y_FAIL("unexpected case");
+ Y_ABORT("unexpected case");
}
} else {
TString str;
diff --git a/ydb/core/driver_lib/run/kikimr_services_initializers.cpp b/ydb/core/driver_lib/run/kikimr_services_initializers.cpp
index d1b7bf3d80..292fea3138 100644
--- a/ydb/core/driver_lib/run/kikimr_services_initializers.cpp
+++ b/ydb/core/driver_lib/run/kikimr_services_initializers.cpp
@@ -347,7 +347,7 @@ void AddExecutorPool(
break;
}
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -1077,7 +1077,7 @@ void TLocalServiceInitializer::InitializeServices(
TTenantPoolConfig::TPtr tenantPoolConfig = new TTenantPoolConfig(Config.GetTenantPoolConfig(), localConfig);
if (!tenantPoolConfig->IsEnabled && !tenantPoolConfig->StaticSlots.empty())
- Y_FAIL("Tenant slots are not allowed in disabled pool");
+ Y_ABORT("Tenant slots are not allowed in disabled pool");
setup->LocalServices.push_back(std::make_pair(MakeTenantPoolRootID(),
TActorSetupCmd(CreateTenantPool(tenantPoolConfig), TMailboxType::ReadAsFilled, 0)));
@@ -1236,7 +1236,7 @@ void TResourceBrokerInitializer::InitializeServices(
NKikimrResourceBroker::TResourceBrokerConfig config = NResourceBroker::MakeDefaultConfig();
if (Config.HasBootstrapConfig() && Config.GetBootstrapConfig().HasCompactionBroker()) {
- Y_FAIL("Legacy CompactionBroker configuration is no longer supported");
+ Y_ABORT("Legacy CompactionBroker configuration is no longer supported");
}
if (Config.HasBootstrapConfig() && Config.GetBootstrapConfig().HasResourceBroker()) {
diff --git a/ydb/core/driver_lib/run/main.cpp b/ydb/core/driver_lib/run/main.cpp
index 9a443527fc..e0d093c901 100644
--- a/ydb/core/driver_lib/run/main.cpp
+++ b/ydb/core/driver_lib/run/main.cpp
@@ -165,7 +165,7 @@ int MainRun(const TKikimrRunConfig& runConfig, std::shared_ptr<TModuleFactories>
case EDM_ACTORSYS_PERFTEST:
return NDriverClient::ActorsysPerfTest(cmdConf, argc, argv);
default:
- Y_FAIL("Not Happens");
+ Y_ABORT("Not Happens");
}
}
} // NKikimr
diff --git a/ydb/core/driver_lib/run/run.cpp b/ydb/core/driver_lib/run/run.cpp
index 321cefb3b1..10906a8157 100644
--- a/ydb/core/driver_lib/run/run.cpp
+++ b/ydb/core/driver_lib/run/run.cpp
@@ -690,7 +690,7 @@ void TKikimrRunner::InitializeGRpc(const TKikimrRunConfig& runConfig) {
result.GetValue();
}
catch (const std::exception& ex) {
- Y_FAIL("Unable to prepare GRpc service: %s", ex.what());
+ Y_ABORT("Unable to prepare GRpc service: %s", ex.what());
}
}
else {
@@ -1144,7 +1144,7 @@ void TKikimrRunner::InitializeLogSettings(const TKikimrRunConfig& runConfig)
} else if (logConfig.GetFormat() == "json") {
LogSettings->Format = NLog::TSettings::JSON_FORMAT;
} else {
- Y_FAIL("Unknown log format: \"%s\"", logConfig.GetFormat().data());
+ Y_ABORT("Unknown log format: \"%s\"", logConfig.GetFormat().data());
}
if (logConfig.HasAllowDropEntries()) {
diff --git a/ydb/core/driver_lib/version/version.cpp b/ydb/core/driver_lib/version/version.cpp
index db810b89a6..b9d5f4027a 100644
--- a/ydb/core/driver_lib/version/version.cpp
+++ b/ydb/core/driver_lib/version/version.cpp
@@ -507,7 +507,7 @@ TString GetTagString() {
bool TCompatibilityInfo::CompleteFromTag(NKikimrConfig::TCurrentCompatibilityInfo& current) {
if (current.GetApplication() == "trunk") {
- Y_FAIL("Cannot complete trunk version");
+ Y_ABORT("Cannot complete trunk version");
}
TString tag = GetTagString();
@@ -561,7 +561,7 @@ void CheckVersionTag() {
const char* arcadia_url = GetArcadiaSourceUrl();
if ((branch.StartsWith("releases/") || branch.StartsWith("tags/releases/")) && VERSION->Tag == "trunk") {
- Y_FAIL("release branch %s with ARCADIA_SOURCE_URL# %s contains VersionTag# trunk", branch.data(), arcadia_url);
+ Y_ABORT("release branch %s with ARCADIA_SOURCE_URL# %s contains VersionTag# trunk", branch.data(), arcadia_url);
}
}
}
diff --git a/ydb/core/engine/minikql/flat_local_tx_minikql.h b/ydb/core/engine/minikql/flat_local_tx_minikql.h
index 812c2ba305..71f197789a 100644
--- a/ydb/core/engine/minikql/flat_local_tx_minikql.h
+++ b/ydb/core/engine/minikql/flat_local_tx_minikql.h
@@ -64,7 +64,7 @@ public:
virtual void ResolveTables(const TVector<TTable>& tables, NActors::TActorId responseTo) override {
Y_UNUSED(tables);
Y_UNUSED(responseTo);
- Y_FAIL("Not implemented for local resolve.");
+ Y_ABORT("Not implemented for local resolve.");
}
private:
const NTable::TScheme& Scheme;
@@ -350,7 +350,7 @@ class TFlatLocalMiniKQL : public NTabletFlatExecutor::ITransaction {
++PageFaultCount;
return false;
} catch (...) {
- Y_FAIL("there must be no leaked exceptions");
+ Y_ABORT("there must be no leaked exceptions");
}
}
diff --git a/ydb/core/engine/minikql/minikql_engine_host.cpp b/ydb/core/engine/minikql/minikql_engine_host.cpp
index f721097f8c..60456bc71f 100644
--- a/ydb/core/engine/minikql/minikql_engine_host.cpp
+++ b/ydb/core/engine/minikql/minikql_engine_host.cpp
@@ -766,7 +766,7 @@ private:
case 3: return list->GetSizeBytes();
}
- Y_FAIL("TSelectRangeResult: Index out of range.");
+ Y_ABORT("TSelectRangeResult: Index out of range.");
}
NUdf::TUnboxedValue List;
diff --git a/ydb/core/engine/mkql_engine_flat_extfunc.cpp b/ydb/core/engine/mkql_engine_flat_extfunc.cpp
index 4e0330175a..58b9ab8567 100644
--- a/ydb/core/engine/mkql_engine_flat_extfunc.cpp
+++ b/ydb/core/engine/mkql_engine_flat_extfunc.cpp
@@ -209,7 +209,7 @@ namespace {
{}
NUdf::TUnboxedValuePod DoCalculate(TComputationContext&) const {
- Y_FAIL("Failed to build value for dummy node");
+ Y_ABORT("Failed to build value for dummy node");
}
private:
void RegisterDependencies() const final {}
@@ -950,7 +950,7 @@ TComputationNodeFactory GetFlatProxyExecutionFactory(TProxyExecData& execData)
} else if (nameStr == strings.Builtins.Length) {
return WrapMergedLength(callable, resultIt, ctx);
} else {
- Y_FAIL("Don't know how to merge results for callable: %s", TString(nameStr.Str()).data());
+ Y_ABORT("Don't know how to merge results for callable: %s", TString(nameStr.Str()).data());
}
}
diff --git a/ydb/core/erasure/erasure.cpp b/ydb/core/erasure/erasure.cpp
index 687e652f66..21030ca743 100644
--- a/ydb/core/erasure/erasure.cpp
+++ b/ydb/core/erasure/erasure.cpp
@@ -2770,7 +2770,7 @@ void TErasureType::SplitDiffs(ECrcMode crcMode, ui32 dataSize, const TVector<TDi
MirrorSplitDiff(*this, diffs, outDiffSet);
break;
case TErasureType::ErasureParityStripe:
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
break;
case TErasureType::ErasureParityBlock:
Y_ABORT_UNLESS(erasure.ParityParts == 2, "Other is not implemented");
@@ -2851,10 +2851,10 @@ void TErasureType::MakeXorDiff(ECrcMode crcMode, ui32 dataSize, const ui8 *src,
const TErasureParameters& erasure = ErasureSpeciesParameters[ErasureSpecies];
switch (erasure.ErasureFamily) {
case TErasureType::ErasureMirror:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
break;
case TErasureType::ErasureParityStripe:
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
break;
case TErasureType::ErasureParityBlock:
Y_ABORT_UNLESS(erasure.ParityParts == 2, "Other is not implemented");
@@ -2987,10 +2987,10 @@ void TErasureType::ApplyXorDiff(ECrcMode crcMode, ui32 dataSize, ui8 *dst,
const TErasureParameters& erasure = ErasureSpeciesParameters[ErasureSpecies];
switch (erasure.ErasureFamily) {
case TErasureType::ErasureMirror:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
break;
case TErasureType::ErasureParityStripe:
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
break;
case TErasureType::ErasureParityBlock:
Y_ABORT_UNLESS(erasure.ParityParts == 2, "Other is not implemented");
diff --git a/ydb/core/erasure/erasure_restore.cpp b/ydb/core/erasure/erasure_restore.cpp
index 8bf9f74571..9e04727550 100644
--- a/ydb/core/erasure/erasure_restore.cpp
+++ b/ydb/core/erasure/erasure_restore.cpp
@@ -470,7 +470,7 @@ namespace NKikimr {
DOUBLE(4, 5)
default:
- Y_FAIL();
+ Y_ABORT();
}
if (whole) {
diff --git a/ydb/core/erasure/erasure_rope_ut.cpp b/ydb/core/erasure/erasure_rope_ut.cpp
index ab5f2b3f8d..6e7d0a9d0a 100644
--- a/ydb/core/erasure/erasure_rope_ut.cpp
+++ b/ydb/core/erasure/erasure_rope_ut.cpp
@@ -276,7 +276,7 @@ Y_UNIT_TEST_SUITE(TErasureTypeTest) {
isRestoreParts = true;
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
partSet = originalPartSet;
@@ -551,7 +551,7 @@ Y_UNIT_TEST_SUITE(TErasureTypeTest) {
isRestoreParityParts = true;
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
partSet = originalPartSet;
partSet.ResetWithFullCopy();
diff --git a/ydb/core/erasure/erasure_ut.cpp b/ydb/core/erasure/erasure_ut.cpp
index 035c6133f9..cca4920c4f 100644
--- a/ydb/core/erasure/erasure_ut.cpp
+++ b/ydb/core/erasure/erasure_ut.cpp
@@ -360,7 +360,7 @@ Y_UNIT_TEST_SUITE(TErasureTypeTest) {
isRestoreParts = true;
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
partSet = originalPartSet;
@@ -684,7 +684,7 @@ Y_UNIT_TEST_SUITE(TErasureTypeTest) {
isRestoreParityParts = true;
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
partSet = originalPartSet;
diff --git a/ydb/core/formats/arrow/replace_key.h b/ydb/core/formats/arrow/replace_key.h
index 49b28ce8e8..3b0dde3e64 100644
--- a/ydb/core/formats/arrow/replace_key.h
+++ b/ydb/core/formats/arrow/replace_key.h
@@ -286,7 +286,7 @@ private:
case arrow::Type::MAX_ID:
case arrow::Type::SPARSE_UNION:
case arrow::Type::STRUCT:
- Y_FAIL("not implemented");
+ Y_ABORT("not implemented");
break;
}
return 0;
@@ -353,7 +353,7 @@ private:
case arrow::Type::MAX_ID:
case arrow::Type::SPARSE_UNION:
case arrow::Type::STRUCT:
- Y_FAIL("not implemented");
+ Y_ABORT("not implemented");
break;
}
return std::partial_ordering::equivalent;
diff --git a/ydb/core/fq/libs/compute/common/pinger.cpp b/ydb/core/fq/libs/compute/common/pinger.cpp
index 89b0c67fab..6ca3910497 100644
--- a/ydb/core/fq/libs/compute/common/pinger.cpp
+++ b/ydb/core/fq/libs/compute/common/pinger.cpp
@@ -212,7 +212,7 @@ private:
WakeupRetryForwardPingRequest();
break;
default:
- Y_FAIL("Unknow wakeup tag: %lu", ev->Get()->Tag);
+ Y_ABORT("Unknow wakeup tag: %lu", ev->Get()->Tag);
}
}
diff --git a/ydb/core/fq/libs/logs/log.cpp b/ydb/core/fq/libs/logs/log.cpp
index cedb9cd7bc..d577b8dbbd 100644
--- a/ydb/core/fq/libs/logs/log.cpp
+++ b/ydb/core/fq/libs/logs/log.cpp
@@ -44,7 +44,7 @@ private:
hFunc(NConsole::TEvConfigsDispatcher::TEvSetConfigSubscriptionResponse, Handle);
hFunc(NConsole::TEvConsole::TEvConfigNotificationRequest, Handle);
default:
- Y_FAIL("TYqlLogsUpdater: unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("TYqlLogsUpdater: unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
}
}
diff --git a/ydb/core/grpc_services/base/base.h b/ydb/core/grpc_services/base/base.h
index 35fe09161c..4cc7340239 100644
--- a/ydb/core/grpc_services/base/base.h
+++ b/ydb/core/grpc_services/base/base.h
@@ -524,12 +524,12 @@ public:
}
const TMaybe<TString> GetPeerMetaValues(const TString&) const override {
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
return TMaybe<TString>{};
}
TVector<TStringBuf> FindClientCert() const override {
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
return {};
}
@@ -541,7 +541,7 @@ public:
}
void ReplyWithRpcStatus(grpc::StatusCode, const TString&, const TString&) override {
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
}
void ReplyUnauthenticated(const TString&) override;
@@ -620,20 +620,20 @@ public:
}
void Pass(const IFacilityProvider&) override {
- Y_FAIL("unimplemented");
+ Y_ABORT("unimplemented");
}
void SetAuditLogHook(TAuditLogHook&&) override {
- Y_FAIL("unimplemented for TRefreshTokenImpl");
+ Y_ABORT("unimplemented for TRefreshTokenImpl");
}
// IRequestCtxBase
//
void AddAuditLogPart(const TStringBuf&, const TString&) override {
- Y_FAIL("unimplemented for TRefreshTokenImpl");
+ Y_ABORT("unimplemented for TRefreshTokenImpl");
}
const TAuditLogParts& GetAuditLogParts() const override {
- Y_FAIL("unimplemented for TRefreshTokenImpl");
+ Y_ABORT("unimplemented for TRefreshTokenImpl");
}
private:
@@ -731,7 +731,7 @@ public:
}
void ReplyWithRpcStatus(grpc::StatusCode, const TString&, const TString&) override {
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
}
void ReplyUnauthenticated(const TString& in) override {
@@ -837,7 +837,7 @@ public:
}
TVector<TStringBuf> FindClientCert() const override {
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
return {};
}
@@ -854,24 +854,24 @@ public:
void SetRespHook(TRespHook&&) override {
/* cannot add hook to bidirect streaming */
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
}
void Pass(const IFacilityProvider&) override {
- Y_FAIL("unimplemented");
+ Y_ABORT("unimplemented");
}
void SetAuditLogHook(TAuditLogHook&&) override {
- Y_FAIL("unimplemented for TGRpcRequestBiStreamWrapper");
+ Y_ABORT("unimplemented for TGRpcRequestBiStreamWrapper");
}
// IRequestCtxBase
//
void AddAuditLogPart(const TStringBuf&, const TString&) override {
- Y_FAIL("unimplemented for TGRpcRequestBiStreamWrapper");
+ Y_ABORT("unimplemented for TGRpcRequestBiStreamWrapper");
}
const TAuditLogParts& GetAuditLogParts() const override {
- Y_FAIL("unimplemented for TGRpcRequestBiStreamWrapper");
+ Y_ABORT("unimplemented for TGRpcRequestBiStreamWrapper");
}
private:
@@ -1244,7 +1244,7 @@ public:
}
void Pass(const IFacilityProvider&) override {
- Y_FAIL("unimplemented");
+ Y_ABORT("unimplemented");
}
void SetAuditLogHook(TAuditLogHook&& hook) override {
diff --git a/ydb/core/grpc_services/db_metadata_cache.h b/ydb/core/grpc_services/db_metadata_cache.h
index 13a67f8aa7..41e93d3d5d 100644
--- a/ydb/core/grpc_services/db_metadata_cache.h
+++ b/ydb/core/grpc_services/db_metadata_cache.h
@@ -188,7 +188,7 @@ public:
cFunc(TEvents::TEvPoison::EventType, PassAway);
hFunc(NHealthCheck::TEvSelfCheckResult, Handle);
hFunc(NHealthCheck::TEvSelfCheckRequestProto, Handle);
- default: Y_FAIL("Unexpected event: %s", ev->ToString().c_str());
+ default: Y_ABORT("Unexpected event: %s", ev->ToString().c_str());
}
}
@@ -200,7 +200,7 @@ public:
hFunc(TEvStateStorage::TEvBoardInfo, Handle);
hFunc(TEvStateStorage::TEvBoardInfoUpdate, Handle);
cFunc(TEvents::TEvPoison::EventType, PassAway);
- default: Y_FAIL("Unexpected event: %s", ev->ToString().c_str());
+ default: Y_ABORT("Unexpected event: %s", ev->ToString().c_str());
}
}
@@ -212,7 +212,7 @@ public:
hFunc(TEvStateStorage::TEvBoardInfo, Handle);
hFunc(TEvStateStorage::TEvBoardInfoUpdate, Handle);
cFunc(TEvents::TEvPoison::EventType, PassAway);
- default: Y_FAIL("Unexpected event: %s", ev->ToString().c_str());
+ default: Y_ABORT("Unexpected event: %s", ev->ToString().c_str());
}
}
};
diff --git a/ydb/core/grpc_services/grpc_request_proxy.cpp b/ydb/core/grpc_services/grpc_request_proxy.cpp
index 61f3703d03..9fb8d73995 100644
--- a/ydb/core/grpc_services/grpc_request_proxy.cpp
+++ b/ydb/core/grpc_services/grpc_request_proxy.cpp
@@ -570,7 +570,7 @@ void TGRpcRequestProxyImpl::StateFunc(TAutoPtr<IEventHandle>& ev) {
HFunc(TEvProxyRuntimeEvent, PreHandle);
default:
- Y_FAIL("Unknown request: %u\n", ev->GetTypeRewrite());
+ Y_ABORT("Unknown request: %u\n", ev->GetTypeRewrite());
break;
}
}
diff --git a/ydb/core/grpc_services/grpc_request_proxy_simple.cpp b/ydb/core/grpc_services/grpc_request_proxy_simple.cpp
index 514f8a213a..fc3253d94d 100644
--- a/ydb/core/grpc_services/grpc_request_proxy_simple.cpp
+++ b/ydb/core/grpc_services/grpc_request_proxy_simple.cpp
@@ -206,7 +206,7 @@ void TGRpcRequestProxySimple::StateFunc(TAutoPtr<IEventHandle>& ev) {
HFunc(TEvListEndpointsRequest, PreHandle);
HFunc(TEvProxyRuntimeEvent, PreHandle);
default:
- Y_FAIL("Unknown request: %u\n", ev->GetTypeRewrite());
+ Y_ABORT("Unknown request: %u\n", ev->GetTypeRewrite());
break;
}
}
diff --git a/ydb/core/grpc_services/local_rpc/local_rpc.h b/ydb/core/grpc_services/local_rpc/local_rpc.h
index b94ca5eaf2..9f421608bd 100644
--- a/ydb/core/grpc_services/local_rpc/local_rpc.h
+++ b/ydb/core/grpc_services/local_rpc/local_rpc.h
@@ -68,12 +68,12 @@ public:
}
const TMaybe<TString> GetPeerMetaValues(const TString&) const override {
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
return TMaybe<TString>{};
}
TVector<TStringBuf> FindClientCert() const override {
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
return {};
}
@@ -176,15 +176,15 @@ public:
}
void SetStreamingNotify(NGrpc::IRequestContextBase::TOnNextReply&&) override {
- Y_FAIL("Unimplemented for local rpc");
+ Y_ABORT("Unimplemented for local rpc");
}
void FinishStream(ui32) override {
- Y_FAIL("Unimplemented for local rpc");
+ Y_ABORT("Unimplemented for local rpc");
}
virtual void SendSerializedResult(TString&&, Ydb::StatusIds::StatusCode) override {
- Y_FAIL("Unimplemented for local rpc");
+ Y_ABORT("Unimplemented for local rpc");
}
TMaybe<TString> GetTraceId() const override {
@@ -231,7 +231,7 @@ public:
//
void AddAuditLogPart(const TStringBuf&, const TString&) override {}
const NGRpcService::TAuditLogParts& GetAuditLogParts() const override {
- Y_FAIL("unimplemented for local rpc");
+ Y_ABORT("unimplemented for local rpc");
}
private:
diff --git a/ydb/core/grpc_services/rpc_cancel_operation.cpp b/ydb/core/grpc_services/rpc_cancel_operation.cpp
index 83321a9179..98f454cff0 100644
--- a/ydb/core/grpc_services/rpc_cancel_operation.cpp
+++ b/ydb/core/grpc_services/rpc_cancel_operation.cpp
@@ -49,7 +49,7 @@ class TCancelOperationRPC: public TRpcOperationRequestActor<TCancelOperationRPC,
case TOperationId::BUILD_INDEX:
return new TEvIndexBuilder::TEvCancelRequest(TxId, DatabaseName, RawOperationId);
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
diff --git a/ydb/core/grpc_services/rpc_forget_operation.cpp b/ydb/core/grpc_services/rpc_forget_operation.cpp
index fd7048416e..5168cb8f4c 100644
--- a/ydb/core/grpc_services/rpc_forget_operation.cpp
+++ b/ydb/core/grpc_services/rpc_forget_operation.cpp
@@ -50,7 +50,7 @@ class TForgetOperationRPC: public TRpcOperationRequestActor<TForgetOperationRPC,
case TOperationId::BUILD_INDEX:
return new TEvIndexBuilder::TEvForgetRequest(TxId, DatabaseName, RawOperationId);
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
diff --git a/ydb/core/grpc_services/rpc_get_operation.cpp b/ydb/core/grpc_services/rpc_get_operation.cpp
index b05108a71b..e3c01893a7 100644
--- a/ydb/core/grpc_services/rpc_get_operation.cpp
+++ b/ydb/core/grpc_services/rpc_get_operation.cpp
@@ -62,7 +62,7 @@ class TGetOperationRPC : public TRpcOperationRequestActor<TGetOperationRPC, TEvG
case TOperationId::BUILD_INDEX:
return new NSchemeShard::TEvIndexBuilder::TEvGetRequest(DatabaseName, RawOperationId_);
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
diff --git a/ydb/core/grpc_services/rpc_import_data.cpp b/ydb/core/grpc_services/rpc_import_data.cpp
index badb8f2032..c01d244493 100644
--- a/ydb/core/grpc_services/rpc_import_data.cpp
+++ b/ydb/core/grpc_services/rpc_import_data.cpp
@@ -249,7 +249,7 @@ class TImportDataRPC: public TRpcRequestActor<TImportDataRPC, TEvImportDataReque
shardId = ProcessData(request.ydb_dump(), request.data(), ev->Record);
break;
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
if (!shardId) {
diff --git a/ydb/core/grpc_services/rpc_list_operations.cpp b/ydb/core/grpc_services/rpc_list_operations.cpp
index 72f2bf17ac..ea4671ca53 100644
--- a/ydb/core/grpc_services/rpc_list_operations.cpp
+++ b/ydb/core/grpc_services/rpc_list_operations.cpp
@@ -57,7 +57,7 @@ class TListOperationsRPC: public TRpcOperationRequestActor<TListOperationsRPC, T
case TOperationId::BUILD_INDEX:
return new TEvIndexBuilder::TEvListRequest(DatabaseName, request.page_size(), request.page_token());
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
diff --git a/ydb/core/grpc_services/rpc_read_table.cpp b/ydb/core/grpc_services/rpc_read_table.cpp
index c684bb0a01..baeb439ed6 100644
--- a/ydb/core/grpc_services/rpc_read_table.cpp
+++ b/ydb/core/grpc_services/rpc_read_table.cpp
@@ -186,7 +186,7 @@ private:
HFunc(TEvents::TEvWakeup, Handle);
HFunc(TEvDataShard::TEvGetReadTableStreamStateRequest, Handle);
default:
- Y_FAIL("TRequestHandler: unexpected event 0x%08" PRIx32, ev->GetTypeRewrite());
+ Y_ABORT("TRequestHandler: unexpected event 0x%08" PRIx32, ev->GetTypeRewrite());
}
}
diff --git a/ydb/core/kafka_proxy/actors/kafka_topic_offsets_actor.h b/ydb/core/kafka_proxy/actors/kafka_topic_offsets_actor.h
index 9af2194a0e..8f7672f369 100644
--- a/ydb/core/kafka_proxy/actors/kafka_topic_offsets_actor.h
+++ b/ydb/core/kafka_proxy/actors/kafka_topic_offsets_actor.h
@@ -33,10 +33,10 @@ public:
virtual void ApplyResponse(TTabletInfo&, NKikimr::TEvPersQueue::TEvReadSessionsInfoResponse::TPtr&,
const TActorContext&) override {
- Y_FAIL();
+ Y_ABORT();
}
bool ApplyResponse(NKikimr::TEvPersQueue::TEvGetPartitionsLocationResponse::TPtr&, const TActorContext&) override {
- Y_FAIL();
+ Y_ABORT();
}
void ApplyResponse(TTabletInfo& tabletInfo, NKikimr::TEvPersQueue::TEvStatusResponse::TPtr& ev, const TActorContext& ctx) override;
diff --git a/ydb/core/kesus/proxy/proxy.cpp b/ydb/core/kesus/proxy/proxy.cpp
index 671d6caa53..a3bd84b6f3 100644
--- a/ydb/core/kesus/proxy/proxy.cpp
+++ b/ydb/core/kesus/proxy/proxy.cpp
@@ -212,7 +212,7 @@ private:
hFunc(TEvPrivate::TEvResolveResult, Handle);
default:
- Y_FAIL("Unexpected event 0x%x for TKesusProxyService", ev->GetTypeRewrite());
+ Y_ABORT("Unexpected event 0x%x for TKesusProxyService", ev->GetTypeRewrite());
}
}
};
@@ -257,7 +257,7 @@ private:
hFunc(TEvTxProxySchemeCache::TEvNavigateKeySetResult, Handle);
default:
- Y_FAIL("Unexpected event 0x%x for TKesusProxyService::TResolveActor", ev->GetTypeRewrite());
+ Y_ABORT("Unexpected event 0x%x for TKesusProxyService::TResolveActor", ev->GetTypeRewrite());
}
}
};
diff --git a/ydb/core/kesus/proxy/proxy_actor.cpp b/ydb/core/kesus/proxy/proxy_actor.cpp
index 8a3a05ea8e..8ac77958c4 100644
--- a/ydb/core/kesus/proxy/proxy_actor.cpp
+++ b/ydb/core/kesus/proxy/proxy_actor.cpp
@@ -360,7 +360,7 @@ private:
}
if (record.GetError().GetStatus() != Ydb::StatusIds::SUCCESS) {
- Y_FAIL("Unexpected proxy registration error");
+ Y_ABORT("Unexpected proxy registration error");
}
Y_ABORT_UNLESS(State == STATE_REGISTERING);
@@ -374,7 +374,7 @@ private:
SendAttachSession(data);
break;
case ESessionState::ATTACHED:
- Y_FAIL("Unexpected ATTACHED session during registration");
+ Y_ABORT("Unexpected ATTACHED session during registration");
break;
case ESessionState::DESTROYING:
SendDestroySession(data);
@@ -838,7 +838,7 @@ private:
hFunc(TEvKesus::TEvReleaseSemaphoreResult, Handle);
default:
- Y_FAIL("Unexpected event 0x%x for TKesusProxyActor", ev->GetTypeRewrite());
+ Y_ABORT("Unexpected event 0x%x for TKesusProxyActor", ev->GetTypeRewrite());
}
}
};
diff --git a/ydb/core/kesus/tablet/quoter_performance_test/session.h b/ydb/core/kesus/tablet/quoter_performance_test/session.h
index 2908013731..b569b0a1c6 100644
--- a/ydb/core/kesus/tablet/quoter_performance_test/session.h
+++ b/ydb/core/kesus/tablet/quoter_performance_test/session.h
@@ -81,7 +81,7 @@ public:
}
void Handle(TEvTabletPipe::TEvClientDestroyed::TPtr&) {
- Y_FAIL();
+ Y_ABORT();
}
void Handle(TEvTabletPipe::TEvClientConnected::TPtr& ev) {
diff --git a/ydb/core/kesus/tablet/tx_init.cpp b/ydb/core/kesus/tablet/tx_init.cpp
index ec88ac7738..59b4bba795 100644
--- a/ydb/core/kesus/tablet/tx_init.cpp
+++ b/ydb/core/kesus/tablet/tx_init.cpp
@@ -112,7 +112,7 @@ struct TKesusTablet::TTxInit : public TTxBase {
}
break;
default:
- Y_FAIL("Unexpected SysParam value %" PRIu64, id);
+ Y_ABORT("Unexpected SysParam value %" PRIu64, id);
}
if (!sysParamsRowset.Next())
return false;
diff --git a/ydb/core/kesus/tablet/ut_helpers.cpp b/ydb/core/kesus/tablet/ut_helpers.cpp
index ea31e2b7b0..4dbe2ec79c 100644
--- a/ydb/core/kesus/tablet/ut_helpers.cpp
+++ b/ydb/core/kesus/tablet/ut_helpers.cpp
@@ -298,7 +298,7 @@ void TTestContext::SendAcquireLock(
count = 1;
break;
default:
- Y_FAIL("Unexpected lock mode %d", mode);
+ Y_ABORT("Unexpected lock mode %d", mode);
}
SendFromProxy(proxy, generation, new TEvKesus::TEvAcquireSemaphore("", generation, sessionId, lockName, count, timeoutMillis, data, true), reqId);
}
@@ -521,7 +521,7 @@ TTestContext::TSimpleLockDescription TTestContext::DescribeLock(const TString& l
result.SharedOwners.insert(owner.session_id());
break;
default:
- Y_FAIL("Unexpected count %lu", owner.count());
+ Y_ABORT("Unexpected count %lu", owner.count());
}
}
UNIT_ASSERT_C(result.ExclusiveOwner != 0 || !result.SharedOwners.empty(), "Lock " << lockName << " is not locked (but exists)");
@@ -536,7 +536,7 @@ TTestContext::TSimpleLockDescription TTestContext::DescribeLock(const TString& l
mode = LOCK_MODE_SHARED;
break;
default:
- Y_FAIL("Unexpected count %lu", waiter.count());
+ Y_ABORT("Unexpected count %lu", waiter.count());
}
result.Waiters[waiter.session_id()] = mode;
}
diff --git a/ydb/core/keyvalue/keyvalue_state.cpp b/ydb/core/keyvalue/keyvalue_state.cpp
index 5acac403d0..d35b397be6 100644
--- a/ydb/core/keyvalue/keyvalue_state.cpp
+++ b/ydb/core/keyvalue/keyvalue_state.cpp
@@ -551,7 +551,7 @@ void TKeyValueState::InitExecute(ui64 tabletId, TActorId keyValueActorId, ui32 e
} else if (generation) {
current = THelpers::TGenerationStep(generation - 1, Max<ui32>());
} else {
- Y_FAIL("incorrect BlobId: zero generation and step");
+ Y_ABORT("incorrect BlobId: zero generation and step");
}
// update minimum barrier value for this channel/group
@@ -745,7 +745,7 @@ void TKeyValueState::Step() {
NextLogoBlobCookie = 1;
++NextLogoBlobStep;
} else {
- Y_FAIL("Max step reached!");
+ Y_ABORT("Max step reached!");
}
}
diff --git a/ydb/core/keyvalue/keyvalue_state.h b/ydb/core/keyvalue/keyvalue_state.h
index 29dd0057d7..d1771f16b7 100644
--- a/ydb/core/keyvalue/keyvalue_state.h
+++ b/ydb/core/keyvalue/keyvalue_state.h
@@ -72,7 +72,7 @@ public:
} else if (AddedKeysIterator != KeySet.AddedKeys.end()) {
return *AddedKeysIterator;
} else {
- Y_FAIL("operator*() called on invalid iterator");
+ Y_ABORT("operator*() called on invalid iterator");
}
}
@@ -119,7 +119,7 @@ public:
} else if (AddedKeysIterator != KeySet.AddedKeys.end()) {
++AddedKeysIterator;
} else {
- Y_FAIL("operator++() called on invalid iterator");
+ Y_ABORT("operator++() called on invalid iterator");
}
}
diff --git a/ydb/core/keyvalue/keyvalue_storage_read_request.cpp b/ydb/core/keyvalue/keyvalue_storage_read_request.cpp
index 5d1cdea576..c79f610dbd 100644
--- a/ydb/core/keyvalue/keyvalue_storage_read_request.cpp
+++ b/ydb/core/keyvalue/keyvalue_storage_read_request.cpp
@@ -496,7 +496,7 @@ public:
switch (ev->GetTypeRewrite()) {
hFunc(TEvBlobStorage::TEvGetResult, Handle);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/keyvalue/keyvalue_storage_read_request_ut.cpp b/ydb/core/keyvalue/keyvalue_storage_read_request_ut.cpp
index 224c0b86ca..67e9e828ba 100644
--- a/ydb/core/keyvalue/keyvalue_storage_read_request_ut.cpp
+++ b/ydb/core/keyvalue/keyvalue_storage_read_request_ut.cpp
@@ -103,7 +103,7 @@ struct TBlobStorageMock : TActorBootstrapped<TBlobStorageMock> {
switch (ev->GetTypeRewrite()) {
hFunc(TEvBlobStorage::TEvGet, Handle);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
};
diff --git a/ydb/core/kqp/compile_service/kqp_compile_computation_pattern_service.cpp b/ydb/core/kqp/compile_service/kqp_compile_computation_pattern_service.cpp
index 463bdd09ce..2cec69c92c 100644
--- a/ydb/core/kqp/compile_service/kqp_compile_computation_pattern_service.cpp
+++ b/ydb/core/kqp/compile_service/kqp_compile_computation_pattern_service.cpp
@@ -35,7 +35,7 @@ private:
CFunc(TEvents::TSystem::Wakeup, HandleWakeup);
cFunc(TEvents::TEvPoison::EventType, PassAway);
default:
- Y_FAIL("TKqpCompileComputationPatternService: unexpected event 0x%08" PRIx32, ev->GetTypeRewrite());
+ Y_ABORT("TKqpCompileComputationPatternService: unexpected event 0x%08" PRIx32, ev->GetTypeRewrite());
}
}
diff --git a/ydb/core/kqp/compile_service/kqp_compile_service.cpp b/ydb/core/kqp/compile_service/kqp_compile_service.cpp
index a8c911091d..dcba8b3c1e 100644
--- a/ydb/core/kqp/compile_service/kqp_compile_service.cpp
+++ b/ydb/core/kqp/compile_service/kqp_compile_service.cpp
@@ -379,7 +379,7 @@ private:
CFunc(TEvents::TSystem::Wakeup, HandleTtlTimer);
cFunc(TEvents::TEvPoison::EventType, PassAway);
default:
- Y_FAIL("TKqpCompileService: unexpected event 0x%08" PRIx32, ev->GetTypeRewrite());
+ Y_ABORT("TKqpCompileService: unexpected event 0x%08" PRIx32, ev->GetTypeRewrite());
}
}
diff --git a/ydb/core/kqp/compute_actor/kqp_scan_compute_actor.cpp b/ydb/core/kqp/compute_actor/kqp_scan_compute_actor.cpp
index 57556a6598..8e09164f26 100644
--- a/ydb/core/kqp/compute_actor/kqp_scan_compute_actor.cpp
+++ b/ydb/core/kqp/compute_actor/kqp_scan_compute_actor.cpp
@@ -109,10 +109,10 @@ void TKqpScanComputeActor::HandleEvWakeup(EEvWakeupTag tag) {
ProcessRlNoResourceAndDie();
break;
case TimeoutTag:
- Y_FAIL("TimeoutTag must be handled in base class");
+ Y_ABORT("TimeoutTag must be handled in base class");
break;
case PeriodicStatsTag:
- Y_FAIL("PeriodicStatsTag must be handled in base class");
+ Y_ABORT("PeriodicStatsTag must be handled in base class");
break;
}
}
diff --git a/ydb/core/kqp/compute_actor/kqp_scan_fetcher_actor.cpp b/ydb/core/kqp/compute_actor/kqp_scan_fetcher_actor.cpp
index 13e405d161..5f308ff6b8 100644
--- a/ydb/core/kqp/compute_actor/kqp_scan_fetcher_actor.cpp
+++ b/ydb/core/kqp/compute_actor/kqp_scan_fetcher_actor.cpp
@@ -432,7 +432,7 @@ void TKqpScanFetcherActor::HandleExecute(TEvents::TEvUndelivered::TPtr& ev) {
}
return;
}
- Y_FAIL("UNEXPECTED EVENT TYPE");
+ Y_ABORT("UNEXPECTED EVENT TYPE");
}
void TKqpScanFetcherActor::HandleExecute(TEvInterconnect::TEvNodeDisconnected::TPtr& ev) {
diff --git a/ydb/core/kqp/node_service/kqp_node_service.cpp b/ydb/core/kqp/node_service/kqp_node_service.cpp
index 0e295a835d..350b1c2d5c 100644
--- a/ydb/core/kqp/node_service/kqp_node_service.cpp
+++ b/ydb/core/kqp/node_service/kqp_node_service.cpp
@@ -185,7 +185,7 @@ private:
hFunc(TEvents::TEvPoison, HandleWork);
hFunc(NMon::TEvHttpInfo, HandleWork);
default: {
- Y_FAIL("Unexpected event 0x%x for TKqpResourceManagerService", ev->GetTypeRewrite());
+ Y_ABORT("Unexpected event 0x%x for TKqpResourceManagerService", ev->GetTypeRewrite());
}
}
}
diff --git a/ydb/core/kqp/proxy_service/kqp_proxy_service.cpp b/ydb/core/kqp/proxy_service/kqp_proxy_service.cpp
index dbc90b9e77..dfac53d9d2 100644
--- a/ydb/core/kqp/proxy_service/kqp_proxy_service.cpp
+++ b/ydb/core/kqp/proxy_service/kqp_proxy_service.cpp
@@ -1242,7 +1242,7 @@ public:
hFunc(TEvInterconnect::TEvNodeConnected, Handle);
hFunc(TEvInterconnect::TEvNodeDisconnected, Handle);
default:
- Y_FAIL("TKqpProxyService: unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("TKqpProxyService: unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
}
}
diff --git a/ydb/core/kqp/rm_service/kqp_rm_service.cpp b/ydb/core/kqp/rm_service/kqp_rm_service.cpp
index 322674366d..2fb04c21b9 100644
--- a/ydb/core/kqp/rm_service/kqp_rm_service.cpp
+++ b/ydb/core/kqp/rm_service/kqp_rm_service.cpp
@@ -826,7 +826,7 @@ private:
hFunc(TEvents::TEvPoison, HandleWork);
hFunc(NMon::TEvHttpInfo, HandleWork);
default: {
- Y_FAIL("Unexpected event 0x%x at TKqpResourceManagerActor::WorkState", ev->GetTypeRewrite());
+ Y_ABORT("Unexpected event 0x%x at TKqpResourceManagerActor::WorkState", ev->GetTypeRewrite());
}
}
}
@@ -1247,7 +1247,7 @@ std::shared_ptr<NRm::IKqpResourceManager> GetKqpResourceManager(TMaybe<ui32> _no
}
ui32 nodeId = _nodeId ? *_nodeId : TActivationContext::ActorSystem()->NodeId;
- Y_FAIL("KqpResourceManager not ready yet, node #%" PRIu32, nodeId);
+ Y_ABORT("KqpResourceManager not ready yet, node #%" PRIu32, nodeId);
}
std::shared_ptr<NRm::IKqpResourceManager> TryGetKqpResourceManager(TMaybe<ui32> _nodeId) {
diff --git a/ydb/core/kqp/runtime/kqp_channel_storage.cpp b/ydb/core/kqp/runtime/kqp_channel_storage.cpp
index 54b08d37b3..d0e40d8d95 100644
--- a/ydb/core/kqp/runtime/kqp_channel_storage.cpp
+++ b/ydb/core/kqp/runtime/kqp_channel_storage.cpp
@@ -72,7 +72,7 @@ private:
hFunc(TEvKqpSpilling::TEvReadResult, HandleWork);
hFunc(TEvKqpSpilling::TEvError, HandleWork);
default:
- Y_FAIL("TKqpChannelStorageActor::WorkState unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("TKqpChannelStorageActor::WorkState unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(),
ev->ToString().data());
}
diff --git a/ydb/core/kqp/runtime/kqp_effects.cpp b/ydb/core/kqp/runtime/kqp_effects.cpp
index 36758e4445..f7b34df174 100644
--- a/ydb/core/kqp/runtime/kqp_effects.cpp
+++ b/ydb/core/kqp/runtime/kqp_effects.cpp
@@ -26,11 +26,11 @@ public:
void WideConsume(NUdf::TUnboxedValue* values, ui32 count) final {
Y_UNUSED(values);
Y_UNUSED(count);
- Y_FAIL("WideConsume not supported yet");
+ Y_ABORT("WideConsume not supported yet");
}
void Consume(NDqProto::TCheckpoint&&) final {
- Y_FAIL("Shouldn't be called");
+ Y_ABORT("Shouldn't be called");
}
void Finish() final {}
diff --git a/ydb/core/kqp/runtime/kqp_output_stream.cpp b/ydb/core/kqp/runtime/kqp_output_stream.cpp
index 431db53178..3816bbe635 100644
--- a/ydb/core/kqp/runtime/kqp_output_stream.cpp
+++ b/ydb/core/kqp/runtime/kqp_output_stream.cpp
@@ -48,11 +48,11 @@ public:
void WideConsume(TUnboxedValue* values, ui32 count) final {
Y_UNUSED(values);
Y_UNUSED(count);
- Y_FAIL("WideConsume not supported yet");
+ Y_ABORT("WideConsume not supported yet");
}
void Consume(NDqProto::TCheckpoint&&) final {
- Y_FAIL("Shouldn't be called");
+ Y_ABORT("Shouldn't be called");
}
void Finish() final {
diff --git a/ydb/core/kqp/session_actor/kqp_temp_tables_manager.cpp b/ydb/core/kqp/session_actor/kqp_temp_tables_manager.cpp
index 700e778029..751594faaa 100644
--- a/ydb/core/kqp/session_actor/kqp_temp_tables_manager.cpp
+++ b/ydb/core/kqp/session_actor/kqp_temp_tables_manager.cpp
@@ -91,7 +91,7 @@ public:
switch (ev->GetTypeRewrite()) {
hFunc(TEvPrivate::TEvResult, HandleResult);
default:
- Y_FAIL("Unexpected event 0x%x at TKqpTempTablesManager::WaitState", ev->GetTypeRewrite());
+ Y_ABORT("Unexpected event 0x%x at TKqpTempTablesManager::WaitState", ev->GetTypeRewrite());
}
}
diff --git a/ydb/core/kqp/ut/indexes/kqp_indexes_multishard_ut.cpp b/ydb/core/kqp/ut/indexes/kqp_indexes_multishard_ut.cpp
index 25544832fe..6b1534ac60 100644
--- a/ydb/core/kqp/ut/indexes/kqp_indexes_multishard_ut.cpp
+++ b/ydb/core/kqp/ut/indexes/kqp_indexes_multishard_ut.cpp
@@ -1702,7 +1702,7 @@ Y_UNIT_TEST_SUITE(KqpMultishardIndex) {
}
break;
default:
- Y_FAIL("Unknown id");
+ Y_ABORT("Unknown id");
}
}, 0, 2, NPar::TLocalExecutor::WAIT_COMPLETE | NPar::TLocalExecutor::MED_PRIORITY);
@@ -1746,7 +1746,7 @@ Y_UNIT_TEST_SUITE(KqpMultishardIndex) {
UNIT_ASSERT_VALUES_EQUAL(vp.GetUint32(), (startVal++) + (1u << 31));
break;
default:
- Y_FAIL("unexpected shard id");
+ Y_ABORT("unexpected shard id");
}
}
}
diff --git a/ydb/core/load_test/aggregated_result.cpp b/ydb/core/load_test/aggregated_result.cpp
index 25108d9a98..652a722412 100644
--- a/ydb/core/load_test/aggregated_result.cpp
+++ b/ydb/core/load_test/aggregated_result.cpp
@@ -98,7 +98,7 @@ NKikimrMiniKQL::TValue GetOptional(const NKikimrMiniKQL::TValue& listItem, ui32
template<typename T>
T ExtractValue(const NKikimrMiniKQL::TValue& listItem, ui32 pos) {
Y_UNUSED(listItem, pos);
- Y_FAIL("unimplemented");
+ Y_ABORT("unimplemented");
}
template<>
diff --git a/ydb/core/load_test/group_write.cpp b/ydb/core/load_test/group_write.cpp
index 66078faf62..1438aaab5e 100644
--- a/ydb/core/load_test/group_write.cpp
+++ b/ydb/core/load_test/group_write.cpp
@@ -975,7 +975,7 @@ public:
}
void Handle(TEvents::TEvUndelivered::TPtr ev, const TActorContext& /*ctx*/) {
- Y_FAIL("TEvUndelivered# 0x%08" PRIx32 " ActorId# %s", ev->Get()->SourceType, ev->Sender.ToString().data());
+ Y_ABORT("TEvUndelivered# 0x%08" PRIx32 " ActorId# %s", ev->Get()->SourceType, ev->Sender.ToString().data());
}
STRICT_STFUNC(StateFunc,
diff --git a/ydb/core/load_test/interval_gen.h b/ydb/core/load_test/interval_gen.h
index ee6e18a93a..afd3dd92c5 100644
--- a/ydb/core/load_test/interval_gen.h
+++ b/ydb/core/load_test/interval_gen.h
@@ -63,10 +63,10 @@ namespace NKikimr {
return TPoissonItem(proto.GetPoisson());
case TProto::DISTRIBUTION_NOT_SET:
- Y_FAIL("TIntervalInfo.Distribution not set");
+ Y_ABORT("TIntervalInfo.Distribution not set");
}
- Y_FAIL("unreachable code");
+ Y_ABORT("unreachable code");
}
TDuration Generate() const {
diff --git a/ydb/core/load_test/service_actor.cpp b/ydb/core/load_test/service_actor.cpp
index 58fed33feb..854a800aee 100644
--- a/ydb/core/load_test/service_actor.cpp
+++ b/ydb/core/load_test/service_actor.cpp
@@ -907,7 +907,7 @@ public:
HandlePost(request, info, id);
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/load_test/ycsb/bulk_mkql_upsert.cpp b/ydb/core/load_test/ycsb/bulk_mkql_upsert.cpp
index e9e617c4a4..0ad90398e3 100644
--- a/ydb/core/load_test/ycsb/bulk_mkql_upsert.cpp
+++ b/ydb/core/load_test/ycsb/bulk_mkql_upsert.cpp
@@ -105,7 +105,7 @@ TUploadRequest GenerateRequest(
break;
default:
// should not happen, just for compiler
- Y_FAIL("Unsupported request type");
+ Y_ABORT("Unsupported request type");
}
}
diff --git a/ydb/core/mind/bscontroller/bsc.cpp b/ydb/core/mind/bscontroller/bsc.cpp
index 87097f3429..a1cd90be6a 100644
--- a/ydb/core/mind/bscontroller/bsc.cpp
+++ b/ydb/core/mind/bscontroller/bsc.cpp
@@ -86,7 +86,7 @@ void TBlobStorageController::TGroupInfo::CalculateGroupStatus() {
} else if (failed.GetNumSetItems()) { // group partially available, but not degraded
return NKikimrBlobStorage::TGroupStatus::PARTIAL;
} else {
- Y_FAIL("unexpected case");
+ Y_ABORT("unexpected case");
}
};
Status.MakeWorst(deriveStatus(failed), deriveStatus(failed | failedByPDisk));
@@ -372,7 +372,7 @@ ui32 TBlobStorageController::GetEventPriority(IEventHandle *ev) {
}
}
- Y_FAIL();
+ Y_ABORT();
}
} // NBsController
diff --git a/ydb/core/mind/bscontroller/config.cpp b/ydb/core/mind/bscontroller/config.cpp
index 5973b2d34c..32ffdcb32c 100644
--- a/ydb/core/mind/bscontroller/config.cpp
+++ b/ydb/core/mind/bscontroller/config.cpp
@@ -154,7 +154,7 @@ namespace NKikimr::NBsController {
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
if (const TGroupInfo *group = State.Groups.Find(vslotInfo.GroupId); group && mood != TMood::Delete) {
diff --git a/ydb/core/mind/bscontroller/config_cmd.cpp b/ydb/core/mind/bscontroller/config_cmd.cpp
index e47033ea04..34eeec7dcf 100644
--- a/ydb/core/mind/bscontroller/config_cmd.cpp
+++ b/ydb/core/mind/bscontroller/config_cmd.cpp
@@ -353,7 +353,7 @@ namespace NKikimr::NBsController {
throw TExError() << "unsupported command";
}
- Y_FAIL();
+ Y_ABORT();
}
void Complete(const TActorContext&) override {
diff --git a/ydb/core/mind/bscontroller/config_fit_groups.cpp b/ydb/core/mind/bscontroller/config_fit_groups.cpp
index 5c211eec45..b033033846 100644
--- a/ydb/core/mind/bscontroller/config_fit_groups.cpp
+++ b/ydb/core/mind/bscontroller/config_fit_groups.cpp
@@ -229,7 +229,7 @@ namespace NKikimr {
break;
default:
- Y_FAIL("unexpected drive status");
+ Y_ABORT("unexpected drive status");
}
}
diff --git a/ydb/core/mind/bscontroller/impl.h b/ydb/core/mind/bscontroller/impl.h
index fffd46e29f..fa228789df 100644
--- a/ydb/core/mind/bscontroller/impl.h
+++ b/ydb/core/mind/bscontroller/impl.h
@@ -488,7 +488,7 @@ public:
case NKikimrBlobStorage::EDecommitStatus::EDecommitStatus_INT_MAX_SENTINEL_DO_NOT_USE_:
break;
}
- Y_FAIL("unexpected EDecommitStatus");
+ Y_ABORT("unexpected EDecommitStatus");
}
bool HasGoodExpectedStatus() const {
@@ -507,7 +507,7 @@ public:
case NKikimrBlobStorage::EDriveStatus::EDriveStatus_INT_MAX_SENTINEL_DO_NOT_USE_:
break;
}
- Y_FAIL("unexpected EDriveStatus");
+ Y_ABORT("unexpected EDriveStatus");
}
TString PathOrSerial() const {
@@ -1425,7 +1425,7 @@ public:
return hostIt->second.Location;
}
}
- Y_FAIL();
+ Y_ABORT();
}
TMaybe<TNodeId> ResolveNodeId(const THostId& hostId) const {
diff --git a/ydb/core/mind/bscontroller/load_everything.cpp b/ydb/core/mind/bscontroller/load_everything.cpp
index ac406c9910..3269001aef 100644
--- a/ydb/core/mind/bscontroller/load_everything.cpp
+++ b/ydb/core/mind/bscontroller/load_everything.cpp
@@ -260,7 +260,7 @@ public:
host.BoxId, host.Fqdn.data(), host.IcPort, drive.Path.data());
}
} else {
- Y_FAIL("HostConfigId# %" PRIu64 " not found in BoxId# %" PRIu64 " FQDN# %s IcPort# %d",
+ Y_ABORT("HostConfigId# %" PRIu64 " not found in BoxId# %" PRIu64 " FQDN# %s IcPort# %d",
value.HostConfigId, host.BoxId, host.Fqdn.data(), host.IcPort);
}
}
@@ -299,7 +299,7 @@ public:
if (const auto& x = Self->HostRecords->GetHostId(disks.GetValue<T::NodeID>())) {
hostId = *x;
} else {
- Y_FAIL("unknown node NodeId# %" PRIu32, disks.GetValue<T::NodeID>());
+ Y_ABORT("unknown node NodeId# %" PRIu32, disks.GetValue<T::NodeID>());
}
// find the owning box
@@ -307,7 +307,7 @@ public:
boxId = it->second;
driveToBox.erase(it);
} else {
- Y_FAIL("PDisk NodeId# %" PRIu32 " PDiskId# %" PRIu32 " not belonging to a box",
+ Y_ABORT("PDisk NodeId# %" PRIu32 " PDiskId# %" PRIu32 " not belonging to a box",
disks.GetValue<T::NodeID>(), disks.GetValue<T::PDiskID>());
}
diff --git a/ydb/core/mind/bscontroller/migrate.cpp b/ydb/core/mind/bscontroller/migrate.cpp
index a613867295..36bb635c5e 100644
--- a/ydb/core/mind/bscontroller/migrate.cpp
+++ b/ydb/core/mind/bscontroller/migrate.cpp
@@ -206,7 +206,7 @@ public:
const ui32 version = state.GetValue<Schema::State::SchemaVersion>();
if (Schema::CurrentSchemaVersion >= Schema::BoxHostMigrationSchemaVersion && version < Schema::BoxHostMigrationSchemaVersion) {
- Y_FAIL("unsupported schema");
+ Y_ABORT("unsupported schema");
}
hasInstanceId = state.HaveValue<Schema::State::InstanceId>();
}
diff --git a/ydb/core/mind/bscontroller/monitoring.cpp b/ydb/core/mind/bscontroller/monitoring.cpp
index 572da72362..7a67a918bc 100644
--- a/ydb/core/mind/bscontroller/monitoring.cpp
+++ b/ydb/core/mind/bscontroller/monitoring.cpp
@@ -837,7 +837,7 @@ void TBlobStorageController::ProcessPostQuery(const NActorsProto::TRemoteHttpInf
} else if (Accept == "application/json") {
google::protobuf::util::MessageToJsonString(response, &data);
} else {
- Y_FAIL();
+ Y_ABORT();
}
s << data;
diff --git a/ydb/core/mind/bscontroller/scrub.cpp b/ydb/core/mind/bscontroller/scrub.cpp
index f26bf08a6b..31badb2f53 100644
--- a/ydb/core/mind/bscontroller/scrub.cpp
+++ b/ydb/core/mind/bscontroller/scrub.cpp
@@ -141,7 +141,7 @@ class TBlobStorageController::TScrubState::TImpl {
case TVDiskItem::EScrubState::ENQUEUED: return "ENQUEUED";
case TVDiskItem::EScrubState::IN_PROGRESS: return "IN_PROGRESS";
}
- Y_FAIL();
+ Y_ABORT();
}
friend class TBlobStorageController;
diff --git a/ydb/core/mind/bscontroller/storage_stats_calculator.cpp b/ydb/core/mind/bscontroller/storage_stats_calculator.cpp
index 5957cfc53d..57dc197305 100644
--- a/ydb/core/mind/bscontroller/storage_stats_calculator.cpp
+++ b/ydb/core/mind/bscontroller/storage_stats_calculator.cpp
@@ -50,7 +50,7 @@ public:
throw TExPoison();
}
- Y_FAIL("unexpected event Type# 0x%08" PRIx32, ev->GetTypeRewrite());
+ Y_ABORT("unexpected event Type# 0x%08" PRIx32, ev->GetTypeRewrite());
}
void Run() override {
diff --git a/ydb/core/mind/bscontroller/ut_selfheal/vdisk_mock.h b/ydb/core/mind/bscontroller/ut_selfheal/vdisk_mock.h
index dddd4728ac..a49902a5a1 100644
--- a/ydb/core/mind/bscontroller/ut_selfheal/vdisk_mock.h
+++ b/ydb/core/mind/bscontroller/ut_selfheal/vdisk_mock.h
@@ -111,7 +111,7 @@ public:
break;
}
- Y_FAIL();
+ Y_ABORT();
}
void Report(NKikimrBlobStorage::TEvControllerUpdateDiskStatus *pb) {
diff --git a/ydb/core/mind/bscontroller/virtual_group.cpp b/ydb/core/mind/bscontroller/virtual_group.cpp
index edce67d3a7..ba1e779f3a 100644
--- a/ydb/core/mind/bscontroller/virtual_group.cpp
+++ b/ydb/core/mind/bscontroller/virtual_group.cpp
@@ -373,7 +373,7 @@ namespace NKikimr::NBsController {
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/mind/configured_tablet_bootstrapper.cpp b/ydb/core/mind/configured_tablet_bootstrapper.cpp
index 1b23e44e94..4793f84cbd 100644
--- a/ydb/core/mind/configured_tablet_bootstrapper.cpp
+++ b/ydb/core/mind/configured_tablet_bootstrapper.cpp
@@ -161,7 +161,7 @@ TTabletTypes::EType BootstrapperTypeToTabletType(ui32 type) {
case NKikimrConfig::TBootstrap::CONSOLE:
return TTabletTypes::Console;
default:
- Y_FAIL("unknown tablet type");
+ Y_ABORT("unknown tablet type");
}
return TTabletTypes::TypeInvalid;
}
diff --git a/ydb/core/mind/hive/monitoring.cpp b/ydb/core/mind/hive/monitoring.cpp
index 8d4ebbeb10..751597a13c 100644
--- a/ydb/core/mind/hive/monitoring.cpp
+++ b/ydb/core/mind/hive/monitoring.cpp
@@ -3514,7 +3514,7 @@ public:
} else if (Error) {
ctx.Send(Source, new NMon::TEvRemoteJsonInfoRes(TStringBuilder() << "{\"error\":\"" << Error << "\"}"));
} else {
- Y_FAIL("unexpected state");
+ Y_ABORT("unexpected state");
}
}
};
diff --git a/ydb/core/mind/hive/tx__update_tablet_status.cpp b/ydb/core/mind/hive/tx__update_tablet_status.cpp
index 388992312e..28dc45b9c9 100644
--- a/ydb/core/mind/hive/tx__update_tablet_status.cpp
+++ b/ydb/core/mind/hive/tx__update_tablet_status.cpp
@@ -158,7 +158,7 @@ public:
}
switch (tablet->GetLeader().State) {
case ETabletState::GroupAssignment:
- //Y_FAIL("Unexpected tablet boot failure during group assignment");
+ //Y_ABORT("Unexpected tablet boot failure during group assignment");
// Just ignore it. This is fail from previous generation.
return true;
case ETabletState::StoppingInGroupAssignment:
diff --git a/ydb/core/mind/labels_maintainer.cpp b/ydb/core/mind/labels_maintainer.cpp
index 1823c67e1c..2041961768 100644
--- a/ydb/core/mind/labels_maintainer.cpp
+++ b/ydb/core/mind/labels_maintainer.cpp
@@ -37,7 +37,7 @@ public:
IgnoreFunc(TEvConfigsDispatcher::TEvSetConfigSubscriptionResponse);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
diff --git a/ydb/core/mind/lease_holder.cpp b/ydb/core/mind/lease_holder.cpp
index 23197ba026..6fd6b9a853 100644
--- a/ydb/core/mind/lease_holder.cpp
+++ b/ydb/core/mind/lease_holder.cpp
@@ -71,7 +71,7 @@ private:
IgnoreFunc(TEvNodeBroker::TEvExtendLeaseResponse);
default:
- Y_FAIL("TLeaseHolder::StateIdle unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("TLeaseHolder::StateIdle unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
}
}
@@ -86,7 +86,7 @@ private:
HFunc(TEvTabletPipe::TEvClientConnected, Handle);
default:
- Y_FAIL("TLeaseHolder::StatePing unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("TLeaseHolder::StatePing unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
}
}
diff --git a/ydb/core/mind/local.cpp b/ydb/core/mind/local.cpp
index 74134f423d..089e20413f 100644
--- a/ydb/core/mind/local.cpp
+++ b/ydb/core/mind/local.cpp
@@ -1413,7 +1413,7 @@ public:
HFunc(TEvLocal::TEvLocalDrainNode, HandleDrain);
default:
- Y_FAIL("Unexpected event for TDomainLocal");
+ Y_ABORT("Unexpected event for TDomainLocal");
break;
}
}
diff --git a/ydb/core/mind/node_broker_impl.h b/ydb/core/mind/node_broker_impl.h
index 3b46c172f7..e400ab818b 100644
--- a/ydb/core/mind/node_broker_impl.h
+++ b/ydb/core/mind/node_broker_impl.h
@@ -193,7 +193,7 @@ private:
default:
if (!HandleDefaultEvents(ev, SelfId())) {
- Y_FAIL("TNodeBroker::StateWork unexpected event type: %" PRIx32 " event: %s from %s",
+ Y_ABORT("TNodeBroker::StateWork unexpected event type: %" PRIx32 " event: %s from %s",
ev->GetTypeRewrite(), ev->ToString().data(),
ev->Sender.ToString().data());
}
diff --git a/ydb/core/mind/table_adapter.h b/ydb/core/mind/table_adapter.h
index c191082a49..f96e87ce87 100644
--- a/ydb/core/mind/table_adapter.h
+++ b/ydb/core/mind/table_adapter.h
@@ -140,7 +140,7 @@ namespace NKikimr {
} else if (MaybeCellPtr) {
return *(row.*MaybeCellPtr);
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -150,7 +150,7 @@ namespace NKikimr {
} else if (MaybeCellPtr) {
return x.*MaybeCellPtr == y.*MaybeCellPtr;
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -163,7 +163,7 @@ namespace NKikimr {
row.*MaybeCellPtr = rowset.template GetValue<TColumn>();
}
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -182,7 +182,7 @@ namespace NKikimr {
value = Nothing();
}
} else {
- Y_FAIL();
+ Y_ABORT();
}
return std::tuple_cat(tuple, std::make_tuple(std::move(value)));
@@ -444,7 +444,7 @@ namespace NKikimr {
}
TConstructFromRowset(...) {
- Y_FAIL("table mismatch");
+ Y_ABORT("table mismatch");
}
};
diff --git a/ydb/core/mind/tenant_pool.cpp b/ydb/core/mind/tenant_pool.cpp
index 8d5bcead2d..d3cc74619d 100644
--- a/ydb/core/mind/tenant_pool.cpp
+++ b/ydb/core/mind/tenant_pool.cpp
@@ -303,7 +303,7 @@ public:
ctx.Send(LocalID, event.Release());
}
} else {
- Y_FAIL("unexpected tenant status");
+ Y_ABORT("unexpected tenant status");
}
}
@@ -732,7 +732,7 @@ public:
IgnoreFunc(TEvConfigsDispatcher::TEvSetConfigSubscriptionResponse);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
@@ -871,7 +871,7 @@ public:
HFunc(NMon::TEvHttpInfo, Handle);
HFunc(TEvLocal::TEvLocalDrainNode, Handle);
default:
- Y_FAIL("unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
break;
}
diff --git a/ydb/core/mind/tenant_slot_broker_impl.h b/ydb/core/mind/tenant_slot_broker_impl.h
index 0c9fd06e37..29aaaddf7e 100644
--- a/ydb/core/mind/tenant_slot_broker_impl.h
+++ b/ydb/core/mind/tenant_slot_broker_impl.h
@@ -1123,7 +1123,7 @@ private:
default:
if (!HandleDefaultEvents(ev, SelfId())) {
- Y_FAIL("TTenantSlotBroker::StateWork unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("TTenantSlotBroker::StateWork unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(), ev->ToString().data());
}
}
diff --git a/ydb/core/persqueue/blob.cpp b/ydb/core/persqueue/blob.cpp
index d06f30403f..4b6bff79e8 100644
--- a/ydb/core/persqueue/blob.cpp
+++ b/ydb/core/persqueue/blob.cpp
@@ -434,7 +434,7 @@ void TBatch::UnpackTo(TVector<TClientBlob> *blobs)
UnpackToType1(blobs);
break;
default:
- Y_FAIL("uknown type");
+ Y_ABORT("uknown type");
};
}
diff --git a/ydb/core/persqueue/partition_init.cpp b/ydb/core/persqueue/partition_init.cpp
index 338b2902e1..9d6947187a 100644
--- a/ydb/core/persqueue/partition_init.cpp
+++ b/ydb/core/persqueue/partition_init.cpp
@@ -189,7 +189,7 @@ void TInitConfigStep::Handle(TEvKeyValue::TEvResponse::TPtr& ev, const TActorCon
default:
Cerr << "ERROR " << response.GetStatus() << "\n";
- Y_FAIL("bad status");
+ Y_ABORT("bad status");
};
Done(ctx);
@@ -292,7 +292,7 @@ void TInitMetaStep::Handle(TEvKeyValue::TEvResponse::TPtr &ev, const TActorConte
break;
default:
Cerr << "ERROR " << response.GetStatus() << "\n";
- Y_FAIL("bad status");
+ Y_ABORT("bad status");
};
};
@@ -413,7 +413,7 @@ void TInitInfoRangeStep::Handle(TEvKeyValue::TEvResponse::TPtr &ev, const TActor
break;
default:
Cerr << "ERROR " << range.GetStatus() << "\n";
- Y_FAIL("bad status");
+ Y_ABORT("bad status");
};
}
@@ -462,7 +462,7 @@ void TInitDataRangeStep::Handle(TEvKeyValue::TEvResponse::TPtr &ev, const TActor
break;
default:
Cerr << "ERROR " << range.GetStatus() << "\n";
- Y_FAIL("bad status");
+ Y_ABORT("bad status");
};
}
@@ -622,10 +622,10 @@ void TInitDataStep::Handle(TEvKeyValue::TEvResponse::TPtr &ev, const TActorConte
break;
}
case NKikimrProto::OVERRUN:
- Y_FAIL("implement overrun in readresult!!");
+ Y_ABORT("implement overrun in readresult!!");
return;
case NKikimrProto::NODATA:
- Y_FAIL("NODATA can't be here");
+ Y_ABORT("NODATA can't be here");
return;
case NKikimrProto::ERROR:
LOG_ERROR_S(
@@ -639,7 +639,7 @@ void TInitDataStep::Handle(TEvKeyValue::TEvResponse::TPtr &ev, const TActorConte
return;
default:
Cerr << "ERROR " << read.GetStatus() << " message: \"" << read.GetMessage() << "\"\n";
- Y_FAIL("bad status");
+ Y_ABORT("bad status");
};
}
diff --git a/ydb/core/persqueue/partition_monitoring.cpp b/ydb/core/persqueue/partition_monitoring.cpp
index f56363623e..4343adcbb6 100644
--- a/ydb/core/persqueue/partition_monitoring.cpp
+++ b/ydb/core/persqueue/partition_monitoring.cpp
@@ -71,7 +71,7 @@ void TPartition::HandleMonitoring(TEvPQ::TEvMonRequest::TPtr& ev, const TActorCo
} else if (CurrentStateFunc() == &TThis::StateWrite) {
str = "State is StateWrite";
} else {
- Y_FAIL("");
+ Y_ABORT("");
}
TStringStream out;
out << "Partition " << i32(Partition) << ": " << str; res.push_back(out.Str()); out.Clear();
diff --git a/ydb/core/persqueue/partition_types.h b/ydb/core/persqueue/partition_types.h
index b8f0c54c7c..dd9d74b95d 100644
--- a/ydb/core/persqueue/partition_types.h
+++ b/ydb/core/persqueue/partition_types.h
@@ -94,7 +94,7 @@ struct TMessage {
case 4:
return std::get<4>(Body).Cookie;
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
diff --git a/ydb/core/persqueue/partition_write.cpp b/ydb/core/persqueue/partition_write.cpp
index a504f5aebd..f1f570ca30 100644
--- a/ydb/core/persqueue/partition_write.cpp
+++ b/ydb/core/persqueue/partition_write.cpp
@@ -383,7 +383,7 @@ void TPartition::AnswerCurrentWrites(const TActorContext& ctx) {
ReplyOk(ctx, response.GetCookie());
} else {
- Y_FAIL("Unexpected message");
+ Y_ABORT("Unexpected message");
}
Responses.pop_front();
}
@@ -1231,7 +1231,7 @@ void TPartition::AddNewWriteBlob(std::pair<TKey, ui32>& res, TEvKeyValue::TEvReq
if (res.second > valueD.size() && res.first.IsHead()) { //change to real size if real packed size is smaller
- Y_FAIL("Can't be here right now, only after merging of small batches");
+ Y_ABORT("Can't be here right now, only after merging of small batches");
for (auto it = DataKeysHead.rbegin(); it != DataKeysHead.rend(); ++it) {
if (it->KeysCount() > 0 ) {
diff --git a/ydb/core/persqueue/pq_impl.cpp b/ydb/core/persqueue/pq_impl.cpp
index b8061cc814..91d08d4286 100644
--- a/ydb/core/persqueue/pq_impl.cpp
+++ b/ydb/core/persqueue/pq_impl.cpp
@@ -784,7 +784,7 @@ void TPersQueue::ReadTxInfo(const NKikimrClient::TKeyValueResponse::TReadResult&
break;
}
default:
- Y_FAIL("Unexpected tx info read status: %d", read.GetStatus());
+ Y_ABORT("Unexpected tx info read status: %d", read.GetStatus());
}
LOG_DEBUG_S(ctx, NKikimrServices::PERSQUEUE, "Tablet " << TabletID() << " LastStep " << LastStep << " LastTxId " << LastTxId);
@@ -850,7 +850,7 @@ void TPersQueue::ReadConfig(const NKikimrClient::TKeyValueResponse::TReadResult&
} else if (read.GetStatus() == NKikimrProto::NODATA) {
LOG_INFO_S(ctx, NKikimrServices::PERSQUEUE, "Tablet " << TabletID() << " no config, start with empty partitions and default config");
} else {
- Y_FAIL("Unexpected config read status: %d", read.GetStatus());
+ Y_ABORT("Unexpected config read status: %d", read.GetStatus());
}
THashMap<ui32, TVector<TTransaction>> partitionTxs;
@@ -904,7 +904,7 @@ void TPersQueue::ReadState(const NKikimrClient::TKeyValueResponse::TReadResult&
} else if (read.GetStatus() == NKikimrProto::NODATA) {
TabletState = NKikimrPQ::ENormal;
} else {
- Y_FAIL("Unexpected state read status: %d", read.GetStatus());
+ Y_ABORT("Unexpected state read status: %d", read.GetStatus());
}
}
@@ -2236,7 +2236,7 @@ void TPersQueue::Handle(TEvPersQueue::TEvRequest::TPtr& ev, const TActorContext&
HandleDeregisterMessageGroupRequest(responseCookie, partActor, req, ctx);
} else if (req.HasCmdSplitMessageGroup()) {
HandleSplitMessageGroupRequest(responseCookie, partActor, req, ctx);
- } else Y_FAIL("unknown or empty command");
+ } else Y_ABORT("unknown or empty command");
}
@@ -2834,7 +2834,7 @@ void TPersQueue::ProcessProposeTransactionQueue(const TActorContext& ctx)
ScheduleProposeTransactionResult(tx);
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
}
diff --git a/ydb/core/persqueue/read_balancer.cpp b/ydb/core/persqueue/read_balancer.cpp
index b22e2277ae..9b19cc73af 100644
--- a/ydb/core/persqueue/read_balancer.cpp
+++ b/ydb/core/persqueue/read_balancer.cpp
@@ -122,7 +122,7 @@ bool TPersQueueReadBalancer::TTxInit::Execute(TTransactionContext& txc, const TA
} catch (const TNotReadyTabletException&) {
return false;
} catch (...) {
- Y_FAIL("there must be no leaked exceptions");
+ Y_ABORT("there must be no leaked exceptions");
}
return true;
}
@@ -590,7 +590,7 @@ void TPersQueueReadBalancer::Handle(TEvPersQueue::TEvUpdateBalancerConfig::TPtr
for (auto& p : PartitionsInfo) {
if (partitionsInfo.find(p.first) == partitionsInfo.end()) {
- Y_FAIL("deleting of partitions is not fully supported yet");
+ Y_ABORT("deleting of partitions is not fully supported yet");
deletedPartitions.push_back(p.first);
}
}
@@ -1089,7 +1089,7 @@ void TPersQueueReadBalancer::TClientInfo::AddSession(const ui32 group, const THa
void TPersQueueReadBalancer::HandleOnInit(TEvPersQueue::TEvRegisterReadSession::TPtr& ev, const TActorContext&)
{
- Y_FAIL("");
+ Y_ABORT("");
RegisterEvents.push_back(ev->Release().Release());
}
diff --git a/ydb/core/persqueue/read_balancer.h b/ydb/core/persqueue/read_balancer.h
index 550066a68f..70d5812048 100644
--- a/ydb/core/persqueue/read_balancer.h
+++ b/ydb/core/persqueue/read_balancer.h
@@ -206,7 +206,7 @@ class TPersQueueReadBalancer : public TActor<TPersQueueReadBalancer>, public TTa
ResourceMetrics = Executor()->GetResourceMetrics();
Become(&TThis::StateWork);
if (Executor()->GetStats().IsFollower)
- Y_FAIL("is follower works well with Balancer?");
+ Y_ABORT("is follower works well with Balancer?");
else
Execute(new TTxPreInit(this), ctx);
}
diff --git a/ydb/core/persqueue/type_coders.h b/ydb/core/persqueue/type_coders.h
index 1c184c9c9b..5804a2984d 100644
--- a/ydb/core/persqueue/type_coders.h
+++ b/ydb/core/persqueue/type_coders.h
@@ -61,7 +61,7 @@ template <>
class TCoderMask<false> {
public:
inline size_t MaxSize() const { return 0; }
- inline void AddNull() { Y_FAIL("Null values are not supported."); }
+ inline void AddNull() { Y_ABORT("Null values are not supported."); }
inline void AddNonNull() { }
inline void Seal(TBuffer&) { }
};
diff --git a/ydb/core/persqueue/writer/source_id_encoding.cpp b/ydb/core/persqueue/writer/source_id_encoding.cpp
index 8e962697bc..b4f4af39d5 100644
--- a/ydb/core/persqueue/writer/source_id_encoding.cpp
+++ b/ydb/core/persqueue/writer/source_id_encoding.cpp
@@ -32,7 +32,7 @@ TString GetSelectSourceIdQueryFromPath(const TString& path, ESourceIdTableGenera
<< NGRpcProxy::V1::TSrcIdMetaInitManager::GetInstant()->GetStorageTablePath()
<< "` WHERE Hash == $Hash AND Topic == $Topic AND ProducerId == $SourceId;";
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -46,7 +46,7 @@ TString GetSelectSourceIdQuery(const TString& root, ESourceIdTableGeneration gen
generation
);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -74,7 +74,7 @@ TString GetUpdateSourceIdQueryFromPath(const TString& path, ESourceIdTableGenera
<< "` (Hash, Topic, ProducerId, CreateTime, AccessTime, Partition) VALUES "
"($Hash, $Topic, $SourceId, $CreateTime, $AccessTime, $Partition);";
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -88,7 +88,7 @@ TString GetUpdateSourceIdQuery(const TString& root, ESourceIdTableGeneration gen
generation
);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/quoter/quoter_service.cpp b/ydb/core/quoter/quoter_service.cpp
index a90fd737c5..7f2394f0f2 100644
--- a/ydb/core/quoter/quoter_service.cpp
+++ b/ydb/core/quoter/quoter_service.cpp
@@ -779,7 +779,7 @@ void TQuoterService::InitialRequestProcessing(TEvQuota::TEvRequest::TPtr &ev, co
canAllow = false;
break;
default:
- Y_FAIL("unkown initLeafStatus");
+ Y_ABORT("unkown initLeafStatus");
}
}
@@ -1062,7 +1062,7 @@ void TQuoterService::Handle(TEvQuota::TEvProxySession::TPtr &ev) {
case EStatUpdatePolicy::EveryActiveTick:
break;
default:
- Y_FAIL("not implemented");
+ Y_ABORT("not implemented");
}
}
diff --git a/ydb/core/quoter/quoter_service_bandwidth_test/quota_requester.cpp b/ydb/core/quoter/quoter_service_bandwidth_test/quota_requester.cpp
index 02ca905e07..c5db95e89b 100644
--- a/ydb/core/quoter/quoter_service_bandwidth_test/quota_requester.cpp
+++ b/ydb/core/quoter/quoter_service_bandwidth_test/quota_requester.cpp
@@ -50,7 +50,7 @@ void TBaseQuotaRequester::Handle(TEvQuota::TEvClearance::TPtr& ev) {
++Stats.OkResponses;
break;
default:
- Y_FAIL("Error result");
+ Y_ABORT("Error result");
}
}
diff --git a/ydb/core/sys_view/processor/db_counters.cpp b/ydb/core/sys_view/processor/db_counters.cpp
index 4fa95fb999..d8cd30904d 100644
--- a/ydb/core/sys_view/processor/db_counters.cpp
+++ b/ydb/core/sys_view/processor/db_counters.cpp
@@ -169,7 +169,7 @@ static void ResetLabeledCounters(NKikimrLabeledCounters::TTabletLabeledCounters*
counter.SetValue(0);
break;
default:
- Y_FAIL("bad aggrFunc value");
+ Y_ABORT("bad aggrFunc value");
}
}
}
diff --git a/ydb/core/sys_view/processor/processor_impl.cpp b/ydb/core/sys_view/processor/processor_impl.cpp
index 94b5f47eca..462bc4ead5 100644
--- a/ydb/core/sys_view/processor/processor_impl.cpp
+++ b/ydb/core/sys_view/processor/processor_impl.cpp
@@ -467,7 +467,7 @@ void TSysViewProcessor::Handle(TEvPrivate::TEvProcess::TPtr&) {
TEvSysView::TEvGetQueryStatsResponse>(*req);
}
} else {
- Y_FAIL("unknown SVP request");
+ Y_ABORT("unknown SVP request");
}
}
diff --git a/ydb/core/sys_view/storage/base.h b/ydb/core/sys_view/storage/base.h
index 81400d1cfa..d56b7f1871 100644
--- a/ydb/core/sys_view/storage/base.h
+++ b/ydb/core/sys_view/storage/base.h
@@ -84,7 +84,7 @@ namespace NKikimr::NSysView {
case NScheme::NTypeIds::Float: return Convert<float>(value);
case NScheme::NTypeIds::Interval: return Convert<i64>(value);
case NScheme::NTypeIds::Timestamp: return Convert<ui64>(value);
- default: Y_FAIL();
+ default: Y_ABORT();
}
}
@@ -144,7 +144,7 @@ namespace NKikimr::NSysView {
case E::TYPE_GROUP:
case E::TYPE_MESSAGE:
case E::TYPE_ENUM:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/tablet/bootstrapper.cpp b/ydb/core/tablet/bootstrapper.cpp
index cd2e223e67..383233683a 100644
--- a/ydb/core/tablet/bootstrapper.cpp
+++ b/ydb/core/tablet/bootstrapper.cpp
@@ -325,7 +325,7 @@ class TBootstrapper : public TActor<TBootstrapper> {
Round->Aliens[alienNodeIdx] = TRound::TAlien(TRound::EAlienState::Disconnected, Max<ui64>());
return false;
default:
- Y_FAIL("unhandled case");
+ Y_ABORT("unhandled case");
}
}
diff --git a/ydb/core/tablet/private/aggregated_counters.cpp b/ydb/core/tablet/private/aggregated_counters.cpp
index 53a7197fb6..1d3126e866 100644
--- a/ydb/core/tablet/private/aggregated_counters.cpp
+++ b/ydb/core/tablet/private/aggregated_counters.cpp
@@ -648,7 +648,7 @@ void TAggregatedLabeledCounters::Recalc(ui32 idx) const {
aggrVal.first += tValue.first;
break;
default:
- Y_FAIL("bad aggrFunc value");
+ Y_ABORT("bad aggrFunc value");
};
}
diff --git a/ydb/core/tablet/resource_broker_impl.h b/ydb/core/tablet/resource_broker_impl.h
index 8f08a9f7ba..6680d87272 100644
--- a/ydb/core/tablet/resource_broker_impl.h
+++ b/ydb/core/tablet/resource_broker_impl.h
@@ -458,7 +458,7 @@ public:
HFunc(TEvResourceBroker::TEvResourceBrokerRequest, Handle);
HFunc(NMon::TEvHttpInfo, Handle);
default:
- Y_FAIL("TResourceBroker::StateWork unexpected event type: %" PRIx32 " event: %s",
+ Y_ABORT("TResourceBroker::StateWork unexpected event type: %" PRIx32 " event: %s",
ev->GetTypeRewrite(),
ev->ToString().data());
}
diff --git a/ydb/core/tablet/tablet_counters.cpp b/ydb/core/tablet/tablet_counters.cpp
index 33e9a3f51e..69ba73235c 100644
--- a/ydb/core/tablet/tablet_counters.cpp
+++ b/ydb/core/tablet/tablet_counters.cpp
@@ -223,7 +223,7 @@ void TTabletLabeledCountersBase::AggregateWith(const TTabletLabeledCountersBase&
Ids[i].Set(0);
break;
default:
- Y_FAIL("unknown aggregate func");
+ Y_ABORT("unknown aggregate func");
}
}
Drop = Drop || rp.Drop;
diff --git a/ydb/core/tablet/tablet_counters_aggregator.cpp b/ydb/core/tablet/tablet_counters_aggregator.cpp
index f7c5d9d061..40c44f9163 100644
--- a/ydb/core/tablet/tablet_counters_aggregator.cpp
+++ b/ydb/core/tablet/tablet_counters_aggregator.cpp
@@ -1811,7 +1811,7 @@ public:
break;
}
default:
- Y_FAIL("unknown type");
+ Y_ABORT("unknown type");
}
labeledCounter.SetAggregateFunc(NKikimr::TLabeledCounterOptions::EAggregateFunc(g.second->GetAggrFuncs()[i]));
labeledCounter.SetType(NKikimr::TLabeledCounterOptions::ECounterType(g.second->GetTypes()[i]));
diff --git a/ydb/core/tablet/tablet_counters_protobuf.h b/ydb/core/tablet/tablet_counters_protobuf.h
index cc1d77ae57..32ca2f48a1 100644
--- a/ydb/core/tablet/tablet_counters_protobuf.h
+++ b/ydb/core/tablet/tablet_counters_protobuf.h
@@ -81,7 +81,7 @@ public:
if (!AppGlobalRanges.empty())
return AppGlobalRanges;
}
- Y_FAIL("Ranges for percentile counter '%s' are not defined", AppCountersDesc()->value(idx)->full_name().c_str());
+ Y_ABORT("Ranges for percentile counter '%s' are not defined", AppCountersDesc()->value(idx)->full_name().c_str());
}
virtual bool GetIntegral(size_t idx) const {
@@ -193,10 +193,10 @@ public:
}
}
if (idx < TxOffset) {
- Y_FAIL("Ranges for percentile counter '%s' are not defined", AppCountersDesc()->value(idx)->full_name().c_str());
+ Y_ABORT("Ranges for percentile counter '%s' are not defined", AppCountersDesc()->value(idx)->full_name().c_str());
} else {
size_t idx2 = (idx - TxOffset) % TxCountersSize;
- Y_FAIL("Ranges for percentile counter '%s' are not defined", TxCountersDesc()->value(idx2)->full_name().c_str());
+ Y_ABORT("Ranges for percentile counter '%s' are not defined", TxCountersDesc()->value(idx2)->full_name().c_str());
}
}
};
diff --git a/ydb/core/tablet/tablet_list_renderer.cpp b/ydb/core/tablet/tablet_list_renderer.cpp
index 102d15d3d4..9d51b8bec0 100644
--- a/ydb/core/tablet/tablet_list_renderer.cpp
+++ b/ydb/core/tablet/tablet_list_renderer.cpp
@@ -35,7 +35,7 @@ std::function<bool(const NKikimrWhiteboard::TTabletStateInfo&)> TTabletStateClas
case DEAD_TABLETS:
return &IsDeadTablet;
default:
- Y_FAIL("Bad tablet state class");
+ Y_ABORT("Bad tablet state class");
return nullptr;
}
}
@@ -48,7 +48,7 @@ TString TTabletStateClassifier::GetTabletStateClassName(ui32 cls)
case DEAD_TABLETS:
return "Dead tablets";
default:
- Y_FAIL("Bad tablet state class");
+ Y_ABORT("Bad tablet state class");
return "";
}
}
diff --git a/ydb/core/tablet/tablet_req_rebuildhistory.cpp b/ydb/core/tablet/tablet_req_rebuildhistory.cpp
index a9d6b66c14..9189407554 100644
--- a/ydb/core/tablet/tablet_req_rebuildhistory.cpp
+++ b/ydb/core/tablet/tablet_req_rebuildhistory.cpp
@@ -68,7 +68,7 @@ class TTabletReqRebuildHistoryGraph : public TActorBootstrapped<TTabletReqRebuil
Status = StatusOk;
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -88,7 +88,7 @@ class TTabletReqRebuildHistoryGraph : public TActorBootstrapped<TTabletReqRebuil
case StatusMustBeIgnoredBody:
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -152,7 +152,7 @@ class TTabletReqRebuildHistoryGraph : public TActorBootstrapped<TTabletReqRebuil
case StatusMustBeIgnoredBody:
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -639,7 +639,7 @@ class TTabletReqRebuildHistoryGraph : public TActorBootstrapped<TTabletReqRebuil
case TLogEntry::StatusUnknown:
break;
case TLogEntry::StatusOk:
- Y_FAIL();
+ Y_ABORT();
case TLogEntry::StatusBody:
{
bool dependsOk = true;
@@ -705,7 +705,7 @@ class TTabletReqRebuildHistoryGraph : public TActorBootstrapped<TTabletReqRebuil
}
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
} else {
if (step <= gx.Cutoff) {
diff --git a/ydb/core/tablet/tablet_resolver.cpp b/ydb/core/tablet/tablet_resolver.cpp
index 6310282895..5af056baa8 100644
--- a/ydb/core/tablet/tablet_resolver.cpp
+++ b/ydb/core/tablet/tablet_resolver.cpp
@@ -514,7 +514,7 @@ class TTabletResolver : public TActorBootstrapped<TTabletResolver> {
PushQueue(ev, entry, ctx);
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -566,7 +566,7 @@ class TTabletResolver : public TActorBootstrapped<TTabletResolver> {
}
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -609,7 +609,7 @@ class TTabletResolver : public TActorBootstrapped<TTabletResolver> {
switch (entry.State) {
case TEntry::StInit:
- Y_FAIL("must not happens");
+ Y_ABORT("must not happens");
case TEntry::StInitResolve:
if (success) {
if (msg->CurrentLeaderTablet) {
@@ -669,7 +669,7 @@ class TTabletResolver : public TActorBootstrapped<TTabletResolver> {
case TEntry::StNormal:
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -704,7 +704,7 @@ class TTabletResolver : public TActorBootstrapped<TTabletResolver> {
}
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -735,7 +735,7 @@ class TTabletResolver : public TActorBootstrapped<TTabletResolver> {
}
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -767,7 +767,7 @@ class TTabletResolver : public TActorBootstrapped<TTabletResolver> {
}
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/tablet/tablet_sys.cpp b/ydb/core/tablet/tablet_sys.cpp
index 7c6387983e..75a103ff8a 100644
--- a/ydb/core/tablet/tablet_sys.cpp
+++ b/ydb/core/tablet/tablet_sys.cpp
@@ -820,7 +820,7 @@ void TTablet::HandleStateStorageInfoResolve(TEvStateStorage::TEvInfo::TPtr &ev)
case NKikimrProto::TIMEOUT:
return LockedInitializationPath();
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -853,7 +853,7 @@ void TTablet::HandleStateStorageInfoLock(TEvStateStorage::TEvInfo::TPtr &ev) {
case NKikimrProto::RACE:
return CancelTablet(TEvTablet::TEvTabletDead::ReasonBootRace);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -889,7 +889,7 @@ void TTablet::HandleStateStorageInfoUpgrade(TEvStateStorage::TEvInfo::TPtr &ev)
case NKikimrProto::RACE:
return CancelTablet(TEvTablet::TEvTabletDead::ReasonBootRace);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/tablet/tablet_sys.h b/ydb/core/tablet/tablet_sys.h
index 4e0e89e2bf..17ea154e4f 100644
--- a/ydb/core/tablet/tablet_sys.h
+++ b/ydb/core/tablet/tablet_sys.h
@@ -538,7 +538,7 @@ class TTablet : public TActor<TTablet> {
switch (ev->GetTypeRewrite()) {
cFunc(TEvents::TEvBootstrap::EventType, Bootstrap);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -546,7 +546,7 @@ class TTablet : public TActor<TTablet> {
switch (ev->GetTypeRewrite()) {
cFunc(TEvents::TEvBootstrap::EventType, BootstrapFollower);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/tablet_flat/flat_bio_actor.cpp b/ydb/core/tablet_flat/flat_bio_actor.cpp
index 09135d7e7b..c198253341 100644
--- a/ydb/core/tablet_flat/flat_bio_actor.cpp
+++ b/ydb/core/tablet_flat/flat_bio_actor.cpp
@@ -50,7 +50,7 @@ void TBlockIO::Inbox(TEventHandlePtr &eh)
} else if (eh->CastAsLocal<TEvents::TEvPoison>()) {
PassAway();
} else {
- Y_FAIL("Page collection blocks IO actor got an unexpected event");
+ Y_ABORT("Page collection blocks IO actor got an unexpected event");
}
}
@@ -103,7 +103,7 @@ void TBlockIO::Dispatch() noexcept
auto glob = Origin->PageCollection->Glob(brick.Blob);
if ((group = (on ? group : glob.Group)) != glob.Group)
- Y_FAIL("Cannot handle different groups in one request");
+ Y_ABORT("Cannot handle different groups in one request");
query[on].Id = glob.Logo;
query[on].Shift = brick.Skip;
diff --git a/ydb/core/tablet_flat/flat_boot_alter.h b/ydb/core/tablet_flat/flat_boot_alter.h
index 1d97503fd3..2d058360d9 100644
--- a/ydb/core/tablet_flat/flat_boot_alter.h
+++ b/ydb/core/tablet_flat/flat_boot_alter.h
@@ -39,7 +39,7 @@ namespace NBoot {
auto *load = step->ConsumeAs<TLoadBlobs>(Pending);
if (load->Cookie < Skip || load->Cookie - Skip >= Queue.size())
- Y_FAIL("Got TLoadBlobs result cookie out of queue range");
+ Y_ABORT("Got TLoadBlobs result cookie out of queue range");
Queue.at(load->Cookie - Skip).Body = load->Plain();
diff --git a/ydb/core/tablet_flat/flat_boot_bundle.h b/ydb/core/tablet_flat/flat_boot_bundle.h
index 18e21996a2..6bc94ed252 100644
--- a/ydb/core/tablet_flat/flat_boot_bundle.h
+++ b/ydb/core/tablet_flat/flat_boot_bundle.h
@@ -75,11 +75,11 @@ namespace NBoot {
auto *load = step->ConsumeAs<TLoadBlobs>(LeftMetas);
if (Loader) {
- Y_FAIL("Got an unexpected load blobs result");
+ Y_ABORT("Got an unexpected load blobs result");
} else if (load->Cookie >= PageCollections.size()) {
- Y_FAIL("Got blobs load step with an invalid cookie");
+ Y_ABORT("Got blobs load step with an invalid cookie");
} else if (PageCollections[load->Cookie]) {
- Y_FAIL("Page collection is already loaded at room %zu", load->Cookie);
+ Y_ABORT("Page collection is already loaded at room %zu", load->Cookie);
} else {
auto *pack = new NPageCollection::TPageCollection(load->LargeGlobId, load->PlainData());
diff --git a/ydb/core/tablet_flat/flat_boot_gclog.h b/ydb/core/tablet_flat/flat_boot_gclog.h
index 435aa9d758..8846111727 100644
--- a/ydb/core/tablet_flat/flat_boot_gclog.h
+++ b/ydb/core/tablet_flat/flat_boot_gclog.h
@@ -40,7 +40,7 @@ namespace NBoot {
auto *load = step->ConsumeAs<TLoadBlobs>(Pending);
if (load->Cookie < Skip || load->Cookie - Skip >= Queue.size())
- Y_FAIL("Got TLoadBlobs result cookie out of queue range");
+ Y_ABORT("Got TLoadBlobs result cookie out of queue range");
Queue.at(load->Cookie - Skip).Body = load->Plain();
diff --git a/ydb/core/tablet_flat/flat_boot_iface.h b/ydb/core/tablet_flat/flat_boot_iface.h
index c30a2f24aa..8211796733 100644
--- a/ydb/core/tablet_flat/flat_boot_iface.h
+++ b/ydb/core/tablet_flat/flat_boot_iface.h
@@ -74,12 +74,12 @@ namespace NBoot {
virtual bool HandleBio(NSharedCache::TEvResult&) noexcept
{
- Y_FAIL("Boot IStep got an unhandled NSharedCache::TEvResult event");
+ Y_ABORT("Boot IStep got an unhandled NSharedCache::TEvResult event");
}
virtual void HandleStep(TIntrusivePtr<IStep>) noexcept
{
- Y_FAIL("Boot IStep got an unhandled child step result");
+ Y_ABORT("Boot IStep got an unhandled child step result");
}
template<typename TStep, typename ... TArgs>
@@ -104,7 +104,7 @@ namespace NBoot {
if (typeid(*this) == typeid(TStep)) {
return static_cast<TStep*>(this);
} else if (require) {
- Y_FAIL("Cannot cast IStep to particular unit");
+ Y_ABORT("Cannot cast IStep to particular unit");
} else {
return nullptr;
}
diff --git a/ydb/core/tablet_flat/flat_boot_loans.h b/ydb/core/tablet_flat/flat_boot_loans.h
index 774be85e32..f9d6eadd57 100644
--- a/ydb/core/tablet_flat/flat_boot_loans.h
+++ b/ydb/core/tablet_flat/flat_boot_loans.h
@@ -40,7 +40,7 @@ namespace NBoot {
auto *load = step->ConsumeAs<TLoadBlobs>(Pending);
if (load->Cookie < Skip || load->Cookie - Skip >= Queue.size())
- Y_FAIL("Got TLoadBlobs result cookie out of queue range");
+ Y_ABORT("Got TLoadBlobs result cookie out of queue range");
Queue.at(load->Cookie - Skip).Body = load->Plain();
diff --git a/ydb/core/tablet_flat/flat_boot_redo.h b/ydb/core/tablet_flat/flat_boot_redo.h
index dd404848ed..d70b0691b3 100644
--- a/ydb/core/tablet_flat/flat_boot_redo.h
+++ b/ydb/core/tablet_flat/flat_boot_redo.h
@@ -51,7 +51,7 @@ namespace NBoot {
auto *load = step->ConsumeAs<TLoadBlobs>(Pending);
if (load->Cookie < Skip || load->Cookie - Skip >= Queue.size())
- Y_FAIL("Got TLoadBlobs result cookie out of queue range");
+ Y_ABORT("Got TLoadBlobs result cookie out of queue range");
Queue.at(load->Cookie - Skip).Body = load->Plain();
diff --git a/ydb/core/tablet_flat/flat_boot_util.h b/ydb/core/tablet_flat/flat_boot_util.h
index 2df648fbd0..02fc004d9e 100644
--- a/ydb/core/tablet_flat/flat_boot_util.h
+++ b/ydb/core/tablet_flat/flat_boot_util.h
@@ -49,7 +49,7 @@ namespace NBoot {
{
if (Value > Max<decltype(Value)>() - inc) {
- Y_FAIL("TLeft counter is overflowed");
+ Y_ABORT("TLeft counter is overflowed");
}
Value += inc;
diff --git a/ydb/core/tablet_flat/flat_database.cpp b/ydb/core/tablet_flat/flat_database.cpp
index a46da79c96..ab46be9de0 100644
--- a/ydb/core/tablet_flat/flat_database.cpp
+++ b/ydb/core/tablet_flat/flat_database.cpp
@@ -64,7 +64,7 @@ TAutoPtr<TTableIt> TDatabase::Iterate(ui32 table, TRawVals key, TTagsRef tags, E
}
}
- Y_FAIL("Don't know how to convert ELookup to ESeek mode");
+ Y_ABORT("Don't know how to convert ELookup to ESeek mode");
};
IteratedTables.insert(table);
@@ -276,7 +276,7 @@ void TDatabase::Update(ui32 table, ERowOp rop, TRawVals key, TArrayRef<const TUp
for (size_t index = 0; index < key.size(); ++index) {
if (auto error = NScheme::HasUnexpectedValueSize(key[index])) {
- Y_FAIL("Key index %" PRISZT " validation failure: %s", index, error.c_str());
+ Y_ABORT("Key index %" PRISZT " validation failure: %s", index, error.c_str());
}
}
@@ -291,7 +291,7 @@ void TDatabase::Update(ui32 table, ERowOp rop, TRawVals key, TArrayRef<const TUp
for (size_t index = 0; index < ModifiedOps.size(); ++index) {
TUpdateOp& op = ModifiedOps[index];
if (auto error = NScheme::HasUnexpectedValueSize(op.Value)) {
- Y_FAIL("Op index %" PRISZT " tag %" PRIu32 " validation failure: %s", index, op.Tag, error.c_str());
+ Y_ABORT("Op index %" PRISZT " tag %" PRIu32 " validation failure: %s", index, op.Tag, error.c_str());
}
if (op.Value.IsEmpty()) {
@@ -322,7 +322,7 @@ void TDatabase::UpdateTx(ui32 table, ERowOp rop, TRawVals key, TArrayRef<const T
{
for (size_t index = 0; index < key.size(); ++index) {
if (auto error = NScheme::HasUnexpectedValueSize(key[index])) {
- Y_FAIL("Key index %" PRISZT " validation failure: %s", index, error.c_str());
+ Y_ABORT("Key index %" PRISZT " validation failure: %s", index, error.c_str());
}
}
@@ -330,7 +330,7 @@ void TDatabase::UpdateTx(ui32 table, ERowOp rop, TRawVals key, TArrayRef<const T
for (size_t index = 0; index < ModifiedOps.size(); ++index) {
TUpdateOp& op = ModifiedOps[index];
if (auto error = NScheme::HasUnexpectedValueSize(op.Value)) {
- Y_FAIL("Op index %" PRISZT " tag %" PRIu32 " validation failure: %s", index, op.Tag, error.c_str());
+ Y_ABORT("Op index %" PRISZT " tag %" PRIu32 " validation failure: %s", index, op.Tag, error.c_str());
}
if (op.Value.IsEmpty()) {
diff --git a/ydb/core/tablet_flat/flat_dbase_apply.cpp b/ydb/core/tablet_flat/flat_dbase_apply.cpp
index 8e8bede3c6..ba5e012280 100644
--- a/ydb/core/tablet_flat/flat_dbase_apply.cpp
+++ b/ydb/core/tablet_flat/flat_dbase_apply.cpp
@@ -160,7 +160,7 @@ bool TSchemeModifier::Apply(const TAlterRecord &delta)
} else if (action == TAlterRecord::SetCompactionPolicy) {
changes |= SetCompactionPolicy(table, delta.GetCompactionPolicy());
} else {
- Y_FAIL("unknown scheme delta record type");
+ Y_ABORT("unknown scheme delta record type");
}
if (delta.HasTableId() && changes)
diff --git a/ydb/core/tablet_flat/flat_dbase_naked.h b/ydb/core/tablet_flat/flat_dbase_naked.h
index e1822be056..5e6f8b179e 100644
--- a/ydb/core/tablet_flat/flat_dbase_naked.h
+++ b/ydb/core/tablet_flat/flat_dbase_naked.h
@@ -568,7 +568,7 @@ namespace NTable {
TTableWrapper& MakeTable(ui32 table, TSnapEdge edge) noexcept
{
if (edge.TxStamp == Max<ui64>()) {
- Y_FAIL("Cannot make table on undefined TxStamp edge");
+ Y_ABORT("Cannot make table on undefined TxStamp edge");
} else if (edge.Head == TEpoch::Zero()) {
/* Table written in compatability mode utilizes global
TxStamp instead of private TEpoch values. In order
@@ -656,7 +656,7 @@ namespace NTable {
for (auto it : xrange(Annex.size()))
if (Annex[it].GId != *annex[it]) {
- Y_FAIL("NRedo EvAnnex isn't match to assigned annex");
+ Y_ABORT("NRedo EvAnnex isn't match to assigned annex");
}
} else {
diff --git a/ydb/core/tablet_flat/flat_dbase_sz_env.h b/ydb/core/tablet_flat/flat_dbase_sz_env.h
index 39be8cd853..9a5d36538a 100644
--- a/ydb/core/tablet_flat/flat_dbase_sz_env.h
+++ b/ydb/core/tablet_flat/flat_dbase_sz_env.h
@@ -13,7 +13,7 @@ namespace NTable {
TResult Locate(const TMemTable*, ui64, ui32) noexcept override
{
- Y_FAIL("IPages::Locate(TMemTable*, ...) shouldn't be used here");
+ Y_ABORT("IPages::Locate(TMemTable*, ...) shouldn't be used here");
}
TResult Locate(const TPart *part, ui64 ref, ELargeObj lob) noexcept override
diff --git a/ydb/core/tablet_flat/flat_executor.cpp b/ydb/core/tablet_flat/flat_executor.cpp
index 7d45451aa6..b38644f5e0 100644
--- a/ydb/core/tablet_flat/flat_executor.cpp
+++ b/ydb/core/tablet_flat/flat_executor.cpp
@@ -484,7 +484,7 @@ void TExecutor::TranscriptBootOpResult(ui32 res, const TActorContext &ctx) {
return Broken();
default:
- Y_FAIL("unknown boot result");
+ Y_ABORT("unknown boot result");
}
}
@@ -503,7 +503,7 @@ void TExecutor::TranscriptFollowerBootOpResult(ui32 res, const TActorContext &ct
return Broken();
default:
- Y_FAIL("unknown boot result");
+ Y_ABORT("unknown boot result");
}
}
@@ -801,7 +801,7 @@ void TExecutor::FollowerSyncComplete() {
else if (BootLogic)
BootLogic->FollowersSyncComplete();
else
- Y_FAIL("must not happens");
+ Y_ABORT("must not happens");
}
void TExecutor::FollowerGcApplied(ui32 step, TDuration followerSyncDelay) {
@@ -905,7 +905,7 @@ void TExecutor::ApplyFollowerUpdate(THolder<TEvTablet::TFUpdateBody> update) {
// ignore
break;
default:
- Y_FAIL("unsupported blob kind");
+ Y_ABORT("unsupported blob kind");
}
}
}
@@ -1141,7 +1141,7 @@ bool TExecutor::PrepareExternalPart(TPendingPartSwitch &partSwitch, TPendingPart
return false;
}
- Y_FAIL("Unexpected PrepareExternalPart called");
+ Y_ABORT("Unexpected PrepareExternalPart called");
}
bool TExecutor::PrepareExternalTxStatus(
@@ -1174,7 +1174,7 @@ bool TExecutor::PrepareExternalTxStatus(TPendingPartSwitch &partSwitch, TPending
return false;
}
- Y_FAIL("Unexpected PrepareExternalTxStatus call");
+ Y_ABORT("Unexpected PrepareExternalTxStatus call");
}
void TExecutor::OnBlobLoaded(const TLogoBlobID& id, TString body, uintptr_t cookie) {
@@ -1211,7 +1211,7 @@ void TExecutor::OnBlobLoaded(const TLogoBlobID& id, TString body, uintptr_t cook
}
continue;
}
- Y_FAIL("Loaded blob %s for an unsupported waiter", id.ToString().c_str());
+ Y_ABORT("Loaded blob %s for an unsupported waiter", id.ToString().c_str());
}
PendingBlobQueue.SendRequests(SelfId());
@@ -1368,9 +1368,9 @@ void TExecutor::ApplyExternalPartSwitch(TPendingPartSwitch &partSwitch) {
auto subset = Database->Subset(partSwitch.TableId, partSwitch.Leaving, partSwitch.Head);
if (partSwitch.Head != subset->Head) {
- Y_FAIL("Follower table epoch head has diverged from leader");
+ Y_ABORT("Follower table epoch head has diverged from leader");
} else if (*subset && !subset->IsStickedToHead()) {
- Y_FAIL("Follower table replace subset isn't sticked to head");
+ Y_ABORT("Follower table replace subset isn't sticked to head");
}
Y_ABORT_UNLESS(newColdParts.empty(), "Unexpected cold part at a follower");
@@ -2865,7 +2865,7 @@ void TExecutor::Handle(TEvTablet::TEvCommitResult::TPtr &ev, const TActorContext
case ECommit::Misc:
break;
default:
- Y_FAIL("unknown event cookie");
+ Y_ABORT("unknown event cookie");
}
CheckYellow(std::move(msg->YellowMoveChannels), std::move(msg->YellowStopChannels));
@@ -2902,7 +2902,7 @@ void TExecutor::Handle(TEvResourceBroker::TEvResourceAllocated::TPtr &ev) {
case TResource::ESource::Scan:
return StartScan(msg->TaskId, cookie);
default:
- Y_FAIL("unexpected resource source");
+ Y_ABORT("unexpected resource source");
}
}
@@ -3080,7 +3080,7 @@ void TExecutor::UtilizeSubset(const NTable::TSubset &subset,
seen.Sieve.back().MaterializeTo(commit->GcDelta.Deleted);
} else if (seen.Sieve.size() != subset.Flatten.size()) {
- Y_FAIL("Got an unexpected TSieve items count after compaction");
+ Y_ABORT("Got an unexpected TSieve items count after compaction");
}
for (auto it : xrange(subset.Flatten.size())) {
@@ -3817,7 +3817,7 @@ void TExecutor::AllowBorrowedGarbageCompaction(ui32 tableId) {
STFUNC(TExecutor::StateInit) {
Y_UNUSED(ev);
- Y_FAIL("must be no events before boot processing");
+ Y_ABORT("must be no events before boot processing");
}
STFUNC(TExecutor::StateBoot) {
diff --git a/ydb/core/tablet_flat/flat_executor_compaction_logic.cpp b/ydb/core/tablet_flat/flat_executor_compaction_logic.cpp
index e5ed72fe4f..555bacba9b 100644
--- a/ydb/core/tablet_flat/flat_executor_compaction_logic.cpp
+++ b/ydb/core/tablet_flat/flat_executor_compaction_logic.cpp
@@ -339,7 +339,7 @@ THolder<NTable::ICompactionStrategy> TCompactionLogic::CreateStrategy(
tableId, Backend, Broker, Time, TaskNameSuffix);
default:
- Y_FAIL("Unsupported strategy %s", NKikimrSchemeOp::ECompactionStrategy_Name(strategy).c_str());
+ Y_ABORT("Unsupported strategy %s", NKikimrSchemeOp::ECompactionStrategy_Name(strategy).c_str());
}
}
@@ -554,7 +554,7 @@ bool TCompactionLogic::BeginMemTableCompaction(ui64 taskId, ui32 tableId)
break;
default:
- Y_FAIL("Invalid inMem.State");
+ Y_ABORT("Invalid inMem.State");
}
ui64 forcedCompactionId = 0;
@@ -618,7 +618,7 @@ TCompactionLogic::HandleCompaction(
inMem.CompactionTask.CompactionId = 0;
break;
default:
- Y_FAIL("must not happens, state=%d", (int)inMem.State);
+ Y_ABORT("must not happens, state=%d", (int)inMem.State);
}
if (tableInfo->ForcedCompactionState == EForcedCompactionState::CompactingMem) {
diff --git a/ydb/core/tablet_flat/flat_executor_database_ut.cpp b/ydb/core/tablet_flat/flat_executor_database_ut.cpp
index f7fd01a71e..3cb87d20fe 100644
--- a/ydb/core/tablet_flat/flat_executor_database_ut.cpp
+++ b/ydb/core/tablet_flat/flat_executor_database_ut.cpp
@@ -68,7 +68,7 @@ public:
return Fuzzy.EraseRowTx(testDb, txc, table, key);
};
} else {
- Y_FAIL("Random generator produced unexpected action value");
+ Y_ABORT("Random generator produced unexpected action value");
}
QueueTx(func);
@@ -262,7 +262,7 @@ private:
} else if (RowCount == Rows + 1) {
QueueTx([this](ITestDb& testDb, TTransactionContext&){ TDbWrapper db(testDb); return this->DoFullScanTx(db); });
} else if (RowCount > Rows + 1) {
- Y_FAIL("Shouldn't request more task after EDo::Stop");
+ Y_ABORT("Shouldn't request more task after EDo::Stop");
}
return RowCount <= Rows ? EDo::More : EDo::Stop;
diff --git a/ydb/core/tablet_flat/flat_fwd_blobs.h b/ydb/core/tablet_flat/flat_fwd_blobs.h
index ea66443401..1d0893caa3 100644
--- a/ydb/core/tablet_flat/flat_fwd_blobs.h
+++ b/ydb/core/tablet_flat/flat_fwd_blobs.h
@@ -59,11 +59,11 @@ namespace NFwd {
{
for (auto &one: loaded) {
if (!Pages || one.PageId < Pages.front().PageId) {
- Y_FAIL("Blobs fwd cache got page below queue");
+ Y_ABORT("Blobs fwd cache got page below queue");
} else if (one.PageId > Pages.back().PageId) {
- Y_FAIL("Blobs fwd cache got page above queue");
+ Y_ABORT("Blobs fwd cache got page above queue");
} else if (one.Data.size() > OnFetch) {
- Y_FAIL("Blobs fwd cache ahead counters is out of sync");
+ Y_ABORT("Blobs fwd cache ahead counters is out of sync");
}
Stat.Saved += one.Data.size();
@@ -168,7 +168,7 @@ namespace NFwd {
if (Pages && base <= Pages.back().PageId) {
return Lookup(base).Refer;
} else if (Pages && base != Lower && base - Pages.back().PageId != 1) {
- Y_FAIL("Cannot do so long jumps around of frames");
+ Y_ABORT("Cannot do so long jumps around of frames");
} else {
const auto end = Frames->Relation(base).AbsRef(base);
@@ -193,7 +193,7 @@ namespace NFwd {
if (page.PageId >= until) {
break;
} else if (page.Size == 0) {
- Y_FAIL("Dropping page that hasn't been propagated");
+ Y_ABORT("Dropping page that hasn't been propagated");
} else if (auto size = page.Release().size()) {
OnHold -= size;
diff --git a/ydb/core/tablet_flat/flat_fwd_cache.h b/ydb/core/tablet_flat/flat_fwd_cache.h
index 1a252e1a94..c8dc9ab7ae 100644
--- a/ydb/core/tablet_flat/flat_fwd_cache.h
+++ b/ydb/core/tablet_flat/flat_fwd_cache.h
@@ -25,7 +25,7 @@ namespace NFwd {
auto it = std::find_if(Pages.begin(), Pages.end(), pred);
if (it == Pages.end()) {
- Y_FAIL("Failed to locate page within forward trace");
+ Y_ABORT("Failed to locate page within forward trace");
}
return &it->Data;
@@ -98,9 +98,9 @@ namespace NFwd {
}
if (it == Pages.end() || it->PageId != one.PageId) {
- Y_FAIL("Got page that hasn't been requested for load");
+ Y_ABORT("Got page that hasn't been requested for load");
} if (one.Data.size() > OnFetch) {
- Y_FAIL("Forward cache ahead counters is out of sync");
+ Y_ABORT("Forward cache ahead counters is out of sync");
}
Stat.Saved += one.Data.size();
@@ -141,9 +141,9 @@ namespace NFwd {
auto &page = Pages.at(Offset);
if (!Pages || page.PageId != drop.PageId) {
- Y_FAIL("Dropping page that is not exist in cache");
+ Y_ABORT("Dropping page that is not exist in cache");
} else if (page.Size == 0) {
- Y_FAIL("Dropping page that has not been touched");
+ Y_ABORT("Dropping page that has not been touched");
} else if (page.Usage == EUsage::Keep) {
OnHold -= Trace.Emplace(page);
} else if (auto size = page.Release().size()) {
diff --git a/ydb/core/tablet_flat/flat_fwd_env.h b/ydb/core/tablet_flat/flat_fwd_env.h
index a6d6eecf44..ba2046c81d 100644
--- a/ydb/core/tablet_flat/flat_fwd_env.h
+++ b/ydb/core/tablet_flat/flat_fwd_env.h
@@ -50,7 +50,7 @@ namespace NFwd {
const auto meta = PageCollection->Page(pageId);
if (meta.Type != ui16(type) || meta.Size == 0)
- Y_FAIL("Got a non-data page while part index traverse");
+ Y_ABORT("Got a non-data page while part index traverse");
Fetch->Pages.emplace_back(pageId);
@@ -283,7 +283,7 @@ namespace NFwd {
if ((q.Grow = got.Grow) || bool(q.Fetch)) {
Queue.PushBack(&q);
} else if (got.Need && got.Page == nullptr) {
- Y_FAIL("Cache line head don't want to do fetch but should");
+ Y_ABORT("Cache line head don't want to do fetch but should");
}
return { got.Need, got.Page };
diff --git a/ydb/core/tablet_flat/flat_fwd_page.h b/ydb/core/tablet_flat/flat_fwd_page.h
index 0612d99c18..0f23a50f07 100644
--- a/ydb/core/tablet_flat/flat_fwd_page.h
+++ b/ydb/core/tablet_flat/flat_fwd_page.h
@@ -58,13 +58,13 @@ namespace NFwd {
const auto was = std::exchange(Fetch, EFetch::Done);
if (PageId != page.PageId) {
- Y_FAIL("Settling page with different reference number");
+ Y_ABORT("Settling page with different reference number");
} else if (Size != page.Data.size()) {
- Y_FAIL("Requested and obtained page sizes are not the same");
+ Y_ABORT("Requested and obtained page sizes are not the same");
} else if (was == EFetch::Drop) {
std::exchange(page.Data, { });
} else if (was != EFetch::Wait) {
- Y_FAIL("Settling page that is not waiting for any data");
+ Y_ABORT("Settling page that is not waiting for any data");
} else {
Data = std::move(page.Data);
}
@@ -75,7 +75,7 @@ namespace NFwd {
const TSharedData* Touch(TPageId pageId, TStat &stat) noexcept
{
if (PageId != pageId || (!Data && Fetch == EFetch::Done)) {
- Y_FAIL("Touching page thatd doesn't fits to this action");
+ Y_ABORT("Touching page thatd doesn't fits to this action");
} else {
auto to = Fetch == EFetch::None ? EUsage::Seen : EUsage::Keep;
diff --git a/ydb/core/tablet_flat/flat_iterator.h b/ydb/core/tablet_flat/flat_iterator.h
index 2992071d0d..af3cadc050 100644
--- a/ydb/core/tablet_flat/flat_iterator.h
+++ b/ydb/core/tablet_flat/flat_iterator.h
@@ -666,12 +666,12 @@ inline EReady TTableItBase<TIteratorOps>::Turn() noexcept
break;
default:
- Y_FAIL("Unexpected EReady value");
+ Y_ABORT("Unexpected EReady value");
}
break;
}
default: {
- Y_FAIL("Unexpected iterator type");
+ Y_ABORT("Unexpected iterator type");
}
}
}
@@ -758,7 +758,7 @@ inline TRowVersion TTableItBase<TIteratorOps>::GetRowVersion() const noexcept
return RunIters[ai.Index]->GetRowVersion();
}
default:
- Y_FAIL("Unexpected iterator type");
+ Y_ABORT("Unexpected iterator type");
}
}
@@ -829,7 +829,7 @@ inline EReady TTableItBase<TIteratorOps>::Snap(TRowVersion rowVersion) noexcept
break;
}
default:
- Y_FAIL("Unexpected iterator type");
+ Y_ABORT("Unexpected iterator type");
}
// The last iterator becomes inactive
@@ -869,7 +869,7 @@ inline EReady TTableItBase<TIteratorOps>::DoSkipUncommitted() noexcept
break;
}
default:
- Y_FAIL("Unexpected iterator type");
+ Y_ABORT("Unexpected iterator type");
}
// The last iterator becomes inactive
@@ -942,7 +942,7 @@ inline EReady TTableItBase<TIteratorOps>::Apply() noexcept
break;
}
default:
- Y_FAIL("Unexpected iterator type");
+ Y_ABORT("Unexpected iterator type");
}
if (State.IsFinalized() || !committed)
@@ -980,7 +980,7 @@ inline void TTableItBase<TIteratorOps>::InitLastKey(ERowOp op) noexcept
break;
}
default: {
- Y_FAIL("Unexpected iterator type");
+ Y_ABORT("Unexpected iterator type");
}
}
@@ -1073,12 +1073,12 @@ inline bool TTableItBase<TIteratorOps>::SeekInternal(TArrayRef<const TCell> key,
break;
default:
- Y_FAIL("Unexpected EReady value");
+ Y_ABORT("Unexpected EReady value");
}
break;
}
default: {
- Y_FAIL("Unexpected iterator type");
+ Y_ABORT("Unexpected iterator type");
}
}
}
diff --git a/ydb/core/tablet_flat/flat_mem_iter.h b/ydb/core/tablet_flat/flat_mem_iter.h
index 1c572ff164..822dc0e108 100644
--- a/ydb/core/tablet_flat/flat_mem_iter.h
+++ b/ydb/core/tablet_flat/flat_mem_iter.h
@@ -368,7 +368,7 @@ namespace NTable {
} else if (op == ELargeObj::Inline) {
row.Set(pos, op, up.Value);
} else if (op != ELargeObj::Extern) {
- Y_FAIL("Got an unknown ELargeObj reference type");
+ Y_ABORT("Got an unknown ELargeObj reference type");
} else {
const auto ref = up.Value.AsValue<ui64>();
diff --git a/ydb/core/tablet_flat/flat_mem_warm.h b/ydb/core/tablet_flat/flat_mem_warm.h
index f0fc57ab1d..9d6bcb106c 100644
--- a/ydb/core/tablet_flat/flat_mem_warm.h
+++ b/ydb/core/tablet_flat/flat_mem_warm.h
@@ -363,7 +363,7 @@ namespace NMem {
} else if (TCellOp::HaveNoPayload(ops[it].NormalizedCellOp())) {
/* Payloadless ECellOp types may have zero type value */
} else if (info->TypeInfo.GetTypeId() != ops[it].Value.Type()) {
- Y_FAIL("Got an unexpected column type %" PRIu16 " in cell update for tag %" PRIu32 " (expected %" PRIu16 ")",
+ Y_ABORT("Got an unexpected column type %" PRIu16 " in cell update for tag %" PRIu32 " (expected %" PRIu16 ")",
ops[it].Value.Type(), ops[it].Tag, info->TypeInfo.GetTypeId());
}
@@ -380,7 +380,7 @@ namespace NMem {
cell = TCell::Make<ui64>(ref);
} else if (ops[it].Op != ELargeObj::Inline) {
- Y_FAIL("Got an unexpected ELargeObj reference in update ops");
+ Y_ABORT("Got an unexpected ELargeObj reference in update ops");
} else if (!cell.IsInline()) {
cell = Clone(cell.Data(), cell.Size());
}
diff --git a/ydb/core/tablet_flat/flat_ops_compact.h b/ydb/core/tablet_flat/flat_ops_compact.h
index 69655b5e48..3ab9afec61 100644
--- a/ydb/core/tablet_flat/flat_ops_compact.h
+++ b/ydb/core/tablet_flat/flat_ops_compact.h
@@ -137,7 +137,7 @@ namespace NTabletFlatExecutor {
return Flush(true /* final flush, sleep or finish */);
} else {
- Y_FAIL("Compaction scan op should get only two Seeks()");
+ Y_ABORT("Compaction scan op should get only two Seeks()");
}
}
@@ -363,9 +363,9 @@ namespace NTabletFlatExecutor {
if (fail) {
prod->Results.clear(); /* shouldn't sent w/o fixation in bs */
} else if (bool(prod->Results) != bool(WriteStats.Rows > 0)) {
- Y_FAIL("Unexpexced rows production result after compaction");
+ Y_ABORT("Unexpexced rows production result after compaction");
} else if ((bool(prod->Results) || bool(prod->TxStatus)) != bool(Blobs > 0)) {
- Y_FAIL("Unexpexced blobs production result after compaction");
+ Y_ABORT("Unexpexced blobs production result after compaction");
}
Driver = nullptr;
@@ -406,18 +406,18 @@ namespace NTabletFlatExecutor {
if (!std::exchange(Failed, true))
Driver->Touch(EScan::Final);
} else {
- Y_FAIL("Compaction actor got an unexpected event");
+ Y_ABORT("Compaction actor got an unexpected event");
}
}
void Handle(TEvPutResult &msg) noexcept
{
if (!NPageCollection::TGroupBlobsByCookie::IsInPlane(msg.Id, Mask)) {
- Y_FAIL("TEvPutResult Id mask is differ from used");
+ Y_ABORT("TEvPutResult Id mask is differ from used");
} else if (Writing < msg.Id.BlobSize()) {
- Y_FAIL("Compaction writing bytes counter is out of sync");
+ Y_ABORT("Compaction writing bytes counter is out of sync");
} else if (Flushing < msg.Id.BlobSize()) {
- Y_FAIL("Compaction flushing bytes counter is out of sync");
+ Y_ABORT("Compaction flushing bytes counter is out of sync");
}
Writing -= msg.Id.BlobSize();
diff --git a/ydb/core/tablet_flat/flat_page_blobs.h b/ydb/core/tablet_flat/flat_page_blobs.h
index 7a8372a06d..b3af79cbe7 100644
--- a/ydb/core/tablet_flat/flat_page_blobs.h
+++ b/ydb/core/tablet_flat/flat_page_blobs.h
@@ -44,7 +44,7 @@ namespace NPage {
Header = TDeref<THeader>::At(got.Page.data(), 0);
if (Header->Skip > got.Page.size())
- Y_FAIL("NPage::TExtBlobs header is out of its blob");
+ Y_ABORT("NPage::TExtBlobs header is out of its blob");
auto *ptr = TDeref<TEntry>::At(got.Page.data(), Header->Skip);
diff --git a/ydb/core/tablet_flat/flat_page_bloom.h b/ydb/core/tablet_flat/flat_page_bloom.h
index 11f3d875d5..7746bfc3ed 100644
--- a/ydb/core/tablet_flat/flat_page_bloom.h
+++ b/ydb/core/tablet_flat/flat_page_bloom.h
@@ -34,7 +34,7 @@ namespace NPage {
auto *header = TDeref<THeader>::At(got.Page.data(), 0);
if (sizeof(THeader) > got.Page.size())
- Y_FAIL("NPage::TBloom header is out of its blob");
+ Y_ABORT("NPage::TBloom header is out of its blob");
auto *ptr = TDeref<ui64>::At(got.Page.data(), sizeof(THeader));
@@ -43,13 +43,13 @@ namespace NPage {
Array = { ptr, (got.Page.size() - sizeof(THeader)) / sizeof(ui64) };
if (Items == 0) {
- Y_FAIL("NPage::TBloom page has zero items in index");
+ Y_ABORT("NPage::TBloom page has zero items in index");
} else if (Hashes == 0) {
- Y_FAIL("NPage::TBloom page has zero hash count");
+ Y_ABORT("NPage::TBloom page has zero hash count");
} else if (ui64(Array.size()) << 6 != header->Items) {
- Y_FAIL("Items in TBloom header isn't match with array");
+ Y_ABORT("Items in TBloom header isn't match with array");
} else if (header->Type != 0) {
- Y_FAIL("NPage::TBloom page made with unknown hash type");
+ Y_ABORT("NPage::TBloom page made with unknown hash type");
}
}
diff --git a/ydb/core/tablet_flat/flat_page_frames.h b/ydb/core/tablet_flat/flat_page_frames.h
index bc94cd61a9..0bd1c92d2b 100644
--- a/ydb/core/tablet_flat/flat_page_frames.h
+++ b/ydb/core/tablet_flat/flat_page_frames.h
@@ -83,7 +83,7 @@ namespace NPage {
auto hdr = TDeref<THeader>::At(ptr, 0);
if (hdr->Skip > got.Page.size())
- Y_FAIL("NPage::TFrame header is out of its blob");
+ Y_ABORT("NPage::TFrame header is out of its blob");
Stats_.Rows = hdr->Rows;
Stats_.Size = hdr->Size;
@@ -91,7 +91,7 @@ namespace NPage {
Stats_.Items = (got.Page.size() - hdr->Skip) / sizeof(TEntry);
if (hdr->Skip < sizeof(THeader) + Stats_.Tags.size() * sizeof(ui32))
- Y_FAIL("Invalid NPage::TFrame meta info blob header");
+ Y_ABORT("Invalid NPage::TFrame meta info blob header");
Records = { TDeref<TEntry>::At(ptr, hdr->Skip) , Stats_.Items };
}
diff --git a/ydb/core/tablet_flat/flat_page_other.h b/ydb/core/tablet_flat/flat_page_other.h
index 52cb61e3b7..7fb5ef3797 100644
--- a/ydb/core/tablet_flat/flat_page_other.h
+++ b/ydb/core/tablet_flat/flat_page_other.h
@@ -34,9 +34,9 @@ namespace NPage {
void Put(TRowId row, ui16 tag, ui32 bytes) noexcept
{
if (row < Last && Last != Max<TRowId>()) {
- Y_FAIL("Frame items have to follow sorted by row");
+ Y_ABORT("Frame items have to follow sorted by row");
} else if (tag >= TagsCount) {
- Y_FAIL("Frame item component tag is out of range");
+ Y_ABORT("Frame item component tag is out of range");
} else if (Last != row) {
Flush();
}
diff --git a/ydb/core/tablet_flat/flat_part_forward.h b/ydb/core/tablet_flat/flat_part_forward.h
index 7f5327cf3c..eb1acc50f1 100644
--- a/ydb/core/tablet_flat/flat_part_forward.h
+++ b/ydb/core/tablet_flat/flat_part_forward.h
@@ -55,14 +55,14 @@ namespace NTable {
EnsureStarted();
if (PageOf(Tail) > until) {
- Y_FAIL("Part lookups goes below of its trace pages");
+ Y_ABORT("Part lookups goes below of its trace pages");
} else {
const auto edgeId = Max(PageOf(Edge), until);
while (Edge != End && Edge->GetPageId() < until) ++Edge;
if (PageOf(Edge) != edgeId)
- Y_FAIL("Part lookup page is out of its index");
+ Y_ABORT("Part lookup page is out of its index");
if (Tail == Head) Tail = Head = Edge;
}
diff --git a/ydb/core/tablet_flat/flat_part_iter_multi.h b/ydb/core/tablet_flat/flat_part_iter_multi.h
index 32bd5fa215..84f9ae573f 100644
--- a/ydb/core/tablet_flat/flat_part_iter_multi.h
+++ b/ydb/core/tablet_flat/flat_part_iter_multi.h
@@ -397,7 +397,7 @@ namespace NTable {
return EReady::Data;
}
- Y_FAIL("Unexpected failure to seek in a non-final data page");
+ Y_ABORT("Unexpected failure to seek in a non-final data page");
}
using TPartGroupRowIt::IsValid;
@@ -1221,7 +1221,7 @@ namespace NTable {
row.Set(pin.To, TCellOp(ECellOp::Null, ELargeObj::Outer), { } /* no useful data */);
return;
case EReady::Gone:
- Y_FAIL("Unexpected failure to find RowId=%" PRIu64 " in group %" PRIu32 "%s",
+ Y_ABORT("Unexpected failure to find RowId=%" PRIu64 " in group %" PRIu32 "%s",
altRowId, col.Group, SkipMainVersion ? "/history" : "");
}
}
@@ -1245,7 +1245,7 @@ namespace NTable {
const auto ref = data->Cell(info).AsValue<ui64>();
if (ref >> (sizeof(ui32) * 8))
- Y_FAIL("Upper bits of ELargeObj ref now isn't used");
+ Y_ABORT("Upper bits of ELargeObj ref now isn't used");
if (auto blob = Env->Locate(Part, ref, op)) {
const auto got = NPage::TLabelWrapper().Read(**blob);
@@ -1269,7 +1269,7 @@ namespace NTable {
row.Set(pin.To, op, TCell::Make((**Part->Blobs)[ref]));
}
} else {
- Y_FAIL("Got an unknown blob placement reference type");
+ Y_ABORT("Got an unknown blob placement reference type");
}
}
@@ -1382,7 +1382,7 @@ namespace NTable {
break;
default:
- Y_FAIL("Unsupported iterator seek mode");
+ Y_ABORT("Unsupported iterator seek mode");
}
if (pos == Run.end()) {
@@ -1471,7 +1471,7 @@ namespace NTable {
break;
default:
- Y_FAIL("Unsupported iterator seek mode");
+ Y_ABORT("Unsupported iterator seek mode");
}
if (pos == Run.end()) {
diff --git a/ydb/core/tablet_flat/flat_part_keys.h b/ydb/core/tablet_flat/flat_part_keys.h
index 41c53a2c6f..f23171abbe 100644
--- a/ydb/core/tablet_flat/flat_part_keys.h
+++ b/ydb/core/tablet_flat/flat_part_keys.h
@@ -21,12 +21,12 @@ namespace NTable {
TResult Locate(const TMemTable*, ui64, ui32) noexcept override
{
- Y_FAIL("IPages::Locate(TMemTable*, ...) shouldn't be used here");
+ Y_ABORT("IPages::Locate(TMemTable*, ...) shouldn't be used here");
}
TResult Locate(const TPart*, ui64, ELargeObj) noexcept override
{
- Y_FAIL("IPages::Locate(TPart*, ...) shouldn't be used here");
+ Y_ABORT("IPages::Locate(TPart*, ...) shouldn't be used here");
}
const TSharedData* TryGetPage(const TPart* part, TPageId id, TGroupId groupId) override
diff --git a/ydb/core/tablet_flat/flat_part_loader.cpp b/ydb/core/tablet_flat/flat_part_loader.cpp
index 6c9a872a2f..86f561d317 100644
--- a/ydb/core/tablet_flat/flat_part_loader.cpp
+++ b/ydb/core/tablet_flat/flat_part_loader.cpp
@@ -144,9 +144,9 @@ TAutoPtr<NPageCollection::TFetch> TLoader::StageCreatePartView() noexcept
auto *txIdStats = GetPage(TxIdStatsId);
if (scheme == nullptr) {
- Y_FAIL("Scheme page is not loaded");
+ Y_ABORT("Scheme page is not loaded");
} else if (ByKeyId != Max<TPageId>() && !byKey) {
- Y_FAIL("Filter page must be loaded if it exists");
+ Y_ABORT("Filter page must be loaded if it exists");
} else if (small && Packs.size() != (1 + GroupIndexesIds.size() + 1)) {
Y_Fail("TPart has small blobs, " << Packs.size() << " page collections");
}
@@ -238,7 +238,7 @@ TAutoPtr<NPageCollection::TFetch> TLoader::StageSliceBounds() noexcept
} else if (auto fetches = KeysEnv->GetFetches()) {
return fetches;
} else {
- Y_FAIL("Screen keys loader stalled withoud result");
+ Y_ABORT("Screen keys loader stalled withoud result");
}
}
diff --git a/ydb/core/tablet_flat/flat_part_loader.h b/ydb/core/tablet_flat/flat_part_loader.h
index ca40d8fa82..c52e9aab61 100644
--- a/ydb/core/tablet_flat/flat_part_loader.h
+++ b/ydb/core/tablet_flat/flat_part_loader.h
@@ -117,7 +117,7 @@ namespace NTable {
}
}
- Y_FAIL("Cannot locate part metadata in page collections of PartComponents");
+ Y_ABORT("Cannot locate part metadata in page collections of PartComponents");
}
static TLogoBlobID BlobsLabelFor(const TLogoBlobID &base) noexcept
diff --git a/ydb/core/tablet_flat/flat_part_overlay.cpp b/ydb/core/tablet_flat/flat_part_overlay.cpp
index a052f8c64f..2010f46d30 100644
--- a/ydb/core/tablet_flat/flat_part_overlay.cpp
+++ b/ydb/core/tablet_flat/flat_part_overlay.cpp
@@ -143,22 +143,22 @@ void TOverlay::Validate() const noexcept
while (screen) {
if (!slices) {
- Y_FAIL("Found screen hole [%lu,%lu) that has no matching slices", screen->Begin, screen->End);
+ Y_ABORT("Found screen hole [%lu,%lu) that has no matching slices", screen->Begin, screen->End);
}
if (screen->End == Max<TRowId>()) {
if (slices.HasNext()) {
auto mid = *slices;
++slices;
- Y_FAIL("Found screen hole [%lu,+inf) that does not match slices [%lu,%lu) and [%lu,%lu)",
+ Y_ABORT("Found screen hole [%lu,+inf) that does not match slices [%lu,%lu) and [%lu,%lu)",
screen->Begin, mid.Begin, mid.End, slices->Begin, slices->End);
}
if (screen->Begin != slices->Begin) {
- Y_FAIL("Found screen hole [%lu,+inf) that does not match slice [%lu,%lu)",
+ Y_ABORT("Found screen hole [%lu,+inf) that does not match slice [%lu,%lu)",
screen->Begin, slices->Begin, slices->End);
}
} else if (!(*screen == *slices)) {
- Y_FAIL("Found screen hole [%lu,%lu) that does not match slice [%lu,%lu)",
+ Y_ABORT("Found screen hole [%lu,%lu) that does not match slice [%lu,%lu)",
screen->Begin, screen->End, slices->Begin, slices->End);
}
@@ -167,7 +167,7 @@ void TOverlay::Validate() const noexcept
}
if (slices) {
- Y_FAIL("Found slice [%lu,%lu) that has no matching screen holes", slices->Begin, slices->End);
+ Y_ABORT("Found slice [%lu,%lu) that has no matching screen holes", slices->Begin, slices->End);
}
}
diff --git a/ydb/core/tablet_flat/flat_part_screen.h b/ydb/core/tablet_flat/flat_part_screen.h
index 64a686ff23..04c6ec38b2 100644
--- a/ydb/core/tablet_flat/flat_part_screen.h
+++ b/ydb/core/tablet_flat/flat_part_screen.h
@@ -198,7 +198,7 @@ namespace NTable {
sub.back() = hole.Cut(sub.back());
if (!sub.front() || !sub.back()) {
- Y_FAIL("Produced trival edges on screen cutting");
+ Y_ABORT("Produced trival edges on screen cutting");
}
return new TScreen(std::move(sub));
@@ -215,7 +215,7 @@ namespace NTable {
} else if (two == nullptr || two->Size() == 0) {
return one;
} else if (one->Bounds().Cut(two->Bounds())) {
- Y_FAIL("Cannot join two intersecting screens");
+ Y_ABORT("Cannot join two intersecting screens");
} else if (one->Bounds().End > two->Bounds().Begin) {
std::swap(one, two);
}
diff --git a/ydb/core/tablet_flat/flat_redo_player.h b/ydb/core/tablet_flat/flat_redo_player.h
index 47dfe9d671..b7615c1bcd 100644
--- a/ydb/core/tablet_flat/flat_redo_player.h
+++ b/ydb/core/tablet_flat/flat_redo_player.h
@@ -26,7 +26,7 @@ namespace NRedo {
return { std::exchange(On, On + size), size };
}
- Y_FAIL("Damaged or invalid plainfied db redo log");
+ Y_ABORT("Damaged or invalid plainfied db redo log");
}
private:
@@ -83,7 +83,7 @@ namespace NRedo {
break;
}
- Y_FAIL("Unexpected rodo log chunk type");
+ Y_ABORT("Unexpected rodo log chunk type");
}
void HandleLegacy(const TChunk_Legacy* label, const TArrayRef<const char> chunk)
@@ -111,7 +111,7 @@ namespace NRedo {
break;
}
- Y_FAIL("Unexpected rodo log legacy chunk type");
+ Y_ABORT("Unexpected rodo log legacy chunk type");
}
private:
diff --git a/ydb/core/tablet_flat/flat_redo_writer.h b/ydb/core/tablet_flat/flat_redo_writer.h
index d75a47595b..15030bc30b 100644
--- a/ydb/core/tablet_flat/flat_redo_writer.h
+++ b/ydb/core/tablet_flat/flat_redo_writer.h
@@ -122,9 +122,9 @@ namespace NRedo {
TWriter& EvUpdate(ui32 table, ERowOp rop, TRawVals key, TOpsRef ops, ERedo tag, ui32 tailSize, TCallback&& tailCallback)
{
if (TCellOp::HaveNoOps(rop) && ops) {
- Y_FAIL("Given ERowOp cannot have update operations");
+ Y_ABORT("Given ERowOp cannot have update operations");
} else if (key.size() + ops.size() > Max<ui16>()) {
- Y_FAIL("Too large key or too many operations in one ops");
+ Y_ABORT("Too large key or too many operations in one ops");
}
const ui32 size = sizeof(TEvUpdate) + tailSize + CalcSize(key, ops);
diff --git a/ydb/core/tablet_flat/flat_row_celled.h b/ydb/core/tablet_flat/flat_row_celled.h
index bb014bd781..e0161a292c 100644
--- a/ydb/core/tablet_flat/flat_row_celled.h
+++ b/ydb/core/tablet_flat/flat_row_celled.h
@@ -21,7 +21,7 @@ namespace NTable {
if (it >= key.size()) {
Cells[it] = keyDefaults[it];
} else if (key[it] && key[it].Type() != keyDefaults.Types[it].GetTypeId()) {
- Y_FAIL("Key does not comply table schema");
+ Y_ABORT("Key does not comply table schema");
} else {
Cells[it] = TCell((char*)key[it].Data(), key[it].Size());
}
diff --git a/ydb/core/tablet_flat/flat_row_nulls.h b/ydb/core/tablet_flat/flat_row_nulls.h
index d834a36691..0619c19157 100644
--- a/ydb/core/tablet_flat/flat_row_nulls.h
+++ b/ydb/core/tablet_flat/flat_row_nulls.h
@@ -22,7 +22,7 @@ namespace NTable {
Y_ABORT_UNLESS(Defs.size() > 0 && Defs.size() == Types.size());
for (size_t index = 0; index < Types.size(); ++index) {
if (auto error = NScheme::HasUnexpectedValueSize(Defs[index], Types[index])) {
- Y_FAIL("Column default at index %" PRISZT " validation failed: %s", index, error.c_str());
+ Y_ABORT("Column default at index %" PRISZT " validation failed: %s", index, error.c_str());
}
}
}
diff --git a/ydb/core/tablet_flat/flat_row_remap.h b/ydb/core/tablet_flat/flat_row_remap.h
index 88e8ab9c11..c0ca5f1786 100644
--- a/ydb/core/tablet_flat/flat_row_remap.h
+++ b/ydb/core/tablet_flat/flat_row_remap.h
@@ -55,7 +55,7 @@ namespace NTable {
KeyPins_.push_back({ on, info->Key });
if (!Tag2Pos.insert(std::make_pair(tags[on], on)).second)
- Y_FAIL("Duplicated tag found in remap, isn't allowed");
+ Y_ABORT("Duplicated tag found in remap, isn't allowed");
}
}
diff --git a/ydb/core/tablet_flat/flat_row_scheme.h b/ydb/core/tablet_flat/flat_row_scheme.h
index c4cb742fdf..04d1c54a84 100644
--- a/ydb/core/tablet_flat/flat_row_scheme.h
+++ b/ydb/core/tablet_flat/flat_row_scheme.h
@@ -125,13 +125,13 @@ namespace NTable {
auto *other = scheme.ColInfo(col.Tag);
if (other == nullptr && col.IsKey()) {
- Y_FAIL("Key column dropping ins't supported");
+ Y_ABORT("Key column dropping ins't supported");
} else if (other == nullptr) {
/* It is ok to drop non-key columns */
} else if (col.TypeInfo != other->TypeInfo) {
- Y_FAIL("Column type alteration is not supproted");
+ Y_ABORT("Column type alteration is not supproted");
} else if (col.Key != other->Key) {
- Y_FAIL("Cannot alter keys order or move col to keys");
+ Y_ABORT("Cannot alter keys order or move col to keys");
/* Existing string columns can't be altered to keys as
they may hold external blobs references which is not
@@ -143,7 +143,7 @@ namespace NTable {
} else {
auto &null = (*scheme.RowCellDefaults)[other->Pos];
if (CompareTypedCells(null, (*RowCellDefaults)[col.Pos], col.TypeInfo))
- Y_FAIL("Cannot alter existing columnt default value");
+ Y_ABORT("Cannot alter existing columnt default value");
}
}
}
diff --git a/ydb/core/tablet_flat/flat_row_state.h b/ydb/core/tablet_flat/flat_row_state.h
index 6e00745c90..56d3ab3a98 100644
--- a/ydb/core/tablet_flat/flat_row_state.h
+++ b/ydb/core/tablet_flat/flat_row_state.h
@@ -64,7 +64,7 @@ namespace NTable {
Rop = (Rop == ERowOp::Absent ? ERowOp::Erase : ERowOp::Reset);
return false; /* current row shouldn't be processed */
default:
- Y_FAIL("Unexpected row rolling operation code: %" PRIu8, ui8(op));
+ Y_ABORT("Unexpected row rolling operation code: %" PRIu8, ui8(op));
}
}
diff --git a/ydb/core/tablet_flat/flat_sausage_flow.h b/ydb/core/tablet_flat/flat_sausage_flow.h
index 8dfb4f1e6b..5c101c35cb 100644
--- a/ydb/core/tablet_flat/flat_sausage_flow.h
+++ b/ydb/core/tablet_flat/flat_sausage_flow.h
@@ -76,7 +76,7 @@ namespace NPageCollection {
if (was == Glob.Group || was == TLargeGlobId::InvalidGroup) {
} else if (it != bound.Lo.Blob) {
- Y_FAIL("Page placed over different groups");
+ Y_ABORT("Page placed over different groups");
} else if (from < Queue.size()) {
/* Have to do each grow over the same group */
diff --git a/ydb/core/tablet_flat/flat_sausage_grind.h b/ydb/core/tablet_flat/flat_sausage_grind.h
index 08de2a026c..9dfc649222 100644
--- a/ydb/core/tablet_flat/flat_sausage_grind.h
+++ b/ydb/core/tablet_flat/flat_sausage_grind.h
@@ -37,9 +37,9 @@ namespace NPageCollection {
, Slots(Max<ui8>(), Max<ui8>())
{
if ((cookieRange.Head & ~Mask) || (cookieRange.Tail & ~Mask)) {
- Y_FAIL("CookieRange range can use only lower 24 bits");
+ Y_ABORT("CookieRange range can use only lower 24 bits");
} else if (cookieRange.Head > cookieRange.Tail) {
- Y_FAIL("Invalid TLogoBlobID cookieRange capacity range");
+ Y_ABORT("Invalid TLogoBlobID cookieRange capacity range");
}
for (auto &one: row) {
diff --git a/ydb/core/tablet_flat/flat_sausage_packet.h b/ydb/core/tablet_flat/flat_sausage_packet.h
index 7b53ed6bc7..d876b5a897 100644
--- a/ydb/core/tablet_flat/flat_sausage_packet.h
+++ b/ydb/core/tablet_flat/flat_sausage_packet.h
@@ -16,7 +16,7 @@ namespace NPageCollection {
, Meta(std::move(raw), LargeGlobId.Group)
{
if (!Meta.Raw || LargeGlobId.Bytes != Meta.Raw.size() || LargeGlobId.Group == TLargeGlobId::InvalidGroup)
- Y_FAIL("Invalid TLargeGlobId of page collection meta blob");
+ Y_ABORT("Invalid TLargeGlobId of page collection meta blob");
}
const TLogoBlobID& Label() const noexcept override
diff --git a/ydb/core/tablet_flat/flat_sausage_solid.h b/ydb/core/tablet_flat/flat_sausage_solid.h
index edbc7099a9..1d63140fd6 100644
--- a/ydb/core/tablet_flat/flat_sausage_solid.h
+++ b/ydb/core/tablet_flat/flat_sausage_solid.h
@@ -249,7 +249,7 @@ namespace NPageCollection {
return ++BlobsLoaded == Blobs.size();
}
- Y_FAIL("Apply unknown blob %s", id.ToString().c_str());
+ Y_ABORT("Apply unknown blob %s", id.ToString().c_str());
}
explicit operator bool() const {
diff --git a/ydb/core/tablet_flat/flat_sausagecache.cpp b/ydb/core/tablet_flat/flat_sausagecache.cpp
index 26b48c9e78..31ba3d13c6 100644
--- a/ydb/core/tablet_flat/flat_sausagecache.cpp
+++ b/ydb/core/tablet_flat/flat_sausagecache.cpp
@@ -219,7 +219,7 @@ std::pair<ui32, ui64> TPrivatePageCache::Request(TVector<ui32> &pages, TPrivateP
++it;
break;
case TPage::LoadStateLoaded:
- Y_FAIL("must not request already loaded pages");
+ Y_ABORT("must not request already loaded pages");
case TPage::LoadStateRequested:
if (!page->WaitQueue)
page->WaitQueue = new TPage::TWaitQueue();
diff --git a/ydb/core/tablet_flat/flat_scan_actor.h b/ydb/core/tablet_flat/flat_scan_actor.h
index 690afef970..10a4fadea9 100644
--- a/ydb/core/tablet_flat/flat_scan_actor.h
+++ b/ydb/core/tablet_flat/flat_scan_actor.h
@@ -336,10 +336,10 @@ namespace NOps {
return Terminate(EAbort::None);
case EScan::Sleep:
- Y_FAIL("Scan actor got an unexpected EScan::Sleep");
+ Y_ABORT("Scan actor got an unexpected EScan::Sleep");
}
- Y_FAIL("Scan actor got an unexpected EScan value");
+ Y_ABORT("Scan actor got an unexpected EScan value");
}
void Registered(TActorSystem *sys, const TActorId &owner) override
diff --git a/ydb/core/tablet_flat/flat_scan_feed.h b/ydb/core/tablet_flat/flat_scan_feed.h
index 4e49af096d..56e8f1629f 100644
--- a/ydb/core/tablet_flat/flat_scan_feed.h
+++ b/ydb/core/tablet_flat/flat_scan_feed.h
@@ -64,10 +64,10 @@ namespace NTable {
return EReady::Gone;
case EScan::Reset:
- Y_FAIL("Unexpected EScan::Reset from IScan::Seek(...)");
+ Y_ABORT("Unexpected EScan::Reset from IScan::Seek(...)");
}
- Y_FAIL("Unexpected EScan result from IScan::Seek(...)");
+ Y_ABORT("Unexpected EScan result from IScan::Seek(...)");
} else if (Seek()) {
return NotifyPageFault();
} else {
@@ -197,9 +197,9 @@ namespace NTable {
break;
case EVersionState::SkipUncommitted:
- Y_FAIL("Unexpected callback state SkipUncommitted");
+ Y_ABORT("Unexpected callback state SkipUncommitted");
case EVersionState::SkipVersion:
- Y_FAIL("Unexpected callback state SkipVersion");
+ Y_ABORT("Unexpected callback state SkipVersion");
}
OnPause = (op == EScan::Sleep);
@@ -220,7 +220,7 @@ namespace NTable {
return EReady::Gone;
}
- Y_FAIL("Unexpected EScan result from IScan::Feed(...)");
+ Y_ABORT("Unexpected EScan result from IScan::Feed(...)");
}
}
}
@@ -273,7 +273,7 @@ namespace NTable {
return EReady::Gone;
}
- Y_FAIL("Unexpected EScan result from IScan::PageFault(...)");
+ Y_ABORT("Unexpected EScan result from IScan::PageFault(...)");
}
EReady NotifyExhausted() noexcept
@@ -295,10 +295,10 @@ namespace NTable {
return EReady::Gone;
case EScan::Feed:
- Y_FAIL("Unexpected EScan::Feed from IScan::Exhausted(...)");
+ Y_ABORT("Unexpected EScan::Feed from IScan::Exhausted(...)");
}
- Y_FAIL("Unexpected EScan result from IScan::Exhausted(...)");
+ Y_ABORT("Unexpected EScan result from IScan::Exhausted(...)");
}
bool Reset() noexcept
@@ -435,7 +435,7 @@ namespace NTable {
break;
default:
- Y_FAIL("Unexpected Seek result");
+ Y_ABORT("Unexpected Seek result");
}
}
diff --git a/ydb/core/tablet_flat/flat_scan_iface.h b/ydb/core/tablet_flat/flat_scan_iface.h
index 878cb97ab3..e080e25c22 100644
--- a/ydb/core/tablet_flat/flat_scan_iface.h
+++ b/ydb/core/tablet_flat/flat_scan_iface.h
@@ -143,7 +143,7 @@ namespace NTable {
class IVersionScan : public IScan {
private:
EScan Feed(TArrayRef<const TCell>, const TRow&) noexcept override final {
- Y_FAIL("Unexpected unversioned call");
+ Y_ABORT("Unexpected unversioned call");
}
public:
diff --git a/ydb/core/tablet_flat/flat_stat_part.h b/ydb/core/tablet_flat/flat_stat_part.h
index dec65020ca..3e9e9447be 100644
--- a/ydb/core/tablet_flat/flat_stat_part.h
+++ b/ydb/core/tablet_flat/flat_stat_part.h
@@ -233,7 +233,7 @@ private:
stats.Add(rel.Size, channel);
++prevPage;
} else if (!rel.IsHead()) {
- Y_FAIL("Got unaligned NPage::TFrames head record");
+ Y_ABORT("Got unaligned NPage::TFrames head record");
} else {
break;
}
diff --git a/ydb/core/tablet_flat/flat_store_hotdog.cpp b/ydb/core/tablet_flat/flat_store_hotdog.cpp
index d45ab7d51b..ca4f67bf16 100644
--- a/ydb/core/tablet_flat/flat_store_hotdog.cpp
+++ b/ydb/core/tablet_flat/flat_store_hotdog.cpp
@@ -118,7 +118,7 @@ void TPageCollectionProtoHelper::Bundle(NKikimrExecutorFlat::TPageCollection *pa
} else if (auto* body = cache.Lookup(pageId)) {
pages.emplace_back(pageId, *body);
} else {
- Y_FAIL("index and page collection pages must be kept inmemory");
+ Y_ABORT("index and page collection pages must be kept inmemory");
}
}
}
diff --git a/ydb/core/tablet_flat/flat_store_solid.h b/ydb/core/tablet_flat/flat_store_solid.h
index 129a2d18ab..14e9b581bd 100644
--- a/ydb/core/tablet_flat/flat_store_solid.h
+++ b/ydb/core/tablet_flat/flat_store_solid.h
@@ -50,9 +50,9 @@ namespace NTabletFlatExecutor {
auto logo = LogoBlobIDFromLogoBlobID(rep.Get(it));
if (bytes > Max<ui32>() - logo.BlobSize())
- Y_FAIL("Got too large TLargeGlobId in ids sequence");
+ Y_ABORT("Got too large TLargeGlobId in ids sequence");
if (lead.Cookie() + it != logo.Cookie())
- Y_FAIL("Got an invalid sequence of logo ids");
+ Y_ABORT("Got an invalid sequence of logo ids");
bytes += logo.BlobSize();
}
diff --git a/ydb/core/tablet_flat/flat_table.cpp b/ydb/core/tablet_flat/flat_table.cpp
index 5387d13c90..66fcbecea3 100644
--- a/ydb/core/tablet_flat/flat_table.cpp
+++ b/ydb/core/tablet_flat/flat_table.cpp
@@ -544,7 +544,7 @@ void TTable::Merge(TPartView partView) noexcept
AddSafe(std::move(partView));
} else if (it->second->Epoch != partView->Epoch) {
- Y_FAIL("Got the same labeled parts with different epoch");
+ Y_ABORT("Got the same labeled parts with different epoch");
} else {
Levels.Reset();
it->second.Screen = TScreen::Join(it->second.Screen, partView.Screen);
@@ -716,7 +716,7 @@ TEpoch TTable::Snapshot() noexcept
Mutable = nullptr; /* have to make new TMemTable on next update */
if (++Epoch == TEpoch::Max()) {
- Y_FAIL("Table epoch counter has reached infinity value");
+ Y_ABORT("Table epoch counter has reached infinity value");
}
}
diff --git a/ydb/core/tablet_flat/flat_writer_bundle.h b/ydb/core/tablet_flat/flat_writer_bundle.h
index 7e2eda58da..e94c8e3f4e 100644
--- a/ydb/core/tablet_flat/flat_writer_bundle.h
+++ b/ydb/core/tablet_flat/flat_writer_bundle.h
@@ -99,7 +99,7 @@ namespace NWriter {
if (auto cache = Blocks[num]->Finish()) {
result.PageCollections.emplace_back(std::move(cache));
} else if (num < Blocks.size() - 1) {
- Y_FAIL("Finish produced an empty main page collection");
+ Y_ABORT("Finish produced an empty main page collection");
}
Y_ABORT_UNLESS(!*Blocks[num], "Block writer has unexpected data");
diff --git a/ydb/core/tablet_flat/shared_sausagecache.cpp b/ydb/core/tablet_flat/shared_sausagecache.cpp
index d1622f27ce..00bfe1ffb2 100644
--- a/ydb/core/tablet_flat/shared_sausagecache.cpp
+++ b/ydb/core/tablet_flat/shared_sausagecache.cpp
@@ -651,7 +651,7 @@ class TSharedPageCache : public TActorBootstrapped<TSharedPageCache> {
}
break;
default:
- Y_FAIL("must not happens");
+ Y_ABORT("must not happens");
}
}
@@ -835,7 +835,7 @@ class TSharedPageCache : public TActorBootstrapped<TSharedPageCache> {
switch (page->State) {
case PageStateNo:
- Y_FAIL("unexpected uninitialized page found");
+ Y_ABORT("unexpected uninitialized page found");
case PageStateRequested:
case PageStateRequestedAsync:
case PageStatePending:
@@ -850,7 +850,7 @@ class TSharedPageCache : public TActorBootstrapped<TSharedPageCache> {
Evict(Cache.Touch(page));
break;
default:
- Y_FAIL("unknown load state");
+ Y_ABORT("unknown load state");
}
}
}
diff --git a/ydb/core/tablet_flat/tablet_flat_executor.cpp b/ydb/core/tablet_flat/tablet_flat_executor.cpp
index ebd5eca21d..0fab8f98ed 100644
--- a/ydb/core/tablet_flat/tablet_flat_executor.cpp
+++ b/ydb/core/tablet_flat/tablet_flat_executor.cpp
@@ -12,7 +12,7 @@ namespace NFlatExecutorSetup {
void ITablet::SnapshotComplete(TIntrusivePtr<TTableSnapshotContext> snapContext, const TActorContext &ctx) {
Y_UNUSED(snapContext);
Y_UNUSED(ctx);
- Y_FAIL("must be overriden if plan to use table snapshot completion");
+ Y_ABORT("must be overriden if plan to use table snapshot completion");
}
void ITablet::CompactionComplete(ui32 tableId, const TActorContext &ctx) {
diff --git a/ydb/core/tablet_flat/tablet_flat_executor.h b/ydb/core/tablet_flat/tablet_flat_executor.h
index 4bdbe0b01a..ec20755a43 100644
--- a/ydb/core/tablet_flat/tablet_flat_executor.h
+++ b/ydb/core/tablet_flat/tablet_flat_executor.h
@@ -279,7 +279,7 @@ public:
virtual bool Execute(TTransactionContext &txc, const TActorContext &ctx) = 0;
virtual void Complete(const TActorContext &ctx) = 0;
virtual void Terminate(ETerminationReason reason, const TActorContext &/*ctx*/) {
- Y_FAIL("Unexpected transaction termination (reason %" PRIu32 ")", (ui32)reason);
+ Y_ABORT("Unexpected transaction termination (reason %" PRIu32 ")", (ui32)reason);
}
virtual void ReleaseTxData(TTxMemoryProvider &/*provider*/, const TActorContext &/*ctx*/) {}
virtual TTxType GetTxType() const { return UnknownTxType; }
diff --git a/ydb/core/tablet_flat/test/libs/exec/dummy.h b/ydb/core/tablet_flat/test/libs/exec/dummy.h
index 2d90b076c4..f12f3becc8 100644
--- a/ydb/core/tablet_flat/test/libs/exec/dummy.h
+++ b/ydb/core/tablet_flat/test/libs/exec/dummy.h
@@ -89,7 +89,7 @@ namespace NFake {
{
const auto *name = eh->GetTypeName().c_str();
- Y_FAIL("Got unexpected event %s on tablet booting", name);
+ Y_ABORT("Got unexpected event %s on tablet booting", name);
}
void DefaultSignalTabletActive(const TActorContext&) override
@@ -103,7 +103,7 @@ namespace NFake {
SignalTabletActive(SelfId());
Send(Owner, new NFake::TEvReady(TabletID(), SelfId()));
} else {
- Y_FAIL("Received unexpected TExecutor activation");
+ Y_ABORT("Received unexpected TExecutor activation");
}
}
@@ -130,7 +130,7 @@ namespace NFake {
if (auto* snapContext = dynamic_cast<TDummySnapshotContext*>(rawSnapContext.Get())) {
Send(SelfId(), snapContext->OnFinished());
} else {
- Y_FAIL("Unsupported snapshot context");
+ Y_ABORT("Unsupported snapshot context");
}
}
diff --git a/ydb/core/tablet_flat/test/libs/exec/logger.h b/ydb/core/tablet_flat/test/libs/exec/logger.h
index 83ba63c25e..cd30abfeec 100644
--- a/ydb/core/tablet_flat/test/libs/exec/logger.h
+++ b/ydb/core/tablet_flat/test/libs/exec/logger.h
@@ -133,7 +133,7 @@ namespace NFake {
Send(TWorld::Where(EPath::Root), new NFake::TEvTerm);
} else {
- Y_FAIL("Test runtime env logger got an unknown event");
+ Y_ABORT("Test runtime env logger got an unknown event");
}
}
diff --git a/ydb/core/tablet_flat/test/libs/exec/nanny.h b/ydb/core/tablet_flat/test/libs/exec/nanny.h
index b577d2c536..17a1d90dab 100644
--- a/ydb/core/tablet_flat/test/libs/exec/nanny.h
+++ b/ydb/core/tablet_flat/test/libs/exec/nanny.h
@@ -141,11 +141,11 @@ namespace NFake {
void Handle(NFake::TEvReady &ev) noexcept
{
if (std::exchange(State, EDo::More) != EDo::Born) {
- Y_FAIL("Got an unexpected TEvReady{ } event");
+ Y_ABORT("Got an unexpected TEvReady{ } event");
} else if (std::exchange(Tablet, ev.ActorId)) {
- Y_FAIL("Child tablet actor is still alive");
+ Y_ABORT("Child tablet actor is still alive");
} else if (TxInFlight > 0) {
- Y_FAIL("Just bron(rebooted) tablet has pending tx");
+ Y_ABORT("Just bron(rebooted) tablet has pending tx");
}
QueueTx(CompareDbs);
@@ -166,7 +166,7 @@ namespace NFake {
} else if (State == EDo::Stop) {
Send(std::exchange(Tablet, { }), new TEvents::TEvPoison);
} else {
- Y_FAIL("TNanny actor cannot progress: no tx, no EDo");
+ Y_ABORT("TNanny actor cannot progress: no tx, no EDo");
}
}
diff --git a/ydb/core/tablet_flat/test/libs/exec/storage.h b/ydb/core/tablet_flat/test/libs/exec/storage.h
index 23955a5061..59dc394239 100644
--- a/ydb/core/tablet_flat/test/libs/exec/storage.h
+++ b/ydb/core/tablet_flat/test/libs/exec/storage.h
@@ -68,7 +68,7 @@ namespace NFake {
PassAway();
} else {
- Y_FAIL("DS proxy model got an unexpected event");
+ Y_ABORT("DS proxy model got an unexpected event");
}
}
diff --git a/ydb/core/tablet_flat/test/libs/exec/warden.h b/ydb/core/tablet_flat/test/libs/exec/warden.h
index c3b883de74..254d6997d7 100644
--- a/ydb/core/tablet_flat/test/libs/exec/warden.h
+++ b/ydb/core/tablet_flat/test/libs/exec/warden.h
@@ -84,7 +84,7 @@ namespace NFake {
} else if (eh->CastAsLocal<TEvents::TEvPoison>()) {
if (std::exchange(Shutting, true)) {
- Y_FAIL("Got double BS storage shut order");
+ Y_ABORT("Got double BS storage shut order");
} else if (auto logl = Logger->Log(ELnLev::Info))
logl << "Shut order, stopping " << Alive << " BS groups";
@@ -106,9 +106,9 @@ namespace NFake {
const auto group = eh->Cookie;
if (group >= State.size() || State[group] < EState::Fired) {
- Y_FAIL("Got an TEvGone event form unknown BS group");
+ Y_ABORT("Got an TEvGone event form unknown BS group");
} else if (!Shutting || State[group] != EState::Shut) {
- Y_FAIL("Got unexpected TEvGone from BS group mock");
+ Y_ABORT("Got unexpected TEvGone from BS group mock");
}
--Alive, State[group] = EState::Gone;
@@ -118,7 +118,7 @@ namespace NFake {
} else if (eh->CastAsLocal<NFake::TEvTerm>()) {
} else {
- Y_FAIL("Got unexpected message");
+ Y_ABORT("Got unexpected message");
}
}
diff --git a/ydb/core/tablet_flat/test/libs/rows/cook.h b/ydb/core/tablet_flat/test/libs/rows/cook.h
index 6be271429f..c0a5d5c20c 100644
--- a/ydb/core/tablet_flat/test/libs/rows/cook.h
+++ b/ydb/core/tablet_flat/test/libs/rows/cook.h
@@ -47,7 +47,7 @@ namespace NTest {
TSchemedCookRow& To(TPos to) noexcept
{
if (to < On || to >= Scheme.Cols.size()) {
- Y_FAIL("TSchemedCookRow row builder skip position is out of range");
+ Y_ABORT("TSchemedCookRow row builder skip position is out of range");
}
On = to;
@@ -58,7 +58,7 @@ namespace NTest {
inline TSchemedCookRow& Col(const TVal &val, TArgs&&...args)
{
if (On >= Scheme.Cols.size()) {
- Y_FAIL("NO more columns left in row scheme");
+ Y_ABORT("NO more columns left in row scheme");
} else {
Row.Do(Scheme.Cols[On++].Tag, val);
diff --git a/ydb/core/tablet_flat/test/libs/rows/layout.h b/ydb/core/tablet_flat/test/libs/rows/layout.h
index ccb6d2c603..b20fbc349b 100644
--- a/ydb/core/tablet_flat/test/libs/rows/layout.h
+++ b/ydb/core/tablet_flat/test/libs/rows/layout.h
@@ -44,9 +44,9 @@ namespace NTest{
auto it = std::find_if(Cols.begin(), Cols.end(), pred);
if (it == Cols.end()) {
- Y_FAIL("Not all key tags found in columns registery");
+ Y_ABORT("Not all key tags found in columns registery");
} else if (it->KeyOrder != Max<NTable::TPos>()) {
- Y_FAIL("Non-unique key column tags supplied for layout");
+ Y_ABORT("Non-unique key column tags supplied for layout");
} else {
it->KeyOrder = keyOrder++;
}
diff --git a/ydb/core/tablet_flat/test/libs/rows/mass.h b/ydb/core/tablet_flat/test/libs/rows/mass.h
index 3997a46ee0..ae6c0f179d 100644
--- a/ydb/core/tablet_flat/test/libs/rows/mass.h
+++ b/ydb/core/tablet_flat/test/libs/rows/mass.h
@@ -67,7 +67,7 @@ namespace NTest {
auto it = Model->Base(row);
if (it > Saved.Size()) {
- Y_FAIL("Last saved TMass row slot is out of store range");
+ Y_ABORT("Last saved TMass row slot is out of store range");
} else if (next) {
return it >= Saved.Size() ? nullptr : &Saved[it];
} else if (hole) {
diff --git a/ydb/core/tablet_flat/test/libs/table/model/keys.h b/ydb/core/tablet_flat/test/libs/table/model/keys.h
index 56f7f71187..d253f3cc89 100644
--- a/ydb/core/tablet_flat/test/libs/table/model/keys.h
+++ b/ydb/core/tablet_flat/test/libs/table/model/keys.h
@@ -50,9 +50,9 @@ namespace NTest {
auto *up = row.Get(NTable::TTag(8));
if (up == nullptr || up->Type != NScheme::NTypeIds::Uint32) {
- Y_FAIL("Probably got row not from the TMass instance");
+ Y_ABORT("Probably got row not from the TMass instance");
} else if (up->Cell.Size() != sizeof(ui32) || !up->Cell.Data()) {
- Y_FAIL("Last saved tow reference TCell is invalid in TRow");
+ Y_ABORT("Last saved tow reference TCell is invalid in TRow");
} else {
return *reinterpret_cast<const ui32*>(up->Cell.Data());
}
diff --git a/ydb/core/tablet_flat/test/libs/table/model/large.h b/ydb/core/tablet_flat/test/libs/table/model/large.h
index d49951d39d..b9bb79e4f5 100644
--- a/ydb/core/tablet_flat/test/libs/table/model/large.h
+++ b/ydb/core/tablet_flat/test/libs/table/model/large.h
@@ -81,9 +81,9 @@ namespace NTest {
auto *up = row.Get(NTable::TTag(2));
if (up == nullptr || up->Type != NScheme::NTypeIds::Uint64) {
- Y_FAIL("Probably got row not from the TMass instance");
+ Y_ABORT("Probably got row not from the TMass instance");
} else if (up->Cell.Size() != sizeof(ui64) || !up->Cell.Data()) {
- Y_FAIL("Last saved tow reference TCell is invalid in TRow");
+ Y_ABORT("Last saved tow reference TCell is invalid in TRow");
} else {
return up->Cell.AsValue<ui64>();
}
diff --git a/ydb/core/tablet_flat/test/libs/table/model/small.h b/ydb/core/tablet_flat/test/libs/table/model/small.h
index 32ef386cf1..adb0d0a436 100644
--- a/ydb/core/tablet_flat/test/libs/table/model/small.h
+++ b/ydb/core/tablet_flat/test/libs/table/model/small.h
@@ -40,9 +40,9 @@ namespace NTest {
auto *up = row.Get(NTable::TTag(1));
if (up == nullptr || up->Type != NScheme::NTypeIds::Uint64) {
- Y_FAIL("Probably got row not from the TMass instance");
+ Y_ABORT("Probably got row not from the TMass instance");
} else if (up->Cell.Size() != sizeof(ui64) || !up->Cell.Data()) {
- Y_FAIL("Last saved tow reference TCell is invalid in TRow");
+ Y_ABORT("Last saved tow reference TCell is invalid in TRow");
} else {
return *reinterpret_cast<const ui64*>(up->Cell.Data());
}
diff --git a/ydb/core/tablet_flat/test/libs/table/test_comp.h b/ydb/core/tablet_flat/test/libs/table/test_comp.h
index 1c9b97f914..0bc68167f8 100644
--- a/ydb/core/tablet_flat/test/libs/table/test_comp.h
+++ b/ydb/core/tablet_flat/test/libs/table/test_comp.h
@@ -29,7 +29,7 @@ namespace NTest {
}
TPartView LoadPart(const TIntrusiveConstPtr<TColdPart>&) noexcept override {
- Y_FAIL("not supported in test scans");
+ Y_ABORT("not supported in test scans");
}
IPages * const Env = nullptr;
@@ -108,7 +108,7 @@ namespace NTest {
return eggs;
} else if (ready != EReady::Page) {
- Y_FAIL("Subset scanner give unexpected cycle result");
+ Y_ABORT("Subset scanner give unexpected cycle result");
} else if (Failed++ > Retries) {
/* Early termination without any complete result, event
@@ -124,7 +124,7 @@ namespace NTest {
until there is some progress.
*/
- Y_FAIL("Mocked compaction failied to make any progress");
+ Y_ABORT("Mocked compaction failied to make any progress");
}
}
}
@@ -132,7 +132,7 @@ namespace NTest {
private:
virtual TInitialState Prepare(IDriver*, TIntrusiveConstPtr<TScheme>) noexcept override
{
- Y_FAIL("IScan::Prepare(...) isn't used in test env compaction");
+ Y_ABORT("IScan::Prepare(...) isn't used in test env compaction");
}
EScan Seek(TLead &lead, ui64 seq) noexcept override
@@ -188,7 +188,7 @@ namespace NTest {
TAutoPtr<IDestructable> Finish(EAbort) noexcept override
{
- Y_FAIL("IScan::Finish(...) shouldn't be called in test env");
+ Y_ABORT("IScan::Finish(...) shouldn't be called in test env");
}
void Describe(IOutputStream &out) const noexcept override
diff --git a/ydb/core/tablet_flat/test/libs/table/test_dbase.h b/ydb/core/tablet_flat/test/libs/table/test_dbase.h
index 42e02bd9d5..5cfe807b00 100644
--- a/ydb/core/tablet_flat/test/libs/table/test_dbase.h
+++ b/ydb/core/tablet_flat/test/libs/table/test_dbase.h
@@ -398,15 +398,15 @@ namespace NTest {
TString alter = TString::TUninitialized(header.Alter);
if (in.Load((void*)alter.data(), alter.size()) != alter.size())
- Y_FAIL("Cannot read alter chunk data in change page");
+ Y_ABORT("Cannot read alter chunk data in change page");
TString redo = TString::TUninitialized(header.Redo);
if (in.Load((void*)redo.data(), redo.size()) != redo.size())
- Y_FAIL("Cannot read redo log data in change page");
+ Y_ABORT("Cannot read redo log data in change page");
if (in.Skip(abytes) != abytes)
- Y_FAIL("Cannot read affects array in change page");
+ Y_ABORT("Cannot read affects array in change page");
changes.push_back(new TChange{ header.Serial, header.Serial });
changes.back()->Scheme = std::move(alter);
@@ -425,7 +425,7 @@ namespace NTest {
TDbExec& DoBegin(bool real) noexcept
{
if (OnTx == EOnTx::Real && real) {
- Y_FAIL("Cannot run multiple tx at the same time");
+ Y_ABORT("Cannot run multiple tx at the same time");
} else if (OnTx == EOnTx::Auto && real) {
DoCommit(false, false);
}
@@ -445,7 +445,7 @@ namespace NTest {
const auto was = std::exchange(OnTx, EOnTx::None);
if (was != (real ? EOnTx::Real : EOnTx::Auto))
- Y_FAIL("There is no active dbase tx");
+ Y_ABORT("There is no active dbase tx");
auto prod = Base->Commit({ Gen, Step }, apply, Annex.Get());
auto up = std::move(prod.Change);
diff --git a/ydb/core/tablet_flat/test/libs/table/test_dummy.h b/ydb/core/tablet_flat/test/libs/table/test_dummy.h
index 01ecae1deb..046d6e4201 100644
--- a/ydb/core/tablet_flat/test/libs/table/test_dummy.h
+++ b/ydb/core/tablet_flat/test/libs/table/test_dummy.h
@@ -15,12 +15,12 @@ namespace NTable {
TResult Locate(const TPart*, ui64, ELargeObj) noexcept override
{
- Y_FAIL("Dummy env cannot deal with storage");
+ Y_ABORT("Dummy env cannot deal with storage");
}
const TSharedData* TryGetPage(const TPart*, TPageId, TGroupId) override
{
- Y_FAIL("Dummy env cannot deal with storage");
+ Y_ABORT("Dummy env cannot deal with storage");
}
};
diff --git a/ydb/core/tablet_flat/test/libs/table/test_envs.h b/ydb/core/tablet_flat/test/libs/table/test_envs.h
index f159cd42f2..3735d38a54 100644
--- a/ydb/core/tablet_flat/test/libs/table/test_envs.h
+++ b/ydb/core/tablet_flat/test/libs/table/test_envs.h
@@ -281,7 +281,7 @@ namespace NTest {
} else if (room == partStore->Store->GetExternRoom()) {
slots.push_back(Settle(partStore, room, MakeExtern(partStore)));
} else {
- Y_FAIL("Don't know how to work with room %" PRIu32, room);
+ Y_ABORT("Don't know how to work with room %" PRIu32, room);
}
}
for (ui32 group : xrange(part->HistoricGroupsCount)) {
diff --git a/ydb/core/tablet_flat/test/libs/table/test_make.h b/ydb/core/tablet_flat/test/libs/table/test_make.h
index 7322be5c22..96b41719a4 100644
--- a/ydb/core/tablet_flat/test/libs/table/test_make.h
+++ b/ydb/core/tablet_flat/test/libs/table/test_make.h
@@ -60,7 +60,7 @@ namespace NTest {
void Ver(TRowVersion) override
{
- Y_FAIL("unsupported");
+ Y_ABORT("unsupported");
}
TCooker Cooker;
@@ -139,7 +139,7 @@ namespace NTest {
subset->Flatten.push_back(
{ eggs.At(0), nullptr, eggs.At(0)->Slices });
} else {
- Y_FAIL("Unknown IBand writer type, internal error");
+ Y_ABORT("Unknown IBand writer type, internal error");
}
}
diff --git a/ydb/core/tablet_flat/test/libs/table/test_store.h b/ydb/core/tablet_flat/test/libs/table/test_store.h
index a2d20f285e..811b12a415 100644
--- a/ydb/core/tablet_flat/test/libs/table/test_store.h
+++ b/ydb/core/tablet_flat/test/libs/table/test_store.h
@@ -115,7 +115,7 @@ namespace NTest {
TEggs LegacyEggs() const noexcept
{
if (PageCollectionPagesCount(MainPageCollection) == 0) {
- Y_FAIL("Cannot construct an empty part");
+ Y_ABORT("Cannot construct an empty part");
}
Y_ABORT_UNLESS(!Rooted, "Legacy store must not be rooted");
@@ -142,11 +142,11 @@ namespace NTest {
NUtil::NBin::TOut out(stream);
if (Groups > 1) {
- Y_FAIL("Cannot dump TStore with multiple column groups");
+ Y_ABORT("Cannot dump TStore with multiple column groups");
} else if (!PageCollections[MainPageCollection]) {
- Y_FAIL("Cannot dump TStore with empty leader page collection");
+ Y_ABORT("Cannot dump TStore with empty leader page collection");
} else if (PageCollections[GetOuterRoom()] || PageCollections[GetExternRoom()]) {
- Y_FAIL("TStore has auxillary rooms, cannot be dumped");
+ Y_ABORT("TStore has auxillary rooms, cannot be dumped");
}
/* Dump pages as is, without any special markup as it already
@@ -180,7 +180,7 @@ namespace NTest {
got = in.Load(begin, to.mutable_end() - begin);
if (got + sizeof(NPage::TLabel) != label.Size) {
- Y_FAIL("Stausage loading stalled in middle of page");
+ Y_ABORT("Stausage loading stalled in middle of page");
} else if (label.Type == EPage::Scheme) {
/* Required for Read(Evolution < 16), hack for old style
scheme pages without leading label. It was ecoded in
diff --git a/ydb/core/tablet_flat/test/libs/table/test_writer.h b/ydb/core/tablet_flat/test/libs/table/test_writer.h
index 84f8b0b881..f856ee1e83 100644
--- a/ydb/core/tablet_flat/test/libs/table/test_writer.h
+++ b/ydb/core/tablet_flat/test/libs/table/test_writer.h
@@ -264,7 +264,7 @@ namespace NTest {
if (const auto *written = eggs.Written.Get()) {
mass.Model->Check({ &written->Rows, 1 });
} else {
- Y_FAIL("Got part eggs without TWriteStats result");
+ Y_ABORT("Got part eggs without TWriteStats result");
}
return eggs;
diff --git a/ydb/core/tablet_flat/test/libs/table/wrap_dbase.h b/ydb/core/tablet_flat/test/libs/table/wrap_dbase.h
index 6d89a40644..07401614e9 100644
--- a/ydb/core/tablet_flat/test/libs/table/wrap_dbase.h
+++ b/ydb/core/tablet_flat/test/libs/table/wrap_dbase.h
@@ -46,7 +46,7 @@ namespace NTest {
EReady Seek(TRawVals key, ESeek seek) noexcept
{
if (seek == ESeek::Upper && !key)
- Y_FAIL("Cannot cast ESeek::Upper with empty key to ELookup");
+ Y_ABORT("Cannot cast ESeek::Upper with empty key to ELookup");
TKeyRange range;
range.MinKey = key;
diff --git a/ydb/core/tablet_flat/test/tool/perf/names.h b/ydb/core/tablet_flat/test/tool/perf/names.h
index 52a1b22c10..b39964ab0c 100644
--- a/ydb/core/tablet_flat/test/tool/perf/names.h
+++ b/ydb/core/tablet_flat/test/tool/perf/names.h
@@ -23,7 +23,7 @@ namespace NFmt {
if (sponge == ESponge::Fnv) return "fnv";
if (sponge == ESponge::Xor) return "xor";
- Y_FAIL("Unreachable code");
+ Y_ABORT("Unreachable code");
}
};
}
diff --git a/ydb/core/tablet_flat/ut/flat_test_db.h b/ydb/core/tablet_flat/ut/flat_test_db.h
index 244fec096d..dc5d278a7f 100644
--- a/ydb/core/tablet_flat/ut/flat_test_db.h
+++ b/ydb/core/tablet_flat/ut/flat_test_db.h
@@ -344,9 +344,9 @@ private:
const auto num = one.ColumnCount;
if (num != two.ColumnCount) {
- Y_FAIL("Got different key columns count");
+ Y_ABORT("Got different key columns count");
} else if (!std::equal(one.Types, one.Types + num, two.Types)) {
- Y_FAIL("TDbTupleRef rows types vec are not the same");
+ Y_ABORT("TDbTupleRef rows types vec are not the same");
} else {
return CompareTypedCellVectors(one.Columns, two.Columns, one.Types, num);
}
diff --git a/ydb/core/tablet_flat/ut/ut_screen.cpp b/ydb/core/tablet_flat/ut/ut_screen.cpp
index b2496bf715..f79d629f8a 100644
--- a/ydb/core/tablet_flat/ut/ut_screen.cpp
+++ b/ydb/core/tablet_flat/ut/ut_screen.cpp
@@ -166,7 +166,7 @@ Y_UNIT_TEST_SUITE(TScreen) {
iter.Seek(*it, ESeek::Lower).Is(EReady::Gone);
iter.Seek(*it, ESeek::Upper).Is(EReady::Gone);
} else {
- Y_FAIL("Got AnyOff row within the range");
+ Y_ABORT("Got AnyOff row within the range");
}
}
}
diff --git a/ydb/core/tablet_flat/ut/ut_slice_loader.cpp b/ydb/core/tablet_flat/ut/ut_slice_loader.cpp
index ed4d4c574f..d8c8cfc993 100644
--- a/ydb/core/tablet_flat/ut/ut_slice_loader.cpp
+++ b/ydb/core/tablet_flat/ut/ut_slice_loader.cpp
@@ -80,17 +80,17 @@ namespace {
NPageCollection::TBorder Bounds(ui32) const noexcept override
{
- Y_FAIL("Unexpected Bounds(...) call");
+ Y_ABORT("Unexpected Bounds(...) call");
}
NPageCollection::TGlobId Glob(ui32) const noexcept override
{
- Y_FAIL("Unexpected Glob(...) call");
+ Y_ABORT("Unexpected Glob(...) call");
}
bool Verify(ui32, TArrayRef<const char>) const noexcept override
{
- Y_FAIL("Unexpected Verify(...) call");
+ Y_ABORT("Unexpected Verify(...) call");
}
size_t BackingSize() const noexcept override
diff --git a/ydb/core/tablet_flat/util_fmt_logger.h b/ydb/core/tablet_flat/util_fmt_logger.h
index 784e1795fd..c7a9e7a3d6 100644
--- a/ydb/core/tablet_flat/util_fmt_logger.h
+++ b/ydb/core/tablet_flat/util_fmt_logger.h
@@ -59,7 +59,7 @@ namespace NUtil {
auto *ev = new NLog::TEvLog(stamp, ui32(level), Comp, line);
if (!Sys->Send(Path, ev))
- Y_FAIL("Cannot send NLog::TEvLog to logger actor");
+ Y_ABORT("Cannot send NLog::TEvLog to logger actor");
}
private:
diff --git a/ydb/core/test_tablet/load_actor_read_validate.cpp b/ydb/core/test_tablet/load_actor_read_validate.cpp
index 8c3ed78086..d9d548be5f 100644
--- a/ydb/core/test_tablet/load_actor_read_validate.cpp
+++ b/ydb/core/test_tablet/load_actor_read_validate.cpp
@@ -330,7 +330,7 @@ namespace NKikimr::NTestShard {
return;
default:
- Y_FAIL();
+ Y_ABORT();
}
if (!r.ItemsSize()) {
@@ -412,7 +412,7 @@ namespace NKikimr::NTestShard {
break;
default:
- Y_FAIL("unexpected key state in State dict");
+ Y_ABORT("unexpected key state in State dict");
}
State.erase(it);
} else {
@@ -487,7 +487,7 @@ namespace NKikimr::NTestShard {
return;
default:
- Y_FAIL();
+ Y_ABORT();
}
Y_ABORT_UNLESS(!TransitionInFlight.empty());
diff --git a/ydb/core/test_tablet/load_actor_state.cpp b/ydb/core/test_tablet/load_actor_state.cpp
index 7be3bb1123..ae621b40fc 100644
--- a/ydb/core/test_tablet/load_actor_state.cpp
+++ b/ydb/core/test_tablet/load_actor_state.cpp
@@ -77,7 +77,7 @@ namespace NKikimr::NTestShard {
return;
default:
- Y_FAIL();
+ Y_ABORT();
}
// obtain current key
diff --git a/ydb/core/test_tablet/test_shard_context.cpp b/ydb/core/test_tablet/test_shard_context.cpp
index 8f740f5cda..cd9c13de7e 100644
--- a/ydb/core/test_tablet/test_shard_context.cpp
+++ b/ydb/core/test_tablet/test_shard_context.cpp
@@ -32,7 +32,7 @@ namespace NKikimr::NTestShard {
case ::NTestShard::TStateServer::TRequest::kTabletInfo:
case ::NTestShard::TStateServer::TRequest::COMMAND_NOT_SET:
- Y_FAIL("incorrect request received");
+ Y_ABORT("incorrect request received");
}
}
diff --git a/ydb/core/test_tablet/test_shard_mon.cpp b/ydb/core/test_tablet/test_shard_mon.cpp
index 0fb55ad663..f7bb8ec779 100644
--- a/ydb/core/test_tablet/test_shard_mon.cpp
+++ b/ydb/core/test_tablet/test_shard_mon.cpp
@@ -47,7 +47,7 @@ namespace NKikimr::NTestShard {
break;
default:
- Y_FAIL("unexpected Cookie");
+ Y_ABORT("unexpected Cookie");
}
if (!--RepliesPending) {
PassAway();
diff --git a/ydb/core/testlib/actors/test_runtime_ut.cpp b/ydb/core/testlib/actors/test_runtime_ut.cpp
index 02dbeace7f..8554200d36 100644
--- a/ydb/core/testlib/actors/test_runtime_ut.cpp
+++ b/ydb/core/testlib/actors/test_runtime_ut.cpp
@@ -485,7 +485,7 @@ Y_UNIT_TEST_SUITE(TActorTest) {
HFunc(TEvents::TEvPing, Handle);
HFunc(TEvents::TEvPong, Handle);
default:
- Y_FAIL("unexpected event");
+ Y_ABORT("unexpected event");
}
}
@@ -564,7 +564,7 @@ Y_UNIT_TEST_SUITE(TActorTest) {
switch (ev->GetTypeRewrite()) {
HFunc(TEvents::TEvWakeup, Handle);
default:
- Y_FAIL("unexpected event");
+ Y_ABORT("unexpected event");
}
}
};
diff --git a/ydb/core/testlib/cs_helper.cpp b/ydb/core/testlib/cs_helper.cpp
index 9a6cf6294b..bfa78880d5 100644
--- a/ydb/core/testlib/cs_helper.cpp
+++ b/ydb/core/testlib/cs_helper.cpp
@@ -367,7 +367,7 @@ std::shared_ptr<arrow::RecordBatch> TCickBenchHelper::TestArrowBatch(ui64, ui64
break;
}
default:
- Y_FAIL("unexpected type");
+ Y_ABORT("unexpected type");
}
}
}
diff --git a/ydb/core/testlib/tablet_helpers.cpp b/ydb/core/testlib/tablet_helpers.cpp
index 969a52ea36..6dd4d18e9a 100644
--- a/ydb/core/testlib/tablet_helpers.cpp
+++ b/ydb/core/testlib/tablet_helpers.cpp
@@ -60,7 +60,7 @@ static NActors::TTestActorRuntime& AsKikimrRuntime(NActors::TTestActorRuntimeBas
return dynamic_cast<NActors::TTestBasicRuntime&>(r);
} catch (const std::bad_cast& e) {
Cerr << e.what() << Endl;
- Y_FAIL("Failed to cast to TTestActorRuntime: %s", e.what());
+ Y_ABORT("Failed to cast to TTestActorRuntime: %s", e.what());
}
}
@@ -496,7 +496,7 @@ namespace NKikimr {
CurrentItems.push_back(currentItem->DelayedExecution.Get());
return TTestActorRuntime::EEventAction::RESCHEDULE;
} else {
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/testlib/tenant_runtime.cpp b/ydb/core/testlib/tenant_runtime.cpp
index 8f00eeba39..6b93c818fa 100644
--- a/ydb/core/testlib/tenant_runtime.cpp
+++ b/ydb/core/testlib/tenant_runtime.cpp
@@ -694,7 +694,7 @@ public:
default:
if (!HandleDefaultEvents(ev, SelfId())) {
- //Y_FAIL("TFakeHive::StateWork unexpected event type: %" PRIx32 " event: %s",
+ //Y_ABORT("TFakeHive::StateWork unexpected event type: %" PRIx32 " event: %s",
// ev->GetTypeRewrite(), ev->HasEvent() ? ~ev->GetBase()->ToString() : "serialized?");
}
}
diff --git a/ydb/core/testlib/test_client.cpp b/ydb/core/testlib/test_client.cpp
index 7712a71437..41da3e0664 100644
--- a/ydb/core/testlib/test_client.cpp
+++ b/ydb/core/testlib/test_client.cpp
@@ -362,7 +362,7 @@ namespace Tests {
try {
result.GetValue();
} catch (const std::exception& ex) {
- Y_FAIL("Unable to prepare GRpc service: %s", ex.what());
+ Y_ABORT("Unable to prepare GRpc service: %s", ex.what());
}
} else {
grpcService->Start();
diff --git a/ydb/core/tx/columnshard/blob.h b/ydb/core/tx/columnshard/blob.h
index 3b20ec7887..ea3790266d 100644
--- a/ydb/core/tx/columnshard/blob.h
+++ b/ydb/core/tx/columnshard/blob.h
@@ -181,9 +181,9 @@ public:
case S3_BLOB:
return std::get<TS3BlobId>(Id).DsBlobId.BlobId.BlobSize();
case INVALID:
- Y_FAIL("Invalid blob id");
+ Y_ABORT("Invalid blob id");
}
- Y_FAIL();
+ Y_ABORT();
}
bool IsSmallBlob() const {
@@ -222,9 +222,9 @@ public:
case S3_BLOB:
return std::get<TS3BlobId>(Id).DsBlobId.BlobId.TabletID();
case INVALID:
- Y_FAIL("Invalid blob id");
+ Y_ABORT("Invalid blob id");
}
- Y_FAIL();
+ Y_ABORT();
}
ui64 Hash() const noexcept {
@@ -238,7 +238,7 @@ public:
case S3_BLOB:
return std::get<TS3BlobId>(Id).Hash();
}
- Y_FAIL();
+ Y_ABORT();
}
// This is only implemented for DS for backward compatibility with persisted data.
@@ -255,11 +255,11 @@ public:
case TABLET_SMALL_BLOB:
return std::get<TSmallBlobId>(Id).ToStringLegacy();
case S3_BLOB:
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
case INVALID:
return "<Invalid blob id>";
}
- Y_FAIL();
+ Y_ABORT();
}
TString ToStringNew() const {
@@ -273,7 +273,7 @@ public:
case INVALID:
return "<Invalid blob id>";
}
- Y_FAIL();
+ Y_ABORT();
}
};
diff --git a/ydb/core/tx/columnshard/blob_cache.cpp b/ydb/core/tx/columnshard/blob_cache.cpp
index d1ed10f959..5985812cd4 100644
--- a/ydb/core/tx/columnshard/blob_cache.cpp
+++ b/ydb/core/tx/columnshard/blob_cache.cpp
@@ -446,7 +446,7 @@ private:
const ui64 readCookie = ev->Cookie;
if (ev->Get()->ResponseSz < 1) {
- Y_FAIL("Unexpected reply from blobstorage");
+ Y_ABORT("Unexpected reply from blobstorage");
}
if (ev->Get()->Status != NKikimrProto::EReplyStatus::OK) {
diff --git a/ydb/core/tx/columnshard/blob_manager.cpp b/ydb/core/tx/columnshard/blob_manager.cpp
index 34f089b89c..57820ba74e 100644
--- a/ydb/core/tx/columnshard/blob_manager.cpp
+++ b/ydb/core/tx/columnshard/blob_manager.cpp
@@ -13,7 +13,7 @@ TLogoBlobID ParseLogoBlobId(TString blobId) {
TLogoBlobID logoBlobId;
TString err;
if (!TLogoBlobID::Parse(logoBlobId, blobId, err)) {
- Y_FAIL("%s", err.c_str());
+ Y_ABORT("%s", err.c_str());
}
return logoBlobId;
}
@@ -157,7 +157,7 @@ bool TBlobManager::LoadState(IBlobManagerDb& db) {
BlobsToDelete.insert(unifiedBlobId.GetLogoBlobId());
BlobsManagerCounters.OnDeleteBlobMarker(unifiedBlobId.BlobSize());
} else {
- Y_FAIL("Unexpected blob id: %s", unifiedBlobId.ToStringNew().c_str());
+ Y_ABORT("Unexpected blob id: %s", unifiedBlobId.ToStringNew().c_str());
}
}
BlobsManagerCounters.OnBlobsDelete(BlobsToDelete);
diff --git a/ydb/core/tx/columnshard/columnshard__init.cpp b/ydb/core/tx/columnshard/columnshard__init.cpp
index 19da145132..fb7e6705b8 100644
--- a/ydb/core/tx/columnshard/columnshard__init.cpp
+++ b/ydb/core/tx/columnshard/columnshard__init.cpp
@@ -197,9 +197,9 @@ bool TTxInit::Execute(TTransactionContext& txc, const TActorContext& ctx) {
return false;
} catch (const TSchemeErrorTabletException& ex) {
Y_UNUSED(ex);
- Y_FAIL();
+ Y_ABORT();
} catch (...) {
- Y_FAIL("there must be no leaked exceptions");
+ Y_ABORT("there must be no leaked exceptions");
}
return true;
@@ -322,7 +322,7 @@ bool TColumnShard::LoadTx(const ui64 txId, const NKikimrTxColumnShard::ETransact
break;
}
default: {
- Y_FAIL("Unsupported TxKind stored in the TxInfo table");
+ Y_ABORT("Unsupported TxKind stored in the TxInfo table");
}
}
return true;
diff --git a/ydb/core/tx/columnshard/columnshard__progress_tx.cpp b/ydb/core/tx/columnshard/columnshard__progress_tx.cpp
index c0c174a9a1..0dafcd387d 100644
--- a/ydb/core/tx/columnshard/columnshard__progress_tx.cpp
+++ b/ydb/core/tx/columnshard/columnshard__progress_tx.cpp
@@ -128,7 +128,7 @@ public:
break;
}
default: {
- Y_FAIL("Unexpected TxKind");
+ Y_ABORT("Unexpected TxKind");
}
}
diff --git a/ydb/core/tx/columnshard/columnshard__scan.cpp b/ydb/core/tx/columnshard/columnshard__scan.cpp
index dad59d8b7c..bcf0ec283f 100644
--- a/ydb/core/tx/columnshard/columnshard__scan.cpp
+++ b/ydb/core/tx/columnshard/columnshard__scan.cpp
@@ -122,7 +122,7 @@ private:
hFunc(TEvents::TEvWakeup, HandleScan);
hFunc(NConveyor::TEvExecution::TEvTaskProcessedResult, HandleScan);
default:
- Y_FAIL("TColumnShardScan: unexpected event 0x%08" PRIx32, ev->GetTypeRewrite());
+ Y_ABORT("TColumnShardScan: unexpected event 0x%08" PRIx32, ev->GetTypeRewrite());
}
}
diff --git a/ydb/core/tx/columnshard/columnshard__write.cpp b/ydb/core/tx/columnshard/columnshard__write.cpp
index e9d94e4a6d..c3857484a8 100644
--- a/ydb/core/tx/columnshard/columnshard__write.cpp
+++ b/ydb/core/tx/columnshard/columnshard__write.cpp
@@ -26,7 +26,7 @@ void TColumnShard::OverloadWriteFail(const EOverloadStatus overloadReason, const
CSCounters.OnOverloadShard(writeData.GetSize());
break;
case EOverloadStatus::None:
- Y_FAIL("invalid function usage");
+ Y_ABORT("invalid function usage");
}
LOG_S_INFO("Write (overload) " << writeData.GetSize() << " bytes into pathId " << writeData.GetWriteMeta().GetTableId()
diff --git a/ydb/core/tx/columnshard/columnshard_impl.cpp b/ydb/core/tx/columnshard/columnshard_impl.cpp
index 48ffe04e95..be304242eb 100644
--- a/ydb/core/tx/columnshard/columnshard_impl.cpp
+++ b/ydb/core/tx/columnshard/columnshard_impl.cpp
@@ -408,7 +408,7 @@ bool TColumnShard::AbortTx(const ui64 txId, const NKikimrTxColumnShard::ETransac
break;
}
default: {
- Y_FAIL("Unsupported TxKind");
+ Y_ABORT("Unsupported TxKind");
}
}
return true;
@@ -477,7 +477,7 @@ void TColumnShard::RunSchemaTx(const NKikimrTxColumnShard::TSchemaTxBody& body,
}
}
- Y_FAIL("Unsupported schema tx type");
+ Y_ABORT("Unsupported schema tx type");
}
void TColumnShard::RunInit(const NKikimrTxColumnShard::TInitShard& proto, const TRowVersion& version,
diff --git a/ydb/core/tx/columnshard/columnshard_ut_common.h b/ydb/core/tx/columnshard/columnshard_ut_common.h
index 33dae25e25..2b83db1ae1 100644
--- a/ydb/core/tx/columnshard/columnshard_ut_common.h
+++ b/ydb/core/tx/columnshard/columnshard_ut_common.h
@@ -489,7 +489,7 @@ namespace NKikimr::NColumnShard {
return true;
}
}
- Y_FAIL("Unknown type combination");
+ Y_ABORT("Unknown type combination");
return false;
});
return TRowBuilder(Index + 1, Owner);
diff --git a/ydb/core/tx/columnshard/engines/changes/with_appended.cpp b/ydb/core/tx/columnshard/engines/changes/with_appended.cpp
index c37654b4c7..0a07d0f0ac 100644
--- a/ydb/core/tx/columnshard/engines/changes/with_appended.cpp
+++ b/ydb/core/tx/columnshard/engines/changes/with_appended.cpp
@@ -31,10 +31,10 @@ void TChangesWithAppend::DoWriteIndex(NColumnShard::TColumnShard& self, TWriteIn
self.IncCounter(NColumnShard::COUNTER_SPLIT_COMPACTION_PORTIONS_WRITTEN);
break;
case NOlap::TPortionMeta::EProduced::EVICTED:
- Y_FAIL("Unexpected evicted case");
+ Y_ABORT("Unexpected evicted case");
break;
case NOlap::TPortionMeta::EProduced::INACTIVE:
- Y_FAIL("Unexpected inactive case");
+ Y_ABORT("Unexpected inactive case");
break;
}
}
diff --git a/ydb/core/tx/columnshard/engines/portions/meta.cpp b/ydb/core/tx/columnshard/engines/portions/meta.cpp
index 37af059d6b..3dac564fab 100644
--- a/ydb/core/tx/columnshard/engines/portions/meta.cpp
+++ b/ydb/core/tx/columnshard/engines/portions/meta.cpp
@@ -83,7 +83,7 @@ std::optional<NKikimrTxColumnShard::TIndexPortionMeta> TPortionMeta::SerializeTo
portionMeta.SetIsEvicted(true);
break;
case TPortionMeta::EProduced::INACTIVE:
- Y_FAIL("Unexpected inactive case");
+ Y_ABORT("Unexpected inactive case");
//portionMeta->SetInactive(true);
break;
}
diff --git a/ydb/core/tx/columnshard/engines/ut_program.cpp b/ydb/core/tx/columnshard/engines/ut_program.cpp
index fecb3e8080..8e5457c504 100644
--- a/ydb/core/tx/columnshard/engines/ut_program.cpp
+++ b/ydb/core/tx/columnshard/engines/ut_program.cpp
@@ -78,7 +78,7 @@ Y_UNIT_TEST_SUITE(TestProgram) {
return ReqBuilder->AddBinaryOp(NYql::TKernelRequestBuilder::EBinaryOp::StringContains, blockStringType, blockStringType, blockBoolType);
}
default:
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
}
@@ -602,7 +602,7 @@ Y_UNIT_TEST_SUITE(TestProgram) {
auto expected = result.BuildArrow();
UNIT_ASSERT_VALUES_EQUAL(batch->ToString(), expected->ToString());
} else {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
}
diff --git a/ydb/core/tx/columnshard/splitter/ut/ut_splitter.cpp b/ydb/core/tx/columnshard/splitter/ut/ut_splitter.cpp
index 04a4dadbdc..4b17b8a410 100644
--- a/ydb/core/tx/columnshard/splitter/ut/ut_splitter.cpp
+++ b/ydb/core/tx/columnshard/splitter/ut/ut_splitter.cpp
@@ -58,7 +58,7 @@ Y_UNIT_TEST_SUITE(Splitter) {
return i.first;
}
}
- Y_FAIL("cannot find column by id");
+ Y_ABORT("cannot find column by id");
return "";
}
};
diff --git a/ydb/core/tx/coordinator/coordinator__restore_transaction.cpp b/ydb/core/tx/coordinator/coordinator__restore_transaction.cpp
index 25cfd0bd16..af411d349e 100644
--- a/ydb/core/tx/coordinator/coordinator__restore_transaction.cpp
+++ b/ydb/core/tx/coordinator/coordinator__restore_transaction.cpp
@@ -118,7 +118,7 @@ struct TTxCoordinator::TTxRestoreTransactions : public TTransactionBase<TTxCoord
out.Finish();
Cerr << "Coordinator DB dumped to " << dbDumpFile;
Sleep(TDuration::Seconds(10));
- Y_FAIL("Transaction(s) not found!");
+ Y_ABORT("Transaction(s) not found!");
}
}
diff --git a/ydb/core/tx/coordinator/coordinator_impl.cpp b/ydb/core/tx/coordinator/coordinator_impl.cpp
index a9d445335c..a5c2882059 100644
--- a/ydb/core/tx/coordinator/coordinator_impl.cpp
+++ b/ydb/core/tx/coordinator/coordinator_impl.cpp
@@ -437,7 +437,7 @@ void TTxCoordinator::DoConfiguration(const TEvSubDomain::TEvConfigure &ev, const
, "tablet# " << TabletID()
<< " HANDLE EvCoordinatorConfiguration Version# " << record.GetVersion()
<< " recive empty mediators set");
- Y_FAIL("empty mediators set");
+ Y_ABORT("empty mediators set");
return;
}
diff --git a/ydb/core/tx/datashard/build_data_tx_out_rs_unit.cpp b/ydb/core/tx/datashard/build_data_tx_out_rs_unit.cpp
index 0d088881c2..3dfd522b0c 100644
--- a/ydb/core/tx/datashard/build_data_tx_out_rs_unit.cpp
+++ b/ydb/core/tx/datashard/build_data_tx_out_rs_unit.cpp
@@ -58,7 +58,7 @@ EExecutionStatus TBuildDataTxOutRSUnit::Execute(TOperation::TPtr op,
case ERestoreDataStatus::Restart:
return EExecutionStatus::Restart;
case ERestoreDataStatus::Error:
- Y_FAIL("Failed to restore tx data: %s", tx->GetDataTx()->GetErrors().c_str());
+ Y_ABORT("Failed to restore tx data: %s", tx->GetDataTx()->GetErrors().c_str());
}
}
diff --git a/ydb/core/tx/datashard/build_kqp_data_tx_out_rs_unit.cpp b/ydb/core/tx/datashard/build_kqp_data_tx_out_rs_unit.cpp
index 62af3247a3..343fa012d2 100644
--- a/ydb/core/tx/datashard/build_kqp_data_tx_out_rs_unit.cpp
+++ b/ydb/core/tx/datashard/build_kqp_data_tx_out_rs_unit.cpp
@@ -58,7 +58,7 @@ EExecutionStatus TBuildKqpDataTxOutRSUnit::Execute(TOperation::TPtr op, TTransac
case ERestoreDataStatus::Restart:
return EExecutionStatus::Restart;
case ERestoreDataStatus::Error:
- Y_FAIL("Failed to restore tx data: %s", tx->GetDataTx()->GetErrors().c_str());
+ Y_ABORT("Failed to restore tx data: %s", tx->GetDataTx()->GetErrors().c_str());
}
}
diff --git a/ydb/core/tx/datashard/change_collector_async_index.cpp b/ydb/core/tx/datashard/change_collector_async_index.cpp
index 0f6b8f90d2..b437143a53 100644
--- a/ydb/core/tx/datashard/change_collector_async_index.cpp
+++ b/ydb/core/tx/datashard/change_collector_async_index.cpp
@@ -227,7 +227,7 @@ TArrayRef<TTag> TAsyncIndexChangeCollector::GetTagsToSelect(const TTableId& tabl
case ERowOp::Reset:
return it->second.IndexColumns;
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
diff --git a/ydb/core/tx/datashard/change_collector_cdc_stream.cpp b/ydb/core/tx/datashard/change_collector_cdc_stream.cpp
index 15d79db771..30dfb5b8b4 100644
--- a/ydb/core/tx/datashard/change_collector_cdc_stream.cpp
+++ b/ydb/core/tx/datashard/change_collector_cdc_stream.cpp
@@ -319,7 +319,7 @@ TRowState TCdcStreamChangeCollector::PatchState(const TRowState& oldState, ERowO
case ERowOp::Erase:
break;
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
Y_ABORT_UNLESS(newState.IsFinalized());
diff --git a/ydb/core/tx/datashard/change_exchange_split.cpp b/ydb/core/tx/datashard/change_exchange_split.cpp
index 7b2de8ffb4..8001fffa14 100644
--- a/ydb/core/tx/datashard/change_exchange_split.cpp
+++ b/ydb/core/tx/datashard/change_exchange_split.cpp
@@ -518,7 +518,7 @@ class TChangeExchageSplit: public TActorBootstrapped<TChangeExchageSplit> {
case EWorkerType::CdcStream:
return Register(new TCdcWorker(SelfId(), pathId, DataShard.TabletId, DstDataShards));
case EWorkerType::AsyncIndex:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
diff --git a/ydb/core/tx/datashard/change_record.cpp b/ydb/core/tx/datashard/change_record.cpp
index 0f84a1b71f..b886b3eeff 100644
--- a/ydb/core/tx/datashard/change_record.cpp
+++ b/ydb/core/tx/datashard/change_record.cpp
@@ -111,9 +111,9 @@ static NJson::TJsonValue ToJson(const TCell& cell, NScheme::TTypeInfo type) {
return YsonToJson(cell.AsBuf());
case NScheme::NTypeIds::Pg:
// TODO: support pg types
- Y_FAIL("pg types are not supported");
+ Y_ABORT("pg types are not supported");
default:
- Y_FAIL("Unexpected type");
+ Y_ABORT("Unexpected type");
}
}
@@ -425,7 +425,7 @@ TConstArrayRef<TCell> TChangeRecord::GetKey() const {
}
case EKind::CdcHeartbeat: {
- Y_FAIL("Not supported");
+ Y_ABORT("Not supported");
}
}
@@ -457,7 +457,7 @@ TString TChangeRecord::GetPartitionKey() const {
case EKind::CdcHeartbeat:
case EKind::AsyncIndex: {
- Y_FAIL("Not supported");
+ Y_ABORT("Not supported");
}
}
diff --git a/ydb/core/tx/datashard/datashard.cpp b/ydb/core/tx/datashard/datashard.cpp
index 5025101494..7b7616d7d4 100644
--- a/ydb/core/tx/datashard/datashard.cpp
+++ b/ydb/core/tx/datashard/datashard.cpp
@@ -1786,7 +1786,7 @@ void TDataShard::SnapshotComplete(TIntrusivePtr<NTabletFlatExecutor::TTableSnaps
return;
}
- Y_FAIL("Unexpected table snapshot context");
+ Y_ABORT("Unexpected table snapshot context");
}
TUserTable::TSpecialUpdate TDataShard::SpecialUpdates(const NTable::TDatabase& db, const TTableId& tableId) const {
@@ -2035,7 +2035,7 @@ TRowVersion TDataShard::GetMvccTxVersion(EMvccTxMode mode, TOperation* op) const
}
}
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
TReadWriteVersions TDataShard::GetReadWriteVersions(TOperation* op) const {
diff --git a/ydb/core/tx/datashard/datashard__engine_host.cpp b/ydb/core/tx/datashard/datashard__engine_host.cpp
index 08e89a420d..ad5c3f7974 100644
--- a/ydb/core/tx/datashard/datashard__engine_host.cpp
+++ b/ydb/core/tx/datashard/datashard__engine_host.cpp
@@ -184,7 +184,7 @@ public:
if (tableId.PathId.LocalPathId == TSysTables::SysTableLocks)
return Locks;
- Y_FAIL("unexpected sys table id");
+ Y_ABORT("unexpected sys table id");
}
};
diff --git a/ydb/core/tx/datashard/datashard__init.cpp b/ydb/core/tx/datashard/datashard__init.cpp
index a5d794ae25..02b26e6782 100644
--- a/ydb/core/tx/datashard/datashard__init.cpp
+++ b/ydb/core/tx/datashard/datashard__init.cpp
@@ -54,9 +54,9 @@ bool TDataShard::TTxInit::Execute(TTransactionContext& txc, const TActorContext&
return false;
} catch (const TSchemeErrorTabletException &ex) {
Y_UNUSED(ex);
- Y_FAIL();
+ Y_ABORT();
} catch (...) {
- Y_FAIL("there must be no leaked exceptions");
+ Y_ABORT("there must be no leaked exceptions");
}
}
diff --git a/ydb/core/tx/datashard/datashard__kqp_scan.cpp b/ydb/core/tx/datashard/datashard__kqp_scan.cpp
index ecba4f58ef..428c61c058 100644
--- a/ydb/core/tx/datashard/datashard__kqp_scan.cpp
+++ b/ydb/core/tx/datashard/datashard__kqp_scan.cpp
@@ -90,7 +90,7 @@ private:
hFunc(TEvents::TEvUndelivered, HandleScan);
hFunc(TEvents::TEvWakeup, HandleScan);
default:
- Y_FAIL("TKqpScan: unexpected event 0x%08" PRIx32, ev->GetTypeRewrite());
+ Y_ABORT("TKqpScan: unexpected event 0x%08" PRIx32, ev->GetTypeRewrite());
}
}
diff --git a/ydb/core/tx/datashard/datashard__op_rows.cpp b/ydb/core/tx/datashard/datashard__op_rows.cpp
index 6ba83f325e..8cc5396fac 100644
--- a/ydb/core/tx/datashard/datashard__op_rows.cpp
+++ b/ydb/core/tx/datashard/datashard__op_rows.cpp
@@ -48,7 +48,7 @@ public:
return false;
case EExecutionStatus::Reschedule:
- Y_FAIL("Unexpected Reschedule status while handling a direct operation");
+ Y_ABORT("Unexpected Reschedule status while handling a direct operation");
case EExecutionStatus::Executed:
case EExecutionStatus::Continue:
diff --git a/ydb/core/tx/datashard/datashard__progress_tx.cpp b/ydb/core/tx/datashard/datashard__progress_tx.cpp
index 28f0e037f3..30727cd057 100644
--- a/ydb/core/tx/datashard/datashard__progress_tx.cpp
+++ b/ydb/core/tx/datashard/datashard__progress_tx.cpp
@@ -105,7 +105,7 @@ bool TDataShard::TTxProgressTransaction::Execute(TTransactionContext &txc, const
// Commit all side effects
return true;
} catch (...) {
- Y_FAIL("there must be no leaked exceptions");
+ Y_ABORT("there must be no leaked exceptions");
}
}
diff --git a/ydb/core/tx/datashard/datashard__propose_tx_base.cpp b/ydb/core/tx/datashard/datashard__propose_tx_base.cpp
index 6b44a5e285..71021e888a 100644
--- a/ydb/core/tx/datashard/datashard__propose_tx_base.cpp
+++ b/ydb/core/tx/datashard/datashard__propose_tx_base.cpp
@@ -163,13 +163,13 @@ bool TDataShard::TTxProposeTransactionBase::Execute(NTabletFlatExecutor::TTransa
return false;
} catch (const TSchemeErrorTabletException &ex) {
Y_UNUSED(ex);
- Y_FAIL();
+ Y_ABORT();
} catch (const TMemoryLimitExceededException &ex) {
- Y_FAIL("there must be no leaked exceptions: TMemoryLimitExceededException");
+ Y_ABORT("there must be no leaked exceptions: TMemoryLimitExceededException");
} catch (const std::exception &e) {
- Y_FAIL("there must be no leaked exceptions: %s", e.what());
+ Y_ABORT("there must be no leaked exceptions: %s", e.what());
} catch (...) {
- Y_FAIL("there must be no leaked exceptions");
+ Y_ABORT("there must be no leaked exceptions");
}
}
diff --git a/ydb/core/tx/datashard/datashard__read_iterator.cpp b/ydb/core/tx/datashard/datashard__read_iterator.cpp
index 3dc845570e..12c3863bcc 100644
--- a/ydb/core/tx/datashard/datashard__read_iterator.cpp
+++ b/ydb/core/tx/datashard/datashard__read_iterator.cpp
@@ -2158,13 +2158,13 @@ public:
return true;
} catch (const TSchemeErrorTabletException&) {
- Y_FAIL();
+ Y_ABORT();
} catch (const TMemoryLimitExceededException&) {
- Y_FAIL("there must be no leaked exceptions: TMemoryLimitExceededException");
+ Y_ABORT("there must be no leaked exceptions: TMemoryLimitExceededException");
} catch (const std::exception &e) {
- Y_FAIL("there must be no leaked exceptions: %s", e.what());
+ Y_ABORT("there must be no leaked exceptions: %s", e.what());
} catch (...) {
- Y_FAIL("there must be no leaked exceptions");
+ Y_ABORT("there must be no leaked exceptions");
}
}
diff --git a/ydb/core/tx/datashard/datashard__stats.cpp b/ydb/core/tx/datashard/datashard__stats.cpp
index 8cde2b968d..9257faf4df 100644
--- a/ydb/core/tx/datashard/datashard__stats.cpp
+++ b/ydb/core/tx/datashard/datashard__stats.cpp
@@ -20,12 +20,12 @@ class TStatsEnv : public IPages {
public:
TResult Locate(const TMemTable*, ui64, ui32) noexcept override
{
- Y_FAIL("IPages::Locate(TMemTable*, ...) shouldn't be used here");
+ Y_ABORT("IPages::Locate(TMemTable*, ...) shouldn't be used here");
}
TResult Locate(const TPart*, ui64, ELargeObj) noexcept override
{
- Y_FAIL("IPages::Locate(TPart*, ...) shouldn't be used here");
+ Y_ABORT("IPages::Locate(TPart*, ...) shouldn't be used here");
}
const TSharedData* TryGetPage(const TPart* part, TPageId pageId, TGroupId groupId) override
diff --git a/ydb/core/tx/datashard/datashard_active_transaction.cpp b/ydb/core/tx/datashard/datashard_active_transaction.cpp
index bea79dfeb6..c3eb840ef7 100644
--- a/ydb/core/tx/datashard/datashard_active_transaction.cpp
+++ b/ydb/core/tx/datashard/datashard_active_transaction.cpp
@@ -411,7 +411,7 @@ void TActiveTransaction::FillVolatileTxData(TDataShard *self,
} else if (IsSnapshotTx()) {
BuildSnapshotTx();
} else {
- Y_FAIL("Unexpected FillVolatileTxData call");
+ Y_ABORT("Unexpected FillVolatileTxData call");
}
TrackMemory();
diff --git a/ydb/core/tx/datashard/datashard_direct_erase.cpp b/ydb/core/tx/datashard/datashard_direct_erase.cpp
index b9b96d17bd..cc7835b8b3 100644
--- a/ydb/core/tx/datashard/datashard_direct_erase.cpp
+++ b/ydb/core/tx/datashard/datashard_direct_erase.cpp
@@ -228,7 +228,7 @@ bool TDirectTxErase::CheckRequest(TDataShard* self, const NKikimrTxDataShard::TE
case EStatus::Error:
return false;
case EStatus::PageFault:
- Y_FAIL("Unexpected");
+ Y_ABORT("Unexpected");
}
}
diff --git a/ydb/core/tx/datashard/datashard_kqp_read_table.cpp b/ydb/core/tx/datashard/datashard_kqp_read_table.cpp
index 1b66f536cd..926b7c4441 100644
--- a/ydb/core/tx/datashard/datashard_kqp_read_table.cpp
+++ b/ydb/core/tx/datashard/datashard_kqp_read_table.cpp
@@ -203,7 +203,7 @@ public:
#ifndef MKQL_DISABLE_CODEGEN
ICodegeneratorInlineWideNode::TGenerateResult DoGenGetValues(const TCodegenContext& ctx, BasicBlock*& block) const {
Y_UNUSED(ctx, block);
- Y_FAIL("LLVM compilation is not implemented for OLTP-workload");
+ Y_ABORT("LLVM compilation is not implemented for OLTP-workload");
}
#endif
diff --git a/ydb/core/tx/datashard/datashard_snapshots.cpp b/ydb/core/tx/datashard/datashard_snapshots.cpp
index d21b1dee9a..037c73ec9f 100644
--- a/ydb/core/tx/datashard/datashard_snapshots.cpp
+++ b/ydb/core/tx/datashard/datashard_snapshots.cpp
@@ -464,7 +464,7 @@ bool TSnapshotManager::ChangeMvccState(ui64 step, ui64 txId, TTransactionContext
}
default:
- Y_FAIL("Unexpected mvcc state# %d", (ui32)state);
+ Y_ABORT("Unexpected mvcc state# %d", (ui32)state);
}
txc.DB.OnPersistent([this, edge = CompleteEdge] {
diff --git a/ydb/core/tx/datashard/datashard_user_table.cpp b/ydb/core/tx/datashard/datashard_user_table.cpp
index 982e4e3bdf..8584c71659 100644
--- a/ydb/core/tx/datashard/datashard_user_table.cpp
+++ b/ydb/core/tx/datashard/datashard_user_table.cpp
@@ -104,7 +104,7 @@ void TUserTable::DropIndex(const TPathId& indexPathId) {
return;
}
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
bool TUserTable::HasAsyncIndexes() const {
@@ -162,7 +162,7 @@ void TUserTable::SwitchCdcStreamState(const TPathId& streamPathId, TCdcStream::E
return;
}
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
void TUserTable::DropCdcStream(const TPathId& streamPathId) {
@@ -188,7 +188,7 @@ void TUserTable::DropCdcStream(const TPathId& streamPathId) {
return;
}
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
bool TUserTable::HasCdcStreams() const {
diff --git a/ydb/core/tx/datashard/datashard_user_table.h b/ydb/core/tx/datashard/datashard_user_table.h
index e4e36186b4..40a53145c9 100644
--- a/ydb/core/tx/datashard/datashard_user_table.h
+++ b/ydb/core/tx/datashard/datashard_user_table.h
@@ -208,7 +208,7 @@ struct TUserTable : public TThrRefBase {
return ECodec::LZ4;
// keep no default
}
- Y_FAIL("unexpected");
+ Y_ABORT("unexpected");
}
static ECache ExtractDbCache(const NKikimrSchemeOp::TFamilyDescription& family) {
@@ -227,7 +227,7 @@ struct TUserTable : public TThrRefBase {
return ECache::Ever;
// keep no default
}
- Y_FAIL("unexpected");
+ Y_ABORT("unexpected");
}
};
diff --git a/ydb/core/tx/datashard/datashard_ut_common.cpp b/ydb/core/tx/datashard/datashard_ut_common.cpp
index 1ba9fca71f..9161a0a965 100644
--- a/ydb/core/tx/datashard/datashard_ut_common.cpp
+++ b/ydb/core/tx/datashard/datashard_ut_common.cpp
@@ -94,7 +94,7 @@ TTester::TTester(ESchema schema, const TString& dispatchName, std::function<void
void TTester::EmptyShardKeyResolver(TKeyDesc& key) {
Y_UNUSED(key);
- Y_FAIL();
+ Y_ABORT();
}
void TTester::SingleShardKeyResolver(TKeyDesc& key) {
@@ -1985,7 +1985,7 @@ namespace {
break;
default:
- Y_FAIL("Unhandled");
+ Y_ABORT("Unhandled");
}
}
@@ -2005,7 +2005,7 @@ namespace {
PRINT_PRIMITIVE(DyNumber);
default:
- Y_FAIL("Unhandled");
+ Y_ABORT("Unhandled");
}
#undef PRINT_PRIMITIVE
diff --git a/ydb/core/tx/datashard/datashard_ut_read_table.h b/ydb/core/tx/datashard/datashard_ut_read_table.h
index 218187377f..1967e42172 100644
--- a/ydb/core/tx/datashard/datashard_ut_read_table.h
+++ b/ydb/core/tx/datashard/datashard_ut_read_table.h
@@ -158,7 +158,7 @@ namespace NDataShardReadTableTest {
break;
default:
- Y_FAIL("Unhandled");
+ Y_ABORT("Unhandled");
}
}
@@ -173,7 +173,7 @@ namespace NDataShardReadTableTest {
break;
default:
- Y_FAIL("Unhandled");
+ Y_ABORT("Unhandled");
}
}
diff --git a/ydb/core/tx/datashard/erase_rows_condition.cpp b/ydb/core/tx/datashard/erase_rows_condition.cpp
index f4dd6a11ea..c7766f9a82 100644
--- a/ydb/core/tx/datashard/erase_rows_condition.cpp
+++ b/ydb/core/tx/datashard/erase_rows_condition.cpp
@@ -82,7 +82,7 @@ class TExpirationCondition: public IEraseRowsCondition {
return false;
}
default:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
}
}
@@ -97,7 +97,7 @@ class TExpirationCondition: public IEraseRowsCondition {
return false;
}
default:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
}
}
diff --git a/ydb/core/tx/datashard/execute_data_tx_unit.cpp b/ydb/core/tx/datashard/execute_data_tx_unit.cpp
index 33805af140..5f228721ba 100644
--- a/ydb/core/tx/datashard/execute_data_tx_unit.cpp
+++ b/ydb/core/tx/datashard/execute_data_tx_unit.cpp
@@ -96,7 +96,7 @@ EExecutionStatus TExecuteDataTxUnit::Execute(TOperation::TPtr op,
}
// For planned transactions errors are not expected
- Y_FAIL("Failed to restore tx data: %s", tx->GetDataTx()->GetErrors().c_str());
+ Y_ABORT("Failed to restore tx data: %s", tx->GetDataTx()->GetErrors().c_str());
}
}
diff --git a/ydb/core/tx/datashard/execute_kqp_data_tx_unit.cpp b/ydb/core/tx/datashard/execute_kqp_data_tx_unit.cpp
index c6298b6a03..fa93cdebad 100644
--- a/ydb/core/tx/datashard/execute_kqp_data_tx_unit.cpp
+++ b/ydb/core/tx/datashard/execute_kqp_data_tx_unit.cpp
@@ -98,7 +98,7 @@ EExecutionStatus TExecuteKqpDataTxUnit::Execute(TOperation::TPtr op, TTransactio
}
// For planned transactions errors are not expected
- Y_FAIL("Failed to restore tx data: %s", tx->GetDataTx()->GetErrors().c_str());
+ Y_ABORT("Failed to restore tx data: %s", tx->GetDataTx()->GetErrors().c_str());
}
}
diff --git a/ydb/core/tx/datashard/export_s3.h b/ydb/core/tx/datashard/export_s3.h
index 81168b0e6b..3e3a651c8f 100644
--- a/ydb/core/tx/datashard/export_s3.h
+++ b/ydb/core/tx/datashard/export_s3.h
@@ -35,7 +35,7 @@ public:
case ECompressionCodec::Zstd:
return CreateS3ExportBufferZstd(Task.GetCompression().GetLevel(), Columns, maxRows, maxBytes, minBytes);
case ECompressionCodec::Invalid:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
diff --git a/ydb/core/tx/datashard/export_s3_buffer_raw.cpp b/ydb/core/tx/datashard/export_s3_buffer_raw.cpp
index 8571d51398..ad0ac8c03e 100644
--- a/ydb/core/tx/datashard/export_s3_buffer_raw.cpp
+++ b/ydb/core/tx/datashard/export_s3_buffer_raw.cpp
@@ -123,9 +123,9 @@ void TS3BufferRaw::Collect(const NTable::IScan::TRow& row, IOutputStream& out) {
break;
case NScheme::NTypeIds::Pg:
// TODO: support pg types
- Y_FAIL("Unsupported pg type");
+ Y_ABORT("Unsupported pg type");
default:
- Y_FAIL("Unsupported type");
+ Y_ABORT("Unsupported type");
}
}
@@ -161,7 +161,7 @@ bool TS3BufferRaw::IsFilled() const {
}
TString TS3BufferRaw::GetError() const {
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
TMaybe<TBuffer> TS3BufferRaw::Flush(bool) {
diff --git a/ydb/core/tx/datashard/export_s3_uploader.cpp b/ydb/core/tx/datashard/export_s3_uploader.cpp
index 4ba21b3613..0ff72f3f04 100644
--- a/ydb/core/tx/datashard/export_s3_uploader.cpp
+++ b/ydb/core/tx/datashard/export_s3_uploader.cpp
@@ -14,7 +14,7 @@ protected:
}
void ResolveProxy() override {
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
public:
diff --git a/ydb/core/tx/datashard/import_s3.cpp b/ydb/core/tx/datashard/import_s3.cpp
index 54e2f769d7..5ec7fcc8d3 100644
--- a/ydb/core/tx/datashard/import_s3.cpp
+++ b/ydb/core/tx/datashard/import_s3.cpp
@@ -406,7 +406,7 @@ class TS3Downloader: public TActorBootstrapped<TS3Downloader> {
Reader.Reset(new TReadControllerZstd(ReadBatchSize, ReadBufferSizeLimit));
break;
case NBackupRestoreTraits::ECompressionCodec::Invalid:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
ETag = result.GetResult().GetETag();
diff --git a/ydb/core/tx/datashard/make_scan_snapshot_unit.cpp b/ydb/core/tx/datashard/make_scan_snapshot_unit.cpp
index 1ec465fea7..b52f3d56d0 100644
--- a/ydb/core/tx/datashard/make_scan_snapshot_unit.cpp
+++ b/ydb/core/tx/datashard/make_scan_snapshot_unit.cpp
@@ -64,7 +64,7 @@ EExecutionStatus TMakeScanSnapshotUnit::Execute(TOperation::TPtr op,
auto &info = *DataShard.GetUserTables().at(tid);
if (record.HasSnapshotStep() && record.HasSnapshotTxId()) {
- Y_FAIL("Unexpected MakeScanSnapshot on ReadTable from a persistent snapshot");
+ Y_ABORT("Unexpected MakeScanSnapshot on ReadTable from a persistent snapshot");
}
tx->SetScanSnapshotId(DataShard.MakeScanSnapshot(info.LocalTid));
diff --git a/ydb/core/tx/datashard/prepare_data_tx_in_rs_unit.cpp b/ydb/core/tx/datashard/prepare_data_tx_in_rs_unit.cpp
index 840863e00a..e9b8a354b4 100644
--- a/ydb/core/tx/datashard/prepare_data_tx_in_rs_unit.cpp
+++ b/ydb/core/tx/datashard/prepare_data_tx_in_rs_unit.cpp
@@ -52,7 +52,7 @@ EExecutionStatus TPrepareDataTxInRSUnit::Execute(TOperation::TPtr op,
case ERestoreDataStatus::Restart:
return EExecutionStatus::Restart;
case ERestoreDataStatus::Error:
- Y_FAIL("Failed to restore tx data: %s", tx->GetDataTx()->GetErrors().c_str());
+ Y_ABORT("Failed to restore tx data: %s", tx->GetDataTx()->GetErrors().c_str());
}
}
diff --git a/ydb/core/tx/datashard/prepare_kqp_data_tx_in_rs_unit.cpp b/ydb/core/tx/datashard/prepare_kqp_data_tx_in_rs_unit.cpp
index 7d7ba2f897..bc801f534e 100644
--- a/ydb/core/tx/datashard/prepare_kqp_data_tx_in_rs_unit.cpp
+++ b/ydb/core/tx/datashard/prepare_kqp_data_tx_in_rs_unit.cpp
@@ -41,7 +41,7 @@ EExecutionStatus TPrepareKqpDataTxInRSUnit::Execute(TOperation::TPtr op, TTransa
case ERestoreDataStatus::Restart:
return EExecutionStatus::Restart;
case ERestoreDataStatus::Error:
- Y_FAIL("Failed to restore tx data: %s", tx->GetDataTx()->GetErrors().c_str());
+ Y_ABORT("Failed to restore tx data: %s", tx->GetDataTx()->GetErrors().c_str());
}
}
diff --git a/ydb/core/tx/datashard/range_ops.cpp b/ydb/core/tx/datashard/range_ops.cpp
index adb7f6efbe..49e4124903 100644
--- a/ydb/core/tx/datashard/range_ops.cpp
+++ b/ydb/core/tx/datashard/range_ops.cpp
@@ -133,7 +133,7 @@ NKikimr::TTableRange NKikimr::Intersect(TConstArrayRef<NScheme::TTypeInfo> types
return TTableRange(second.From, second.InclusiveFrom,
first.To, first.InclusiveTo);
} else { // if (cmpTF < 0)
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
} else if (cmpTT == 0) {
//=================
@@ -184,7 +184,7 @@ NKikimr::TTableRange NKikimr::Intersect(TConstArrayRef<NScheme::TTypeInfo> types
second.To, second.InclusiveTo);
} else {
// cmpTT < 0
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
} else { // if (cmpFT > 0)
//=================
diff --git a/ydb/core/tx/datashard/volatile_tx.cpp b/ydb/core/tx/datashard/volatile_tx.cpp
index 6505e27aa5..7c34ff3c3e 100644
--- a/ydb/core/tx/datashard/volatile_tx.cpp
+++ b/ydb/core/tx/datashard/volatile_tx.cpp
@@ -259,7 +259,7 @@ namespace NKikimr::NDataShard {
break;
case EVolatileTxState::Aborting:
PendingAborts.PushBack(pr.second.get());
- Y_FAIL("FIXME: unexpected persistent aborting state");
+ Y_ABORT("FIXME: unexpected persistent aborting state");
break;
}
}
@@ -351,7 +351,7 @@ namespace NKikimr::NDataShard {
case EVolatileTxState::Aborting: {
// Aborting transactions don't have dependencies
info->Dependencies.clear();
- Y_FAIL("FIXME: unexpected persistent aborting state");
+ Y_ABORT("FIXME: unexpected persistent aborting state");
return;
}
}
@@ -833,7 +833,7 @@ namespace NKikimr::NDataShard {
AddPendingCommit(dependentTxId);
break;
case EVolatileTxState::Aborting:
- Y_FAIL("FIXME: unexpected dependency removed from aborting tx");
+ Y_ABORT("FIXME: unexpected dependency removed from aborting tx");
break;
}
}
diff --git a/ydb/core/tx/mediator/mediator_impl.cpp b/ydb/core/tx/mediator/mediator_impl.cpp
index eba02621fe..83cf466784 100644
--- a/ydb/core/tx/mediator/mediator_impl.cpp
+++ b/ydb/core/tx/mediator/mediator_impl.cpp
@@ -113,7 +113,7 @@ void TTxMediator::DoConfigure(const TEvSubDomain::TEvConfigure &ev, const TActor
, "tablet# " << TabletID() << " actor# " << SelfId()
<< " Apply TEvMediatorConfiguration Version# " << record.GetVersion()
<< " recive empty coordinators set");
- Y_FAIL("empty coordinators set");
+ Y_ABORT("empty coordinators set");
return;
}
@@ -266,7 +266,7 @@ void TTxMediator::ProcessForeignStep(const TActorId &sender, const NKikimrTx::TE
Y_UNUSED(info);
Y_UNUSED(ctx);
- Y_FAIL("TODO");
+ Y_ABORT("TODO");
}
void TTxMediator::Handle(TEvTxCoordinator::TEvCoordinatorStep::TPtr &ev, const TActorContext &ctx) {
diff --git a/ydb/core/tx/mediator/tablet_queue.cpp b/ydb/core/tx/mediator/tablet_queue.cpp
index 347a5136f8..a2c746c81b 100644
--- a/ydb/core/tx/mediator/tablet_queue.cpp
+++ b/ydb/core/tx/mediator/tablet_queue.cpp
@@ -408,7 +408,7 @@ void TTxMediatorTabletQueue::TTabletEntry::MergeOutOfOrder(TStep *sx) {
++oooIt;
++planIt;
} else {
- Y_FAIL("Inconsistency: Plan TxId %" PRIu64 " > OutOfOrder TxId %" PRIu64, planIt->TxId, oooIt->TxId);
+ Y_ABORT("Inconsistency: Plan TxId %" PRIu64 " > OutOfOrder TxId %" PRIu64, planIt->TxId, oooIt->TxId);
}
}
OutOfOrder.erase(ox);
diff --git a/ydb/core/tx/replication/controller/tx_drop_replication.cpp b/ydb/core/tx/replication/controller/tx_drop_replication.cpp
index b59e519b3b..d3f115cbc7 100644
--- a/ydb/core/tx/replication/controller/tx_drop_replication.cpp
+++ b/ydb/core/tx/replication/controller/tx_drop_replication.cpp
@@ -31,7 +31,7 @@ public:
} else if (PrivEv) {
return ExecutePriv(txc, ctx);
} else {
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
diff --git a/ydb/core/tx/replication/ydb_proxy/ydb_proxy.cpp b/ydb/core/tx/replication/ydb_proxy/ydb_proxy.cpp
index 1e3529252e..20052669a3 100644
--- a/ydb/core/tx/replication/ydb_proxy/ydb_proxy.cpp
+++ b/ydb/core/tx/replication/ydb_proxy/ydb_proxy.cpp
@@ -246,7 +246,7 @@ class TYdbProxy: public TBaseProxyActor<TYdbProxy> {
} else if constexpr (std::is_same_v<TClient, TTopicClient>) {
return EnsureClient<TClient, TTopicClientSettings>(TopicClient);
} else {
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
diff --git a/ydb/core/tx/scheme_board/cache.cpp b/ydb/core/tx/scheme_board/cache.cpp
index a506f0591a..e5ea020eea 100644
--- a/ydb/core/tx/scheme_board/cache.cpp
+++ b/ydb/core/tx/scheme_board/cache.cpp
@@ -1205,7 +1205,7 @@ class TSchemeCache: public TMonitorableActor<TSchemeCache> {
} else if (auto* context = std::get_if<TResolveContextPtr>(&contextVariant)) {
ProcessInFlightNoCheck(*context, requests);
} else {
- Y_FAIL("unknown context type");
+ Y_ABORT("unknown context type");
}
}
}
@@ -1309,7 +1309,7 @@ class TSchemeCache: public TMonitorableActor<TSchemeCache> {
} else if (auto* context = std::get_if<TResolveContextPtr>(&kv.first)) {
ProcessInFlight(context->Get(), kv.second, response);
} else {
- Y_FAIL("unknown context type");
+ Y_ABORT("unknown context type");
}
return kv.second.empty();
@@ -2436,7 +2436,7 @@ class TSchemeCache: public TMonitorableActor<TSchemeCache> {
Complete(*context);
}
} else {
- Y_FAIL("unknown context type");
+ Y_ABORT("unknown context type");
}
}
}
diff --git a/ydb/core/tx/scheme_board/load_test.cpp b/ydb/core/tx/scheme_board/load_test.cpp
index 1ac444e1df..794b0a8fd8 100644
--- a/ydb/core/tx/scheme_board/load_test.cpp
+++ b/ydb/core/tx/scheme_board/load_test.cpp
@@ -126,7 +126,7 @@ class TLoadProducer: public TActorBootstrapped<TLoadProducer> {
return pathId;
}
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
}
void Modify(TPathId pathId) {
diff --git a/ydb/core/tx/scheme_board/monitoring.cpp b/ydb/core/tx/scheme_board/monitoring.cpp
index 48eabc072f..d88fa746c6 100644
--- a/ydb/core/tx/scheme_board/monitoring.cpp
+++ b/ydb/core/tx/scheme_board/monitoring.cpp
@@ -1061,7 +1061,7 @@ class TMonitoring: public TActorBootstrapped<TMonitoring> {
return NKikimr::MakeStateStorageProxyID(domain.second->DefaultSchemeBoardGroup);
}
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
template <typename TDerived, typename TEvResponse>
@@ -1157,7 +1157,7 @@ class TMonitoring: public TActorBootstrapped<TMonitoring> {
case 1:
return new TEvStateStorage::TEvResolveSchemeBoard(std::get<TPathId>(Path));
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
@@ -1228,7 +1228,7 @@ class TMonitoring: public TActorBootstrapped<TMonitoring> {
case 1:
return new TSchemeBoardMonEvents::TEvDescribeRequest(std::get<TPathId>(Path));
default:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
diff --git a/ydb/core/tx/scheme_board/monitoring_ut.cpp b/ydb/core/tx/scheme_board/monitoring_ut.cpp
index 733dbc0ddb..5ab3efa588 100644
--- a/ydb/core/tx/scheme_board/monitoring_ut.cpp
+++ b/ydb/core/tx/scheme_board/monitoring_ut.cpp
@@ -30,19 +30,19 @@ Y_UNIT_TEST_SUITE(TMonitoringTests) {
return Params;
}
- IOutputStream& Output() override { Y_FAIL("Not implemented"); }
- HTTP_METHOD GetMethod() const override { Y_FAIL("Not implemented"); }
- TStringBuf GetPath() const override { Y_FAIL("Not implemented"); }
- TStringBuf GetUri() const override { Y_FAIL("Not implemented"); }
- const TCgiParameters& GetPostParams() const override { Y_FAIL("Not implemented"); }
- TStringBuf GetPostContent() const override { Y_FAIL("Not implemented"); }
- const THttpHeaders& GetHeaders() const override { Y_FAIL("Not implemented"); }
- TStringBuf GetHeader(TStringBuf) const override { Y_FAIL("Not implemented"); }
- TStringBuf GetCookie(TStringBuf) const override { Y_FAIL("Not implemented"); }
- TString GetRemoteAddr() const override { Y_FAIL("Not implemented"); }
- TString GetServiceTitle() const override { Y_FAIL("Not implemented"); }
- NMonitoring::IMonPage* GetPage() const override { Y_FAIL("Not implemented"); }
- NMonitoring::IMonHttpRequest* MakeChild(NMonitoring::IMonPage*, const TString&) const override { Y_FAIL("Not implemented"); }
+ IOutputStream& Output() override { Y_ABORT("Not implemented"); }
+ HTTP_METHOD GetMethod() const override { Y_ABORT("Not implemented"); }
+ TStringBuf GetPath() const override { Y_ABORT("Not implemented"); }
+ TStringBuf GetUri() const override { Y_ABORT("Not implemented"); }
+ const TCgiParameters& GetPostParams() const override { Y_ABORT("Not implemented"); }
+ TStringBuf GetPostContent() const override { Y_ABORT("Not implemented"); }
+ const THttpHeaders& GetHeaders() const override { Y_ABORT("Not implemented"); }
+ TStringBuf GetHeader(TStringBuf) const override { Y_ABORT("Not implemented"); }
+ TStringBuf GetCookie(TStringBuf) const override { Y_ABORT("Not implemented"); }
+ TString GetRemoteAddr() const override { Y_ABORT("Not implemented"); }
+ TString GetServiceTitle() const override { Y_ABORT("Not implemented"); }
+ NMonitoring::IMonPage* GetPage() const override { Y_ABORT("Not implemented"); }
+ NMonitoring::IMonHttpRequest* MakeChild(NMonitoring::IMonPage*, const TString&) const override { Y_ABORT("Not implemented"); }
private:
const TString PathInfo;
diff --git a/ydb/core/tx/schemeshard/schemeshard__conditional_erase.cpp b/ydb/core/tx/schemeshard/schemeshard__conditional_erase.cpp
index 18dfd45d0a..14e70249c6 100644
--- a/ydb/core/tx/schemeshard/schemeshard__conditional_erase.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__conditional_erase.cpp
@@ -264,7 +264,7 @@ private:
return std::make_pair(indexImplPathId, Self->Tables.at(indexImplPathId));
}
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
}
static TVector<std::pair<ui32, ui32>> MakeColumnIds(TTableInfo::TPtr mainTable, TTableIndexInfo::TPtr index, TTableInfo::TPtr indexImplTable) {
diff --git a/ydb/core/tx/schemeshard/schemeshard__init.cpp b/ydb/core/tx/schemeshard/schemeshard__init.cpp
index 60224f3850..34f5debfb6 100644
--- a/ydb/core/tx/schemeshard/schemeshard__init.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__init.cpp
@@ -3617,7 +3617,7 @@ struct TSchemeShard::TTxInit : public TTransactionBase<TSchemeShard> {
auto settings = tableInfo->BackupSettings.MutableS3Settings();
Y_ABORT_UNLESS(ParseFromStringNoSizeLimit(*settings, s3SerializedSettings));
} else {
- Y_FAIL("Unknown settings");
+ Y_ABORT("Unknown settings");
}
if (scanSettings) {
@@ -4726,11 +4726,11 @@ struct TSchemeShard::TTxInit : public TTransactionBase<TSchemeShard> {
} catch (const TNotReadyTabletException &) {
return false;
} catch (const TSchemeErrorTabletException &ex) {
- Y_FAIL("there must be no leaked scheme error exceptions: %s", ex.what());
+ Y_ABORT("there must be no leaked scheme error exceptions: %s", ex.what());
} catch (const std::exception& ex) {
- Y_FAIL("there must be no leaked exceptions: %s", ex.what());
+ Y_ABORT("there must be no leaked exceptions: %s", ex.what());
} catch (...) {
- Y_FAIL("there must be no leaked exceptions");
+ Y_ABORT("there must be no leaked exceptions");
}
}
diff --git a/ydb/core/tx/schemeshard/schemeshard__init_root.cpp b/ydb/core/tx/schemeshard/schemeshard__init_root.cpp
index ff2e4af81d..593abe230e 100644
--- a/ydb/core/tx/schemeshard/schemeshard__init_root.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__init_root.cpp
@@ -495,7 +495,7 @@ struct TSchemeShard::TTxPublishTenantAsReadOnly : public TSchemeShard::TRwTxBase
case TTenantInitState::InvalidState:
case TTenantInitState::Uninitialized:
case TTenantInitState::Done:
- Y_FAIL("Invalid state");
+ Y_ABORT("Invalid state");
};
}
@@ -556,7 +556,7 @@ struct TSchemeShard::TTxPublishTenant : public TSchemeShard::TRwTxBase {
case TTenantInitState::InvalidState:
case TTenantInitState::Uninitialized:
case TTenantInitState::Inprogress:
- Y_FAIL("Invalid state");
+ Y_ABORT("Invalid state");
};
}
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation.cpp b/ydb/core/tx/schemeshard/schemeshard__operation.cpp
index 7475c3e769..ab5b37c4b8 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation.cpp
@@ -1024,12 +1024,12 @@ ISubOperation::TPtr TOperation::RestorePart(TTxState::ETxType txType, TTxState::
case TTxState::ETxType::TxCreateSequence:
return CreateNewSequence(NextPartId(), txState);
case TTxState::ETxType::TxAlterSequence:
- Y_FAIL("TODO: implement");
+ Y_ABORT("TODO: implement");
case TTxState::ETxType::TxDropSequence:
return CreateDropSequence(NextPartId(), txState);
case TTxState::ETxType::TxFillIndex:
- Y_FAIL("deprecated");
+ Y_ABORT("deprecated");
case TTxState::ETxType::TxMoveTable:
return CreateMoveTable(NextPartId(), txState);
@@ -1040,7 +1040,7 @@ ISubOperation::TPtr TOperation::RestorePart(TTxState::ETxType txType, TTxState::
case TTxState::ETxType::TxCreateReplication:
return CreateNewReplication(NextPartId(), txState);
case TTxState::ETxType::TxAlterReplication:
- Y_FAIL("TODO: implement");
+ Y_ABORT("TODO: implement");
case TTxState::ETxType::TxDropReplication:
return CreateDropReplication(NextPartId(), txState);
@@ -1056,13 +1056,13 @@ ISubOperation::TPtr TOperation::RestorePart(TTxState::ETxType txType, TTxState::
case TTxState::ETxType::TxDropExternalTable:
return CreateDropExternalTable(NextPartId(), txState);
case TTxState::ETxType::TxAlterExternalTable:
- Y_FAIL("TODO: implement");
+ Y_ABORT("TODO: implement");
case TTxState::ETxType::TxCreateExternalDataSource:
return CreateNewExternalDataSource(NextPartId(), txState);
case TTxState::ETxType::TxDropExternalDataSource:
return CreateDropExternalDataSource(NextPartId(), txState);
case TTxState::ETxType::TxAlterExternalDataSource:
- Y_FAIL("TODO: implement");
+ Y_ABORT("TODO: implement");
case TTxState::ETxType::TxInvalid:
Y_UNREACHABLE();
}
@@ -1085,7 +1085,7 @@ ISubOperation::TPtr TOperation::ConstructPart(NKikimrSchemeOp::EOperationType op
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateTable:
return CreateNewTable(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpAlterTable:
- Y_FAIL("in general, alter table is multipart operation now due table indexes");
+ Y_ABORT("in general, alter table is multipart operation now due table indexes");
case NKikimrSchemeOp::EOperationType::ESchemeOpSplitMergeTablePartitions:
return CreateSplitMerge(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpBackup:
@@ -1093,15 +1093,15 @@ ISubOperation::TPtr TOperation::ConstructPart(NKikimrSchemeOp::EOperationType op
case NKikimrSchemeOp::EOperationType::ESchemeOpRestore:
return CreateRestore(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpDropTable:
- Y_FAIL("in general, drop table is multipart operation now due table indexes");
+ Y_ABORT("in general, drop table is multipart operation now due table indexes");
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateIndexedTable:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateTableIndex:
- Y_FAIL("is handled as part of ESchemeOpCreateIndexedTable");
+ Y_ABORT("is handled as part of ESchemeOpCreateIndexedTable");
case NKikimrSchemeOp::EOperationType::ESchemeOpDropTableIndex:
- Y_FAIL("is handled as part of ESchemeOpDropTable");
+ Y_ABORT("is handled as part of ESchemeOpDropTable");
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateConsistentCopyTables:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateRtmrVolume:
return CreateNewRTMR(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateColumnStore:
@@ -1136,11 +1136,11 @@ ISubOperation::TPtr TOperation::ConstructPart(NKikimrSchemeOp::EOperationType op
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateSubDomain:
return CreateSubDomain(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpAlterSubDomain:
- Y_FAIL("run in compatible");
+ Y_ABORT("run in compatible");
case NKikimrSchemeOp::EOperationType::ESchemeOpDropSubDomain:
return CreateDropSubdomain(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpForceDropSubDomain:
- Y_FAIL("run in compatible");
+ Y_ABORT("run in compatible");
// ExtSubDomain
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateExtSubDomain:
@@ -1148,7 +1148,7 @@ ISubOperation::TPtr TOperation::ConstructPart(NKikimrSchemeOp::EOperationType op
case NKikimrSchemeOp::EOperationType::ESchemeOpAlterExtSubDomain:
return CreateAlterExtSubDomain(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpAlterExtSubDomainCreateHive:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpForceDropExtSubDomain:
return CreateForceDropExtSubDomain(NextPartId(), tx);
@@ -1164,7 +1164,7 @@ ISubOperation::TPtr TOperation::ConstructPart(NKikimrSchemeOp::EOperationType op
return CreateUpgradeSubDomainDecision(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateColumnBuild:
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateIndexBuild:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateLock:
return CreateLock(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpDropLock:
@@ -1196,50 +1196,50 @@ ISubOperation::TPtr TOperation::ConstructPart(NKikimrSchemeOp::EOperationType op
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateSequence:
return CreateNewSequence(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpAlterSequence:
- Y_FAIL("TODO: implement");
+ Y_ABORT("TODO: implement");
case NKikimrSchemeOp::EOperationType::ESchemeOpDropSequence:
return CreateDropSequence(NextPartId(), tx);
// Index
case NKikimrSchemeOp::EOperationType::ESchemeOpApplyIndexBuild:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpAlterTableIndex:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpInitiateBuildIndexImplTable:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpFinalizeBuildIndexImplTable:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpInitiateBuildIndexMainTable:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpFinalizeBuildIndexMainTable:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpCancelIndexBuild:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpDropIndex:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpDropTableIndexAtMainTable:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
// CDC
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateCdcStream:
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateCdcStreamImpl:
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateCdcStreamAtTable:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpAlterCdcStream:
case NKikimrSchemeOp::EOperationType::ESchemeOpAlterCdcStreamImpl:
case NKikimrSchemeOp::EOperationType::ESchemeOpAlterCdcStreamAtTable:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOpDropCdcStream:
case NKikimrSchemeOp::EOperationType::ESchemeOpDropCdcStreamImpl:
case NKikimrSchemeOp::EOperationType::ESchemeOpDropCdcStreamAtTable:
- Y_FAIL("multipart operations are handled before, also they require transaction details");
+ Y_ABORT("multipart operations are handled before, also they require transaction details");
case NKikimrSchemeOp::EOperationType::ESchemeOp_DEPRECATED_35:
- Y_FAIL("impossible");
+ Y_ABORT("impossible");
// Move
case NKikimrSchemeOp::EOperationType::ESchemeOpMoveTable:
@@ -1247,13 +1247,13 @@ ISubOperation::TPtr TOperation::ConstructPart(NKikimrSchemeOp::EOperationType op
case NKikimrSchemeOp::EOperationType::ESchemeOpMoveTableIndex:
return CreateMoveTableIndex(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpMoveIndex:
- Y_FAIL("impossible");
+ Y_ABORT("impossible");
// Replication
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateReplication:
return CreateNewReplication(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpAlterReplication:
- Y_FAIL("TODO: implement");
+ Y_ABORT("TODO: implement");
case NKikimrSchemeOp::EOperationType::ESchemeOpDropReplication:
return CreateDropReplication(NextPartId(), tx);
@@ -1271,7 +1271,7 @@ ISubOperation::TPtr TOperation::ConstructPart(NKikimrSchemeOp::EOperationType op
case NKikimrSchemeOp::EOperationType::ESchemeOpDropExternalTable:
return CreateDropExternalTable(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpAlterExternalTable:
- Y_FAIL("TODO: implement");
+ Y_ABORT("TODO: implement");
// ExternalDataSource
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateExternalDataSource:
@@ -1279,7 +1279,7 @@ ISubOperation::TPtr TOperation::ConstructPart(NKikimrSchemeOp::EOperationType op
case NKikimrSchemeOp::EOperationType::ESchemeOpDropExternalDataSource:
return CreateDropExternalDataSource(NextPartId(), tx);
case NKikimrSchemeOp::EOperationType::ESchemeOpAlterExternalDataSource:
- Y_FAIL("TODO: implement");
+ Y_ABORT("TODO: implement");
}
Y_UNREACHABLE();
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_allocate_pq.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_allocate_pq.cpp
index 52f61243dd..3589871c52 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_allocate_pq.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_allocate_pq.cpp
@@ -491,7 +491,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreatePQ");
+ Y_ABORT("no AbortPropose for TCreatePQ");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_alter_bsv.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_alter_bsv.cpp
index 6ad632e601..7605552eff 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_alter_bsv.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_alter_bsv.cpp
@@ -626,7 +626,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAlterBlockStoreVolume");
+ Y_ABORT("no AbortPropose for TAlterBlockStoreVolume");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_alter_extsubdomain.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_alter_extsubdomain.cpp
index 37e3b85fe8..d81c2cd9eb 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_alter_extsubdomain.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_alter_extsubdomain.cpp
@@ -862,7 +862,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAlterExtSubDomain");
+ Y_ABORT("no AbortPropose for TAlterExtSubDomain");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_alter_fs.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_alter_fs.cpp
index 686904acf9..74449d83db 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_alter_fs.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_alter_fs.cpp
@@ -215,7 +215,7 @@ public:
TOperationContext& context) override;
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAlterFileStore");
+ Y_ABORT("no AbortPropose for TAlterFileStore");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_alter_kesus.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_alter_kesus.cpp
index 2c94f4f4e5..e1df77d80f 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_alter_kesus.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_alter_kesus.cpp
@@ -344,7 +344,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAlterKesus");
+ Y_ABORT("no AbortPropose for TAlterKesus");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_alter_login.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_alter_login.cpp
index dab737c0da..374e255eed 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_alter_login.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_alter_login.cpp
@@ -147,15 +147,15 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAlterLogin");
+ Y_ABORT("no AbortPropose for TAlterLogin");
}
bool ProgressState(TOperationContext&) override {
- Y_FAIL("no progress state for TAlterLogin");
+ Y_ABORT("no progress state for TAlterLogin");
}
void AbortUnsafe(TTxId, TOperationContext&) override {
- Y_FAIL("no AbortUnsafe for TAlterLogin");
+ Y_ABORT("no AbortUnsafe for TAlterLogin");
}
};
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_alter_olap_store.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_alter_olap_store.cpp
index 77532cbba8..bf09d60f90 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_alter_olap_store.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_alter_olap_store.cpp
@@ -155,7 +155,7 @@ public:
context.OnComplete.BindMsgToPipe(OperationId, tabletId, shard.Idx, event.release());
} else {
- Y_FAIL("unexpected tablet type");
+ Y_ABORT("unexpected tablet type");
}
LOG_DEBUG_S(context.Ctx, NKikimrServices::FLAT_TX_SCHEMESHARD,
@@ -322,7 +322,7 @@ public:
break;
}
default: {
- Y_FAIL("unexpected tablet type");
+ Y_ABORT("unexpected tablet type");
}
}
@@ -534,7 +534,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAlterOlapStore");
+ Y_ABORT("no AbortPropose for TAlterOlapStore");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_alter_olap_table.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_alter_olap_table.cpp
index c22a1757e4..7690138e38 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_alter_olap_table.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_alter_olap_table.cpp
@@ -298,7 +298,7 @@ public:
context.OnComplete.BindMsgToPipe(OperationId, tabletId, shard.Idx, event.release());
} else {
- Y_FAIL("unexpected tablet type");
+ Y_ABORT("unexpected tablet type");
}
LOG_DEBUG_S(context.Ctx, NKikimrServices::FLAT_TX_SCHEMESHARD,
@@ -440,7 +440,7 @@ public:
break;
}
default: {
- Y_FAIL("unexpected tablet type");
+ Y_ABORT("unexpected tablet type");
}
}
@@ -618,7 +618,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAlterColumnTable");
+ Y_ABORT("no AbortPropose for TAlterColumnTable");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_alter_pq.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_alter_pq.cpp
index 4e6b18438a..f8fa8442e2 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_alter_pq.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_alter_pq.cpp
@@ -799,7 +799,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAlterPQ");
+ Y_ABORT("no AbortPropose for TAlterPQ");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_alter_solomon.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_alter_solomon.cpp
index 74c0d7a881..17542f164a 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_alter_solomon.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_alter_solomon.cpp
@@ -337,7 +337,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAlterSolomon");
+ Y_ABORT("no AbortPropose for TAlterSolomon");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_alter_subdomain.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_alter_subdomain.cpp
index 956c4b2db2..5802607409 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_alter_subdomain.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_alter_subdomain.cpp
@@ -332,7 +332,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAlterSubDomain");
+ Y_ABORT("no AbortPropose for TAlterSubDomain");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_alter_table.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_alter_table.cpp
index 08dfe45465..00a3dce32e 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_alter_table.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_alter_table.cpp
@@ -588,7 +588,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAlterTable");
+ Y_ABORT("no AbortPropose for TAlterTable");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_alter_user_attrs.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_alter_user_attrs.cpp
index 533e225737..46c9c13a32 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_alter_user_attrs.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_alter_user_attrs.cpp
@@ -87,7 +87,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAlterUserAttrs");
+ Y_ABORT("no AbortPropose for TAlterUserAttrs");
}
bool ProgressState(TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_assign_bsv.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_assign_bsv.cpp
index bf6fbaf9a5..8ca8e271cd 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_assign_bsv.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_assign_bsv.cpp
@@ -85,15 +85,15 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TAssignBlockStoreVolume");
+ Y_ABORT("no AbortPropose for TAssignBlockStoreVolume");
}
bool ProgressState(TOperationContext&) override {
- Y_FAIL("no progress state for assign bsc");
+ Y_ABORT("no progress state for assign bsc");
}
void AbortUnsafe(TTxId, TOperationContext&) override {
- Y_FAIL("no AbortUnsafe for assign bsc");
+ Y_ABORT("no AbortUnsafe for assign bsc");
}
};
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_backup_restore_common.h b/ydb/core/tx/schemeshard/schemeshard__operation_backup_restore_common.h
index 698f22f578..eb4ef7a61d 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_backup_restore_common.h
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_backup_restore_common.h
@@ -461,7 +461,7 @@ class TBackupRestoreOperationBase: public TSubOperation {
}
TTxState::ETxState NextState(TTxState::ETxState) const override {
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
TTxState::ETxState NextState(TTxState::ETxState state, TOperationContext& context) const {
@@ -645,7 +645,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TBackupRestoreOperationBase");
+ Y_ABORT("no AbortPropose for TBackupRestoreOperationBase");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_blob_depot.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_blob_depot.cpp
index 555d2acefe..4b0fa726cf 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_blob_depot.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_blob_depot.cpp
@@ -158,7 +158,7 @@ namespace NKikimr::NSchemeShard {
case EAction::Alter: return ProposeAlter(owner, context);
case EAction::Drop: return ProposeDrop(owner, context);
}
- Y_FAIL("unreachable code");
+ Y_ABORT("unreachable code");
}
void AbortPropose(TOperationContext& context) override {
@@ -166,7 +166,7 @@ namespace NKikimr::NSchemeShard {
<< " OperationId# " << OperationId
<< " at schemeshard# " << context.SS->SelfTabletId());
- Y_FAIL();
+ Y_ABORT();
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
@@ -404,7 +404,7 @@ namespace NKikimr::NSchemeShard {
};
TTxState::ETxState NextState(TTxState::ETxState) const override {
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
TSubOperationState::TPtr SelectStateFunc(TTxState::ETxState state) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_cancel_tx.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_cancel_tx.cpp
index ba57d1c1d0..b92a40faf9 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_cancel_tx.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_cancel_tx.cpp
@@ -76,15 +76,15 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TTxCancelTx");
+ Y_ABORT("no AbortPropose for TTxCancelTx");
}
bool ProgressState(TOperationContext&) override {
- Y_FAIL("no progress state for cancel tx");
+ Y_ABORT("no progress state for cancel tx");
}
void AbortUnsafe(TTxId, TOperationContext&) override {
- Y_FAIL("no AbortUnsafe for cancel tx");
+ Y_ABORT("no AbortUnsafe for cancel tx");
}
};
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_common.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_common.cpp
index 8ddbd5dfc8..2bf3d36417 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_common.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_common.cpp
@@ -43,7 +43,7 @@ THolder<TEvHive::TEvCreateTablet> CreateEvCreateTablet(TPathElement::TPtr target
} else if (subDomain->GetAlter() && subDomain->GetAlter()->GetResourcesDomainId()) {
resourcesDomainId = subDomain->GetAlter()->GetResourcesDomainId();
} else {
- Y_FAIL("Cannot retrieve resources domain id");
+ Y_ABORT("Cannot retrieve resources domain id");
}
auto allowedDomain = ev->Record.AddAllowedDomains();
@@ -362,7 +362,7 @@ void NTableState::UpdatePartitioningForTableModification(TOperationId operationI
} else if (txState.TxType == TTxState::TxDropCdcStreamAtTableDropSnapshot) {
commonShardOp = TTxState::ConfigureParts;
} else {
- Y_FAIL("UNREACHABLE");
+ Y_ABORT("UNREACHABLE");
}
TBindingsRoomsChanges bindingChanges;
@@ -382,7 +382,7 @@ void NTableState::UpdatePartitioningForTableModification(TOperationId operationI
bindingChanges,
errStr);
if (!isOk) {
- Y_FAIL("Unexpected failure to rebind column families to storage pools: %s", errStr.c_str());
+ Y_ABORT("Unexpected failure to rebind column families to storage pools: %s", errStr.c_str());
}
}
@@ -500,7 +500,7 @@ void NTableState::UpdatePartitioningForCopyTable(TOperationId operationId, TTxSt
bool isOk = context.SS->GetBindingsRooms(dstPath->DomainPathId, dstTableInfo->PartitionConfig(), storageRooms, familyRooms, channelsBinding, errStr);
if (!isOk) {
errStr = TString("database must have required storage pools to create tablet with storage config, details: ") + errStr;
- Y_FAIL("%s", errStr.c_str());
+ Y_ABORT("%s", errStr.c_str());
}
storePerShardConfig = true;
@@ -517,7 +517,7 @@ void NTableState::UpdatePartitioningForCopyTable(TOperationId operationId, TTxSt
bool isOk = context.SS->GetChannelsBindings(dstPath->DomainPathId, dstTableInfo, channelsBinding, errStr);
if (!isOk) {
errStr = TString("database must have required storage pools to create tablet with channel profile, details: ") + errStr;
- Y_FAIL("%s", errStr.c_str());
+ Y_ABORT("%s", errStr.c_str());
}
}
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_bsv.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_bsv.cpp
index 6d9ea4a691..588282b5cb 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_bsv.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_bsv.cpp
@@ -370,7 +370,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreateBlockStoreVolume");
+ Y_ABORT("no AbortPropose for TCreateBlockStoreVolume");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_external_data_source.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_external_data_source.cpp
index c427a16d38..7c1ad299f3 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_external_data_source.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_external_data_source.cpp
@@ -314,7 +314,7 @@ public:
void AbortPropose(TOperationContext& context) override {
LOG_N("TCreateExternalDataSource AbortPropose"
<< ": opId# " << OperationId);
- Y_FAIL("no AbortPropose for TCreateExternalDataSource");
+ Y_ABORT("no AbortPropose for TCreateExternalDataSource");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_external_table.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_external_table.cpp
index 84e10dd51f..10a46d30a8 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_external_table.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_external_table.cpp
@@ -420,7 +420,7 @@ public:
void AbortPropose(TOperationContext& context) override {
LOG_N("TCreateExternalTable AbortPropose"
<< ": opId# " << OperationId);
- Y_FAIL("no AbortPropose for TCreateExternalTable");
+ Y_ABORT("no AbortPropose for TCreateExternalTable");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_extsubdomain.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_extsubdomain.cpp
index b4fcfd2dc6..3bb61ca5b3 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_extsubdomain.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_extsubdomain.cpp
@@ -267,7 +267,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreateExtSubDomain");
+ Y_ABORT("no AbortPropose for TCreateExtSubDomain");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_fs.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_fs.cpp
index 47472e5205..1a02a63fde 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_fs.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_fs.cpp
@@ -206,7 +206,7 @@ public:
TOperationContext& context) override;
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreateFileStore");
+ Y_ABORT("no AbortPropose for TCreateFileStore");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_kesus.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_kesus.cpp
index e867faa7a6..98bec723cb 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_kesus.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_kesus.cpp
@@ -410,7 +410,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreateKesus");
+ Y_ABORT("no AbortPropose for TCreateKesus");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_olap_store.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_olap_store.cpp
index 731928d95d..26704eed4b 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_olap_store.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_olap_store.cpp
@@ -103,7 +103,7 @@ public:
context.OnComplete.BindMsgToPipe(OperationId, tabletId, shard.Idx, event.release());
} else {
- Y_FAIL("unexpected tablet type");
+ Y_ABORT("unexpected tablet type");
}
LOG_DEBUG_S(context.Ctx, NKikimrServices::FLAT_TX_SCHEMESHARD,
@@ -254,7 +254,7 @@ public:
break;
}
default: {
- Y_FAIL("unexpected tablet type");
+ Y_ABORT("unexpected tablet type");
}
}
@@ -456,7 +456,7 @@ public:
break;
}
default: {
- Y_FAIL("Unexpected tablet type");
+ Y_ABORT("Unexpected tablet type");
}
}
}
@@ -504,7 +504,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreateOlapStore");
+ Y_ABORT("no AbortPropose for TCreateOlapStore");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_olap_table.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_olap_table.cpp
index 83973ef83a..21e266019e 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_olap_table.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_olap_table.cpp
@@ -875,7 +875,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreateColumnTable");
+ Y_ABORT("no AbortPropose for TCreateColumnTable");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_pq.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_pq.cpp
index 689a003df8..63c23985c1 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_pq.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_pq.cpp
@@ -557,7 +557,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreatePQ");
+ Y_ABORT("no AbortPropose for TCreatePQ");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_replication.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_replication.cpp
index 04585d1c9e..cf59cfda28 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_replication.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_replication.cpp
@@ -394,7 +394,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreateReplication");
+ Y_ABORT("no AbortPropose for TCreateReplication");
}
void AbortUnsafe(TTxId txId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_rtmr.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_rtmr.cpp
index 0f426566b2..6cba273445 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_rtmr.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_rtmr.cpp
@@ -377,7 +377,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreateRTMR");
+ Y_ABORT("no AbortPropose for TCreateRTMR");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_sequence.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_sequence.cpp
index 2825ecb7e3..6c2a700a8a 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_sequence.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_sequence.cpp
@@ -496,7 +496,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreateSequence");
+ Y_ABORT("no AbortPropose for TCreateSequence");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_solomon.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_solomon.cpp
index 7661526ceb..9d6bc47d63 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_solomon.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_solomon.cpp
@@ -427,7 +427,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreateSolomon");
+ Y_ABORT("no AbortPropose for TCreateSolomon");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_subdomain.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_subdomain.cpp
index 990e258f44..fc062af2db 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_subdomain.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_subdomain.cpp
@@ -344,7 +344,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreateSubDomain");
+ Y_ABORT("no AbortPropose for TCreateSubDomain");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_create_table.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_create_table.cpp
index 7987464e3a..67ac63a6eb 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_create_table.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_create_table.cpp
@@ -697,7 +697,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TCreateTable");
+ Y_ABORT("no AbortPropose for TCreateTable");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_deallocate_pq.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_deallocate_pq.cpp
index e9b095014f..d59357704b 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_deallocate_pq.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_deallocate_pq.cpp
@@ -150,15 +150,15 @@ public:
}
bool ProgressState(TOperationContext&) override {
- Y_FAIL("no progress state for TDeallocatePQ");
+ Y_ABORT("no progress state for TDeallocatePQ");
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDeallocatePQ");
+ Y_ABORT("no AbortPropose for TDeallocatePQ");
}
void AbortUnsafe(TTxId, TOperationContext&) override {
- Y_FAIL("no AbortUnsafe for TDeallocatePQ");
+ Y_ABORT("no AbortUnsafe for TDeallocatePQ");
}
};
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_bsv.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_bsv.cpp
index c85f397c4f..d7857249d6 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_bsv.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_bsv.cpp
@@ -287,7 +287,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropBlockStoreVolume");
+ Y_ABORT("no AbortPropose for TDropBlockStoreVolume");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_cdc_stream.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_cdc_stream.cpp
index aba75503ec..d0899ab424 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_cdc_stream.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_cdc_stream.cpp
@@ -178,7 +178,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropCdcStream");
+ Y_ABORT("no AbortPropose for TDropCdcStream");
}
void AbortUnsafe(TTxId txId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_extsubdomain.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_extsubdomain.cpp
index f5ce1d5b20..5ab01040d4 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_extsubdomain.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_extsubdomain.cpp
@@ -352,7 +352,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropExtSubdomain");
+ Y_ABORT("no AbortPropose for TDropExtSubdomain");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_fs.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_fs.cpp
index 8604e8268b..46dccead1b 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_fs.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_fs.cpp
@@ -122,7 +122,7 @@ public:
TOperationContext& context) override;
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropFileStore");
+ Y_ABORT("no AbortPropose for TDropFileStore");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_kesus.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_kesus.cpp
index 8f17f3f1ab..2e23823c51 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_kesus.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_kesus.cpp
@@ -220,7 +220,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropKesus");
+ Y_ABORT("no AbortPropose for TDropKesus");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_olap_store.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_olap_store.cpp
index 038679dd97..7ea837dedf 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_olap_store.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_olap_store.cpp
@@ -381,7 +381,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropOlapStore");
+ Y_ABORT("no AbortPropose for TDropOlapStore");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_olap_table.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_olap_table.cpp
index d878bddb79..7bf255f578 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_olap_table.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_olap_table.cpp
@@ -493,7 +493,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropColumnTable");
+ Y_ABORT("no AbortPropose for TDropColumnTable");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_pq.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_pq.cpp
index d2472f0f5a..69ba3710ea 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_pq.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_pq.cpp
@@ -449,7 +449,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropPQ");
+ Y_ABORT("no AbortPropose for TDropPQ");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_replication.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_replication.cpp
index 52ba97cbd8..01ff9948bd 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_replication.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_replication.cpp
@@ -331,7 +331,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropReplication");
+ Y_ABORT("no AbortPropose for TDropReplication");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_sequence.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_sequence.cpp
index 9958da3a71..f110d6c1a0 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_sequence.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_sequence.cpp
@@ -376,7 +376,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropSequence");
+ Y_ABORT("no AbortPropose for TDropSequence");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_solomon.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_solomon.cpp
index 28a856e8ac..32895dbcd7 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_solomon.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_solomon.cpp
@@ -217,7 +217,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropSolomon");
+ Y_ABORT("no AbortPropose for TDropSolomon");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_subdomain.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_subdomain.cpp
index ca071c4598..d3e158e18c 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_subdomain.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_subdomain.cpp
@@ -210,7 +210,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropSubdomain");
+ Y_ABORT("no AbortPropose for TDropSubdomain");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_drop_unsafe.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_drop_unsafe.cpp
index 0099765e25..7a46f3503a 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_drop_unsafe.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_drop_unsafe.cpp
@@ -267,7 +267,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TDropForceUnsafe");
+ Y_ABORT("no AbortPropose for TDropForceUnsafe");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_finalize_build_index.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_finalize_build_index.cpp
index 5e0f34cce2..d14760f29d 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_finalize_build_index.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_finalize_build_index.cpp
@@ -388,7 +388,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TFinalizeBuildIndex");
+ Y_ABORT("no AbortPropose for TFinalizeBuildIndex");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_just_reject.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_just_reject.cpp
index c5fea91ce3..64f3a48b40 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_just_reject.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_just_reject.cpp
@@ -52,15 +52,15 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TReject");
+ Y_ABORT("no AbortPropose for TReject");
}
bool ProgressState(TOperationContext&) override {
- Y_FAIL("no ProgressState for TReject");
+ Y_ABORT("no ProgressState for TReject");
}
void AbortUnsafe(TTxId, TOperationContext&) override {
- Y_FAIL("no AbortUnsafe for TReject");
+ Y_ABORT("no AbortUnsafe for TReject");
}
};
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_memory_changes.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_memory_changes.cpp
index bc4758264b..b2e57d1568 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_memory_changes.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_memory_changes.cpp
@@ -185,7 +185,7 @@ void TMemoryChanges::UnDo(TSchemeShard* ss) {
if (!elem) {
ss->TxInFlight.erase(id);
} else {
- Y_FAIL("No such cases are exist");
+ Y_ABORT("No such cases are exist");
}
TxStates.pop();
}
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_modify_acl.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_modify_acl.cpp
index c154e1702e..97a670e26b 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_modify_acl.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_modify_acl.cpp
@@ -116,15 +116,15 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TModifyACL");
+ Y_ABORT("no AbortPropose for TModifyACL");
}
bool ProgressState(TOperationContext&) override {
- Y_FAIL("no ProgressState for TModifyACL");
+ Y_ABORT("no ProgressState for TModifyACL");
}
void AbortUnsafe(TTxId, TOperationContext&) override {
- Y_FAIL("no AbortUnsafe for TModifyACL");
+ Y_ABORT("no AbortUnsafe for TModifyACL");
}
};
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_move_index.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_move_index.cpp
index 566459f229..deccac6567 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_move_index.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_move_index.cpp
@@ -97,7 +97,7 @@ public:
TStringStream msg;
msg << "txState for opId: " << opId
<< " has not been found, cur opId: " << OperationId;
- Y_FAIL("%s", msg.Str().data());
+ Y_ABORT("%s", msg.Str().data());
}
LOG_DEBUG_S(context.Ctx, NKikimrServices::FLAT_TX_SCHEMESHARD,
DebugHint() << " Trying to find txState with TxMoveTableIndex type"
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_move_table_index.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_move_table_index.cpp
index 8bf2860369..d21120812c 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_move_table_index.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_move_table_index.cpp
@@ -421,7 +421,7 @@ public:
if (dstParentPath.IsUnderOperation()) {
dstPath = TPath::ResolveWithInactive(OperationId, dstPathStr, context.SS);
} else {
- Y_FAIL("NONO");
+ Y_ABORT("NONO");
}
{
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_rmdir.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_rmdir.cpp
index 286fa764b3..6f7a811747 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_rmdir.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_rmdir.cpp
@@ -91,7 +91,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TRmDir");
+ Y_ABORT("no AbortPropose for TRmDir");
}
bool ProgressState(TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_split_merge.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_split_merge.cpp
index c46302fc80..49ab9c627c 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_split_merge.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_split_merge.cpp
@@ -974,7 +974,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TSplitMerge");
+ Y_ABORT("no AbortPropose for TSplitMerge");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__operation_upgrade_subdomain.cpp b/ydb/core/tx/schemeshard/schemeshard__operation_upgrade_subdomain.cpp
index f94b5f01d1..fcc1129826 100644
--- a/ydb/core/tx/schemeshard/schemeshard__operation_upgrade_subdomain.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__operation_upgrade_subdomain.cpp
@@ -310,7 +310,7 @@ public:
break;
case NKikimrSchemeOp::EPathType::EPathTypeSubDomain:
case NKikimrSchemeOp::EPathType::EPathTypeExtSubDomain:
- Y_FAIL("impossible to migrate subDomain or extSubDomain as part of the other subDomain");
+ Y_ABORT("impossible to migrate subDomain or extSubDomain as part of the other subDomain");
break;
case NKikimrSchemeOp::EPathType::EPathTypeTable:
{
@@ -359,7 +359,7 @@ public:
case NKikimrSchemeOp::EPathType::EPathTypeSequence:
case NKikimrSchemeOp::EPathType::EPathTypeReplication:
case NKikimrSchemeOp::EPathType::EPathTypeBlobDepot:
- Y_FAIL("UNIMPLEMENTED");
+ Y_ABORT("UNIMPLEMENTED");
case NKikimrSchemeOp::EPathType::EPathTypeInvalid:
Y_UNREACHABLE();
}
@@ -1259,7 +1259,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TUpgradeSubDomain");
+ Y_ABORT("no AbortPropose for TUpgradeSubDomain");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
@@ -1464,7 +1464,7 @@ public:
}
void AbortPropose(TOperationContext&) override {
- Y_FAIL("no AbortPropose for TUpgradeSubDomainDecision");
+ Y_ABORT("no AbortPropose for TUpgradeSubDomainDecision");
}
void AbortUnsafe(TTxId forceDropTxId, TOperationContext& context) override {
diff --git a/ydb/core/tx/schemeshard/schemeshard__pq_stats.cpp b/ydb/core/tx/schemeshard/schemeshard__pq_stats.cpp
index 9e5bd3baae..29bb1a15af 100644
--- a/ydb/core/tx/schemeshard/schemeshard__pq_stats.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__pq_stats.cpp
@@ -110,7 +110,7 @@ void TSchemeShard::Handle(TEvPersQueue::TEvPeriodicTopicStats::TPtr& ev, const T
break;
default:
- Y_FAIL("Unknown batch status");
+ Y_ABORT("Unknown batch status");
}
}
diff --git a/ydb/core/tx/schemeshard/schemeshard__table_stats.cpp b/ydb/core/tx/schemeshard/schemeshard__table_stats.cpp
index 1e9101c0e2..340a8a2254 100644
--- a/ydb/core/tx/schemeshard/schemeshard__table_stats.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard__table_stats.cpp
@@ -438,7 +438,7 @@ void TSchemeShard::Handle(TEvDataShard::TEvPeriodicTableStats::TPtr& ev, const T
break;
default:
- Y_FAIL("Unknown batch status");
+ Y_ABORT("Unknown batch status");
}
}
diff --git a/ydb/core/tx/schemeshard/schemeshard_audit_log_fragment.cpp b/ydb/core/tx/schemeshard/schemeshard_audit_log_fragment.cpp
index 5faf6d996e..bba0f24025 100644
--- a/ydb/core/tx/schemeshard/schemeshard_audit_log_fragment.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard_audit_log_fragment.cpp
@@ -41,7 +41,7 @@ TString DefineUserOperationName(const NKikimrSchemeOp::TModifyScheme& tx) {
case NKikimrSchemeOp::TAlterLogin::kRemoveGroup:
return "REMOVE GROUP";
default:
- Y_FAIL("switch should cover all operation types");
+ Y_ABORT("switch should cover all operation types");
}
case NKikimrSchemeOp::EOperationType::ESchemeOp_DEPRECATED_35:
return "ESchemeOp_DEPRECATED_35";
@@ -221,7 +221,7 @@ TString DefineUserOperationName(const NKikimrSchemeOp::TModifyScheme& tx) {
case NKikimrSchemeOp::EOperationType::ESchemeOpCreateColumnBuild:
return "ALTER TABLE ADD COLUMN DEFAULT";
}
- Y_FAIL("switch should cover all operation types");
+ Y_ABORT("switch should cover all operation types");
}
TVector<TString> ExtractChangingPaths(const NKikimrSchemeOp::TModifyScheme& tx) {
@@ -598,7 +598,7 @@ TChangeLogin ExtractLoginChange(const NKikimrSchemeOp::TModifyScheme& tx) {
result.LoginGroup = tx.GetAlterLogin().GetRemoveGroup().GetGroup();
break;
default:
- Y_FAIL("switch should cover all operation types");
+ Y_ABORT("switch should cover all operation types");
}
return result;
}
diff --git a/ydb/core/tx/schemeshard/schemeshard_build_index__progress.cpp b/ydb/core/tx/schemeshard/schemeshard_build_index__progress.cpp
index e5f4adbac8..bb5be86567 100644
--- a/ydb/core/tx/schemeshard/schemeshard_build_index__progress.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard_build_index__progress.cpp
@@ -36,7 +36,7 @@ THolder<TEvSchemeShard::TEvModifySchemeTransaction> LockPropose(
} else if (buildInfo->IsBuildColumn()) {
buildInfo->SerializeToProto(ss, modifyScheme.MutableInitiateColumnBuild());
} else {
- Y_FAIL("Unknown operation kind while building LockPropose");
+ Y_ABORT("Unknown operation kind while building LockPropose");
}
return propose;
@@ -66,7 +66,7 @@ THolder<TEvSchemeShard::TEvModifySchemeTransaction> InitiatePropose(
buildInfo->SerializeToProto(ss, modifyScheme.MutableInitiateColumnBuild());
} else {
- Y_FAIL("Unknown operation kind while building InitiatePropose");
+ Y_ABORT("Unknown operation kind while building InitiatePropose");
}
return propose;
@@ -92,7 +92,7 @@ THolder<TEvSchemeShard::TEvModifySchemeTransaction> AlterMainTablePropose(
TString error;
if (!ExtractColumnTypeInfo(typeInfo, typeMod, colInfo.DefaultFromLiteral.type(), status, error)) {
// todo gvit fix that
- Y_FAIL("failed to extract column type info");
+ Y_ABORT("failed to extract column type info");
}
col->SetType(NScheme::TypeName(typeInfo, typeMod));
@@ -100,7 +100,7 @@ THolder<TEvSchemeShard::TEvModifySchemeTransaction> AlterMainTablePropose(
}
} else {
- Y_FAIL("Unknown operation kind while building AlterMainTablePropose");
+ Y_ABORT("Unknown operation kind while building AlterMainTablePropose");
}
return propose;
@@ -202,7 +202,7 @@ public:
switch (buildInfo->State) {
case TIndexBuildInfo::EState::Invalid:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::AlterMainTable:
if (buildInfo->AlterMainTableTxId == InvalidTxId) {
@@ -286,7 +286,7 @@ public:
break;
case NKikimrTxDataShard::TEvBuildIndexProgressResponse::BUILD_ERROR:
case NKikimrTxDataShard::TEvBuildIndexProgressResponse::BAD_REQUEST:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
break;
}
}
@@ -633,7 +633,7 @@ public:
case TIndexBuildInfo::EState::Locking:
case TIndexBuildInfo::EState::GatheringStatistics:
case TIndexBuildInfo::EState::Initiating:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Filling:
{
// reschedule shard
@@ -651,7 +651,7 @@ public:
case TIndexBuildInfo::EState::Applying:
case TIndexBuildInfo::EState::Unlocking:
case TIndexBuildInfo::EState::Done:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Cancellation_Applying:
case TIndexBuildInfo::EState::Cancellation_Unlocking:
case TIndexBuildInfo::EState::Cancelled:
@@ -701,7 +701,7 @@ public:
case TIndexBuildInfo::EState::Locking:
case TIndexBuildInfo::EState::GatheringStatistics:
case TIndexBuildInfo::EState::Initiating:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Filling:
{
TIndexBuildInfo::TShardStatus& shardStatus = buildInfo->Shards.at(shardIdx);
@@ -765,7 +765,7 @@ public:
switch (shardStatus.Status) {
case NKikimrTxDataShard::TEvBuildIndexProgressResponse::INVALID:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case NKikimrTxDataShard::TEvBuildIndexProgressResponse::ACCEPTED:
case NKikimrTxDataShard::TEvBuildIndexProgressResponse::INPROGRESS:
@@ -822,7 +822,7 @@ public:
case TIndexBuildInfo::EState::Applying:
case TIndexBuildInfo::EState::Unlocking:
case TIndexBuildInfo::EState::Done:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Cancellation_Applying:
case TIndexBuildInfo::EState::Cancellation_Unlocking:
case TIndexBuildInfo::EState::Cancelled:
@@ -859,7 +859,7 @@ public:
switch (buildInfo->State) {
case TIndexBuildInfo::EState::Invalid:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::AlterMainTable:
{
@@ -882,7 +882,7 @@ public:
break;
}
case TIndexBuildInfo::EState::GatheringStatistics:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Initiating:
{
@@ -895,7 +895,7 @@ public:
break;
}
case TIndexBuildInfo::EState::Filling:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Applying:
{
Y_ABORT_UNLESS(txId == buildInfo->ApplyTxId);
@@ -917,7 +917,7 @@ public:
break;
}
case TIndexBuildInfo::EState::Done:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Cancellation_Applying:
{
Y_ABORT_UNLESS(txId == buildInfo->ApplyTxId);
@@ -939,7 +939,7 @@ public:
break;
}
case TIndexBuildInfo::EState::Cancelled:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Rejection_Applying:
{
@@ -962,7 +962,7 @@ public:
break;
}
case TIndexBuildInfo::EState::Rejected:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
}
Progress(buildId);
@@ -1023,7 +1023,7 @@ public:
switch (buildInfo->State) {
case TIndexBuildInfo::EState::Invalid:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::AlterMainTable:
{
@@ -1078,7 +1078,7 @@ public:
break;
}
case TIndexBuildInfo::EState::GatheringStatistics:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Initiating:
{
@@ -1091,7 +1091,7 @@ public:
if (record.GetStatus() == NKikimrScheme::StatusAccepted) {
// no op
} else if (record.GetStatus() == NKikimrScheme::StatusAlreadyExists) {
- Y_FAIL("NEED MORE TESTING");
+ Y_ABORT("NEED MORE TESTING");
// no op
} else {
buildInfo->Issue += TStringBuilder()
@@ -1105,7 +1105,7 @@ public:
break;
}
case TIndexBuildInfo::EState::Filling:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Applying:
{
@@ -1118,7 +1118,7 @@ public:
if (record.GetStatus() == NKikimrScheme::StatusAccepted) {
// no op
} else if (record.GetStatus() == NKikimrScheme::StatusAlreadyExists) {
- Y_FAIL("NEED MORE TESTING");
+ Y_ABORT("NEED MORE TESTING");
// no op
} else {
buildInfo->Issue += TStringBuilder()
@@ -1155,7 +1155,7 @@ public:
break;
}
case TIndexBuildInfo::EState::Done:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Cancellation_Applying:
{
@@ -1168,7 +1168,7 @@ public:
if (record.GetStatus() == NKikimrScheme::StatusAccepted) {
// no op
} else if (record.GetStatus() == NKikimrScheme::StatusAlreadyExists) {
- Y_FAIL("NEED MORE TESTING");
+ Y_ABORT("NEED MORE TESTING");
// no op
} else {
buildInfo->Issue += TStringBuilder()
@@ -1205,7 +1205,7 @@ public:
break;
}
case TIndexBuildInfo::EState::Cancelled:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Rejection_Applying:
{
@@ -1218,7 +1218,7 @@ public:
if (record.GetStatus() == NKikimrScheme::StatusAccepted) {
// no op
} else if (record.GetStatus() == NKikimrScheme::StatusAlreadyExists) {
- Y_FAIL("NEED MORE TESTING");
+ Y_ABORT("NEED MORE TESTING");
// no op
} else {
buildInfo->Issue += TStringBuilder()
@@ -1255,7 +1255,7 @@ public:
break;
}
case TIndexBuildInfo::EState::Rejected:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
}
Progress(buildId);
@@ -1279,7 +1279,7 @@ public:
switch (buildInfo->State) {
case TIndexBuildInfo::EState::Invalid:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::AlterMainTable:
if (!buildInfo->AlterMainTableTxId) {
@@ -1299,7 +1299,7 @@ public:
break;
case TIndexBuildInfo::EState::GatheringStatistics:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Initiating:
if (!buildInfo->InitiateTxId) {
@@ -1310,7 +1310,7 @@ public:
break;
case TIndexBuildInfo::EState::Filling:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Applying:
if (!buildInfo->ApplyTxId) {
@@ -1329,7 +1329,7 @@ public:
break;
case TIndexBuildInfo::EState::Done:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Cancellation_Applying:
if (!buildInfo->ApplyTxId) {
@@ -1348,7 +1348,7 @@ public:
break;
case TIndexBuildInfo::EState::Cancelled:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
case TIndexBuildInfo::EState::Rejection_Applying:
if (!buildInfo->ApplyTxId) {
@@ -1366,7 +1366,7 @@ public:
break;
case TIndexBuildInfo::EState::Rejected:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
}
Progress(buildId);
diff --git a/ydb/core/tx/schemeshard/schemeshard_build_index_tx_base.cpp b/ydb/core/tx/schemeshard/schemeshard_build_index_tx_base.cpp
index 64312685e9..802b49f732 100644
--- a/ydb/core/tx/schemeshard/schemeshard_build_index_tx_base.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard_build_index_tx_base.cpp
@@ -275,7 +275,7 @@ void TSchemeShard::TIndexBuilder::TTxBase::Fill(NKikimrIndexBuilder::TIndexBuild
*index.mutable_global_async_index() = Ydb::Table::GlobalAsyncIndex();
break;
case NKikimrSchemeOp::EIndexType::EIndexTypeInvalid:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
};
}
@@ -360,7 +360,7 @@ Ydb::StatusIds::StatusCode TSchemeShard::TIndexBuilder::TTxBase::TranslateStatus
case NKikimrScheme::StatusTxIsNotCancellable:
case NKikimrScheme::StatusReserved18:
case NKikimrScheme::StatusReserved19:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
return Ydb::StatusIds::STATUS_CODE_UNSPECIFIED;
diff --git a/ydb/core/tx/schemeshard/schemeshard_cdc_stream_scan.cpp b/ydb/core/tx/schemeshard/schemeshard_cdc_stream_scan.cpp
index 126d5e777e..59e88b0074 100644
--- a/ydb/core/tx/schemeshard/schemeshard_cdc_stream_scan.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard_cdc_stream_scan.cpp
@@ -108,7 +108,7 @@ public:
} else if (PipeRetry) {
return OnPipeRetry(txc, ctx);
} else {
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
@@ -287,7 +287,7 @@ private:
case NKikimrTxDataShard::TEvCdcStreamScanResponse::BAD_REQUEST:
case NKikimrTxDataShard::TEvCdcStreamScanResponse::SCHEME_ERROR:
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
default:
LOG_E("Unexpected response status"
diff --git a/ydb/core/tx/schemeshard/schemeshard_export_flow_proposals.cpp b/ydb/core/tx/schemeshard/schemeshard_export_flow_proposals.cpp
index 157b86f454..20cb8cd42a 100644
--- a/ydb/core/tx/schemeshard/schemeshard_export_flow_proposals.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard_export_flow_proposals.cpp
@@ -150,7 +150,7 @@ THolder<TEvSchemeShard::TEvModifySchemeTransaction> BackupPropose(
backupSettings.SetScheme(NKikimrSchemeOp::TS3Settings::HTTPS);
break;
default:
- Y_FAIL("Unknown scheme");
+ Y_ABORT("Unknown scheme");
}
if (const auto region = exportSettings.region()) {
diff --git a/ydb/core/tx/schemeshard/schemeshard_impl.cpp b/ydb/core/tx/schemeshard/schemeshard_impl.cpp
index 6b5cb10f1c..02143caf76 100644
--- a/ydb/core/tx/schemeshard/schemeshard_impl.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard_impl.cpp
@@ -1434,7 +1434,7 @@ TPathElement::EPathState TSchemeShard::CalcPathState(TTxState::ETxType txType, T
case TTxState::TxMergeTablePartition:
break;
case TTxState::TxFillIndex:
- Y_FAIL("deprecated");
+ Y_ABORT("deprecated");
case TTxState::TxModifyACL:
case TTxState::TxInvalid:
case TTxState::TxAssignBlockStoreVolume:
@@ -4742,7 +4742,7 @@ void TSchemeShard::UncountNode(TPathElement::TPtr node) {
TabletCounters->Simple()[COUNTER_EXTERNAL_DATA_SOURCE_COUNT].Sub(1);
break;
case TPathElement::EPathType::EPathTypeInvalid:
- Y_FAIL("impossible path type");
+ Y_ABORT("impossible path type");
}
}
@@ -4835,7 +4835,7 @@ void TSchemeShard::DropNode(TPathElement::TPtr node, TStepId step, TTxId txId, N
// and all operations have been completed.
break;
case TPathElement::EPathType::EPathTypeBlobDepot:
- Y_FAIL("not implemented");
+ Y_ABORT("not implemented");
default:
// not all path types support removal
break;
diff --git a/ydb/core/tx/schemeshard/schemeshard_import__cancel.cpp b/ydb/core/tx/schemeshard/schemeshard_import__cancel.cpp
index bd1d9972c5..348eba39c0 100644
--- a/ydb/core/tx/schemeshard/schemeshard_import__cancel.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard_import__cancel.cpp
@@ -129,7 +129,7 @@ struct TSchemeShard::TImport::TTxCancelAck: public TSchemeShard::TXxport::TTxBas
txId = TTxId(CancelIndexBuildResult->Get()->Record.GetTxId());
id = CancelIndexBuildResult->Cookie;
} else {
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
if (!Self->Imports.contains(id)) {
diff --git a/ydb/core/tx/schemeshard/schemeshard_import_flow_proposals.cpp b/ydb/core/tx/schemeshard/schemeshard_import_flow_proposals.cpp
index f390bc1a7d..2f9941f9e3 100644
--- a/ydb/core/tx/schemeshard/schemeshard_import_flow_proposals.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard_import_flow_proposals.cpp
@@ -135,7 +135,7 @@ THolder<TEvSchemeShard::TEvModifySchemeTransaction> RestorePropose(
restoreSettings.SetScheme(NKikimrSchemeOp::TS3Settings::HTTPS);
break;
default:
- Y_FAIL("Unknown scheme");
+ Y_ABORT("Unknown scheme");
}
if (const auto region = importInfo->Settings.region()) {
diff --git a/ydb/core/tx/schemeshard/schemeshard_path.cpp b/ydb/core/tx/schemeshard/schemeshard_path.cpp
index f3fdd24749..b686f33ce7 100644
--- a/ydb/core/tx/schemeshard/schemeshard_path.cpp
+++ b/ydb/core/tx/schemeshard/schemeshard_path.cpp
@@ -1666,7 +1666,7 @@ void TPath::MaterializeLeaf(const TString& owner, const TPathId& newPathId, bool
auto result = MaterializeImpl(owner, newPathId);
switch (result) {
case EAttachChildResult::Undefined:
- Y_FAIL("unexpected result: Undefined");
+ Y_ABORT("unexpected result: Undefined");
break;
case EAttachChildResult::AttachedAsOnlyOne:
diff --git a/ydb/core/tx/schemeshard/ut_restore/ut_restore.cpp b/ydb/core/tx/schemeshard/ut_restore/ut_restore.cpp
index 06d490f211..66ba7875a6 100644
--- a/ydb/core/tx/schemeshard/ut_restore/ut_restore.cpp
+++ b/ydb/core/tx/schemeshard/ut_restore/ut_restore.cpp
@@ -216,7 +216,7 @@ namespace {
return GenerateZstdTestData(keyPrefix, count);
case ECompressionCodec::Invalid:
UNIT_ASSERT_C(false, "Invalid compression codec");
- Y_FAIL("unreachable");
+ Y_ABORT("unreachable");
}
}
diff --git a/ydb/core/tx/sequenceshard/sequenceshard_impl.cpp b/ydb/core/tx/sequenceshard/sequenceshard_impl.cpp
index 55b52d9408..c23602e643 100644
--- a/ydb/core/tx/sequenceshard/sequenceshard_impl.cpp
+++ b/ydb/core/tx/sequenceshard/sequenceshard_impl.cpp
@@ -94,7 +94,7 @@ namespace NSequenceShard {
default:
if (!HandleDefaultEvents(ev, SelfId())) {
- Y_FAIL("Unexpected event 0x%x", ev->GetTypeRewrite());
+ Y_ABORT("Unexpected event 0x%x", ev->GetTypeRewrite());
}
break;
}
diff --git a/ydb/core/tx/tx_proxy/commitreq.cpp b/ydb/core/tx/tx_proxy/commitreq.cpp
index d803c2dbf0..3fce324785 100644
--- a/ydb/core/tx/tx_proxy/commitreq.cpp
+++ b/ydb/core/tx/tx_proxy/commitreq.cpp
@@ -1035,7 +1035,7 @@ IActor* CreateTxProxyCommitWritesReq(const TTxProxyServices& services, const ui6
return new TCommitWritesReq(services, txid, std::move(ev), mon);
}
- Y_FAIL("Unexpected transaction proposal");
+ Y_ABORT("Unexpected transaction proposal");
}
diff --git a/ydb/core/tx/tx_proxy/datareq.cpp b/ydb/core/tx/tx_proxy/datareq.cpp
index b577b3096b..fedecfb43e 100644
--- a/ydb/core/tx/tx_proxy/datareq.cpp
+++ b/ydb/core/tx/tx_proxy/datareq.cpp
@@ -1728,7 +1728,7 @@ void TDataReq::Handle(TEvTxProxySchemeCache::TEvResolveKeySetResult::TPtr &ev, c
TxProxyMon->ResolveKeySetMiniKQLSuccess->Inc();
ProcessFlatMKQLResolve(request, ctx);
} else {
- Y_FAIL("No request");
+ Y_ABORT("No request");
}
}
@@ -2727,7 +2727,7 @@ void TDataReq::MakeFlatMKQLResponse(const TActorContext &ctx, const NCpuTime::TC
return Die(ctx);
}
default:
- Y_FAIL("unknown engine status# %" PRIu32 " txid# %" PRIu64, (ui32)FlatMKQLRequest->EngineResponseStatus, (ui64)TxId);
+ Y_ABORT("unknown engine status# %" PRIu32 " txid# %" PRIu64, (ui32)FlatMKQLRequest->EngineResponseStatus, (ui64)TxId);
}
}
@@ -3058,7 +3058,7 @@ bool TDataReq::IsReadOnlyRequest() const {
return true;
}
- Y_FAIL("No request");
+ Y_ABORT("No request");
}
IActor* CreateTxProxyDataReq(const TTxProxyServices &services, const ui64 txid, const TIntrusivePtr<NKikimr::NTxProxy::TTxProxyMon>& mon,
diff --git a/ydb/core/tx/tx_proxy/schemereq.cpp b/ydb/core/tx/tx_proxy/schemereq.cpp
index 11afd2c657..2552344b7c 100644
--- a/ydb/core/tx/tx_proxy/schemereq.cpp
+++ b/ydb/core/tx/tx_proxy/schemereq.cpp
@@ -163,7 +163,7 @@ struct TBaseSchemeReq: public TActorBootstrapped<TDerived> {
return *modifyScheme.MutableModifyACL()->MutableName();
case NKikimrSchemeOp::ESchemeOpSplitMergeTablePartitions:
- Y_FAIL("no implementation for ESchemeOpSplitMergeTablePartitions");
+ Y_ABORT("no implementation for ESchemeOpSplitMergeTablePartitions");
case NKikimrSchemeOp::ESchemeOpBackup:
return *modifyScheme.MutableBackup()->MutableTableName();
@@ -175,7 +175,7 @@ struct TBaseSchemeReq: public TActorBootstrapped<TDerived> {
return *modifyScheme.MutableSubDomain()->MutableName();
case NKikimrSchemeOp::ESchemeOpAlterExtSubDomainCreateHive:
- Y_FAIL("no implementation for ESchemeOpAlterExtSubDomainCreateHive");
+ Y_ABORT("no implementation for ESchemeOpAlterExtSubDomainCreateHive");
case NKikimrSchemeOp::ESchemeOpCreateRtmrVolume:
return *modifyScheme.MutableCreateRtmrVolume()->MutableName();
@@ -206,10 +206,10 @@ struct TBaseSchemeReq: public TActorBootstrapped<TDerived> {
return *modifyScheme.MutableCreateTableIndex()->MutableName();
case NKikimrSchemeOp::ESchemeOpCreateConsistentCopyTables:
- Y_FAIL("no implementation for ESchemeOpCreateConsistentCopyTables");
+ Y_ABORT("no implementation for ESchemeOpCreateConsistentCopyTables");
case NKikimrSchemeOp::ESchemeOp_DEPRECATED_35:
- Y_FAIL("no implementation for ESchemeOp_DEPRECATED_35");
+ Y_ABORT("no implementation for ESchemeOp_DEPRECATED_35");
case NKikimrSchemeOp::ESchemeOpUpgradeSubDomain:
case NKikimrSchemeOp::ESchemeOpUpgradeSubDomainDecision:
@@ -217,19 +217,19 @@ struct TBaseSchemeReq: public TActorBootstrapped<TDerived> {
case NKikimrSchemeOp::ESchemeOpCreateColumnBuild:
case NKikimrSchemeOp::ESchemeOpCreateIndexBuild:
- Y_FAIL("no implementation for ESchemeOpCreateIndexBuild/ESchemeOpCreateColumnBuild");
+ Y_ABORT("no implementation for ESchemeOpCreateIndexBuild/ESchemeOpCreateColumnBuild");
case NKikimrSchemeOp::ESchemeOpInitiateBuildIndexMainTable:
- Y_FAIL("no implementation for ESchemeOpInitiateBuildIndexMainTable");
+ Y_ABORT("no implementation for ESchemeOpInitiateBuildIndexMainTable");
case NKikimrSchemeOp::ESchemeOpCreateLock:
- Y_FAIL("no implementation for ESchemeOpCreateLock");
+ Y_ABORT("no implementation for ESchemeOpCreateLock");
case NKikimrSchemeOp::ESchemeOpApplyIndexBuild:
- Y_FAIL("no implementation for ESchemeOpApplyIndexBuild");
+ Y_ABORT("no implementation for ESchemeOpApplyIndexBuild");
case NKikimrSchemeOp::ESchemeOpFinalizeBuildIndexMainTable:
- Y_FAIL("no implementation for ESchemeOpFinalizeBuildIndexMainTable");
+ Y_ABORT("no implementation for ESchemeOpFinalizeBuildIndexMainTable");
case NKikimrSchemeOp::ESchemeOpAlterTableIndex:
return *modifyScheme.MutableAlterTableIndex()->MutableName();
@@ -238,19 +238,19 @@ struct TBaseSchemeReq: public TActorBootstrapped<TDerived> {
return *modifyScheme.MutableAlterSolomonVolume()->MutableName();
case NKikimrSchemeOp::ESchemeOpDropLock:
- Y_FAIL("no implementation for ESchemeOpDropLock");
+ Y_ABORT("no implementation for ESchemeOpDropLock");
case NKikimrSchemeOp::ESchemeOpFinalizeBuildIndexImplTable:
- Y_FAIL("no implementation for ESchemeOpFinalizeBuildIndexImplTable");
+ Y_ABORT("no implementation for ESchemeOpFinalizeBuildIndexImplTable");
case NKikimrSchemeOp::ESchemeOpInitiateBuildIndexImplTable:
- Y_FAIL("no implementation for ESchemeOpInitiateBuildIndexImplTable");
+ Y_ABORT("no implementation for ESchemeOpInitiateBuildIndexImplTable");
case NKikimrSchemeOp::ESchemeOpDropIndex:
return *modifyScheme.MutableDropIndex()->MutableTableName();
case NKikimrSchemeOp::ESchemeOpDropTableIndexAtMainTable:
- Y_FAIL("no implementation for ESchemeOpDropTableIndexAtMainTable");
+ Y_ABORT("no implementation for ESchemeOpDropTableIndexAtMainTable");
case NKikimrSchemeOp::ESchemeOpCancelIndexBuild:
return *modifyScheme.MutableCancelIndexBuild()->MutableTablePath();
@@ -277,13 +277,13 @@ struct TBaseSchemeReq: public TActorBootstrapped<TDerived> {
return *modifyScheme.MutableAlterColumnTable()->MutableName();
case NKikimrSchemeOp::ESchemeOpAlterLogin:
- Y_FAIL("no implementation for ESchemeOpAlterLogin");
+ Y_ABORT("no implementation for ESchemeOpAlterLogin");
case NKikimrSchemeOp::ESchemeOpCreateCdcStream:
return *modifyScheme.MutableCreateCdcStream()->MutableTableName();
case NKikimrSchemeOp::ESchemeOpCreateCdcStreamImpl:
- Y_FAIL("no implementation for ESchemeOpCreateCdcStreamImpl");
+ Y_ABORT("no implementation for ESchemeOpCreateCdcStreamImpl");
case NKikimrSchemeOp::ESchemeOpCreateCdcStreamAtTable:
return *modifyScheme.MutableCreateCdcStream()->MutableTableName();
@@ -292,7 +292,7 @@ struct TBaseSchemeReq: public TActorBootstrapped<TDerived> {
return *modifyScheme.MutableAlterCdcStream()->MutableTableName();
case NKikimrSchemeOp::ESchemeOpAlterCdcStreamImpl:
- Y_FAIL("no implementation for ESchemeOpAlterCdcStreamImpl");
+ Y_ABORT("no implementation for ESchemeOpAlterCdcStreamImpl");
case NKikimrSchemeOp::ESchemeOpAlterCdcStreamAtTable:
return *modifyScheme.MutableAlterCdcStream()->MutableTableName();
@@ -301,19 +301,19 @@ struct TBaseSchemeReq: public TActorBootstrapped<TDerived> {
return *modifyScheme.MutableDropCdcStream()->MutableTableName();
case NKikimrSchemeOp::ESchemeOpDropCdcStreamImpl:
- Y_FAIL("no implementation for ESchemeOpDropCdcStreamImpl");
+ Y_ABORT("no implementation for ESchemeOpDropCdcStreamImpl");
case NKikimrSchemeOp::ESchemeOpDropCdcStreamAtTable:
return *modifyScheme.MutableDropCdcStream()->MutableTableName();
case NKikimrSchemeOp::ESchemeOpMoveTable:
- Y_FAIL("no implementation for ESchemeOpMoveTable");
+ Y_ABORT("no implementation for ESchemeOpMoveTable");
case NKikimrSchemeOp::ESchemeOpMoveTableIndex:
- Y_FAIL("no implementation for ESchemeOpMoveTableIndex");
+ Y_ABORT("no implementation for ESchemeOpMoveTableIndex");
case NKikimrSchemeOp::ESchemeOpMoveIndex:
- Y_FAIL("no implementation for ESchemeOpMoveIndex");
+ Y_ABORT("no implementation for ESchemeOpMoveIndex");
case NKikimrSchemeOp::ESchemeOpCreateSequence:
case NKikimrSchemeOp::ESchemeOpAlterSequence:
@@ -331,13 +331,13 @@ struct TBaseSchemeReq: public TActorBootstrapped<TDerived> {
return *modifyScheme.MutableCreateExternalTable()->MutableName();
case NKikimrSchemeOp::ESchemeOpAlterExternalTable:
- Y_FAIL("no implementation for ESchemeOpAlterExternalTable");
+ Y_ABORT("no implementation for ESchemeOpAlterExternalTable");
case NKikimrSchemeOp::ESchemeOpCreateExternalDataSource:
return *modifyScheme.MutableCreateExternalDataSource()->MutableName();
case NKikimrSchemeOp::ESchemeOpAlterExternalDataSource:
- Y_FAIL("no implementation for ESchemeOpAlterExternalDataSource");
+ Y_ABORT("no implementation for ESchemeOpAlterExternalDataSource");
}
}
diff --git a/ydb/core/tx/tx_proxy/snapshotreq.cpp b/ydb/core/tx/tx_proxy/snapshotreq.cpp
index 2c13455ce6..980b862d63 100644
--- a/ydb/core/tx/tx_proxy/snapshotreq.cpp
+++ b/ydb/core/tx/tx_proxy/snapshotreq.cpp
@@ -1237,7 +1237,7 @@ public:
SnapshotStep = params.GetSnapshotStep();
SnapshotTxId = params.GetSnapshotTxId();
} else {
- Y_FAIL("Unexpected op");
+ Y_ABORT("Unexpected op");
}
ResolveActorID = ctx.RegisterWithSameMailbox(CreateResolveTablesActor(ctx.SelfID, 0, Services, std::move(requests), record.GetDatabaseName()));
@@ -1669,7 +1669,7 @@ IActor* CreateTxProxySnapshotReq(const TTxProxyServices& services, const ui64 tx
return new TRefreshDiscardSnapshotReq(services, std::move(ev), mon);
}
- Y_FAIL("Unexpected transaction proposal");
+ Y_ABORT("Unexpected transaction proposal");
}
} // namespace NTxProxy
diff --git a/ydb/core/util/event_priority_queue_ut.cpp b/ydb/core/util/event_priority_queue_ut.cpp
index f22c818f9a..b54a10eb5a 100644
--- a/ydb/core/util/event_priority_queue_ut.cpp
+++ b/ydb/core/util/event_priority_queue_ut.cpp
@@ -34,7 +34,7 @@ public:
switch(ev->GetTypeRewrite()) {
hFunc(TEvPriorityTest, Handle);
default:
- Y_FAIL("Unexpected event type");
+ Y_ABORT("Unexpected event type");
}
}
diff --git a/ydb/core/util/failure_injection.cpp b/ydb/core/util/failure_injection.cpp
index 91ce2d7b9e..610bcab37a 100644
--- a/ydb/core/util/failure_injection.cpp
+++ b/ydb/core/util/failure_injection.cpp
@@ -204,7 +204,7 @@ namespace NKikimr {
void TerminateProcess() {
if (EnableFailureInjectionTermination) {
- Y_FAIL("Terminating itself from TFailureInjectionActor");
+ Y_ABORT("Terminating itself from TFailureInjectionActor");
}
}
diff --git a/ydb/core/util/single_thread_ic_mock.cpp b/ydb/core/util/single_thread_ic_mock.cpp
index 75f6bd68ca..5ced8a853c 100644
--- a/ydb/core/util/single_thread_ic_mock.cpp
+++ b/ydb/core/util/single_thread_ic_mock.cpp
@@ -388,7 +388,7 @@ void TMock::TProxyActor::DropSessionEvent(std::unique_ptr<IEventHandle> ev) {
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/util/testactorsys.cpp b/ydb/core/util/testactorsys.cpp
index 7facff689d..44efa9d0ad 100644
--- a/ydb/core/util/testactorsys.cpp
+++ b/ydb/core/util/testactorsys.cpp
@@ -58,11 +58,11 @@ public:
{}
ui32 GetReadyActivation(TWorkerContext& /*wctx*/, ui64 /*revolvingCounter*/) override {
- Y_FAIL();
+ Y_ABORT();
}
void ReclaimMailbox(TMailboxType::EType /*mailboxType*/, ui32 /*hint*/, NActors::TWorkerId /*workerId*/, ui64 /*revolvingCounter*/) override {
- Y_FAIL();
+ Y_ABORT();
}
TMailboxHeader *ResolveMailbox(ui32 hint) override {
@@ -99,15 +99,15 @@ public:
}
void ScheduleActivation(ui32 /*activation*/) override {
- Y_FAIL();
+ Y_ABORT();
}
void SpecificScheduleActivation(ui32 /*activation*/) override {
- Y_FAIL();
+ Y_ABORT();
}
void ScheduleActivationEx(ui32 /*activation*/, ui64 /*revolvingCounter*/) override {
- Y_FAIL();
+ Y_ABORT();
}
TActorId Register(IActor* actor, TMailboxType::EType /*mailboxType*/, ui64 /*revolvingCounter*/, const TActorId& parentId) override {
@@ -135,7 +135,7 @@ public:
}
TAffinity* Affinity() const override {
- Y_FAIL();
+ Y_ABORT();
}
};
diff --git a/ydb/core/util/testactorsys.h b/ydb/core/util/testactorsys.h
index 1989fd9f07..7c29b1ac3c 100644
--- a/ydb/core/util/testactorsys.h
+++ b/ydb/core/util/testactorsys.h
@@ -520,7 +520,7 @@ public:
}
if (!item) {
- Y_FAIL("test actor system stalled -- no progress made"); // ensure we are doing progress
+ Y_ABORT("test actor system stalled -- no progress made"); // ensure we are doing progress
}
if (item->Cookie && !item->Cookie->Detach()) { // item is not relevant anymore
@@ -756,8 +756,8 @@ private:
class TFakeSchedulerCookie : public ISchedulerCookie {
public:
bool Detach() noexcept override { delete this; return false; }
- bool DetachEvent() noexcept override { Y_FAIL(); }
- bool IsArmed() noexcept override { Y_FAIL(); }
+ bool DetachEvent() noexcept override { Y_ABORT(); }
+ bool IsArmed() noexcept override { Y_ABORT(); }
};
} // NKikimr
diff --git a/ydb/core/wrappers/s3_storage_config.cpp b/ydb/core/wrappers/s3_storage_config.cpp
index 6620d1054c..8ece54e337 100644
--- a/ydb/core/wrappers/s3_storage_config.cpp
+++ b/ydb/core/wrappers/s3_storage_config.cpp
@@ -118,7 +118,7 @@ Aws::Client::ClientConfiguration TS3ExternalStorageConfig::ConfigFromSettings(co
config.scheme = Aws::Http::Scheme::HTTPS;
break;
default:
- Y_FAIL("Unknown scheme");
+ Y_ABORT("Unknown scheme");
}
if (settings.HasRegion()) {
@@ -164,7 +164,7 @@ Aws::Client::ClientConfiguration TS3ExternalStorageConfig::ConfigFromSettings(co
config.scheme = Http::Scheme::HTTPS;
break;
default:
- Y_FAIL("Unknown scheme");
+ Y_ABORT("Unknown scheme");
}
return config;
diff --git a/ydb/core/ydb_convert/table_description.cpp b/ydb/core/ydb_convert/table_description.cpp
index 3392e3f926..08d711ac2a 100644
--- a/ydb/core/ydb_convert/table_description.cpp
+++ b/ydb/core/ydb_convert/table_description.cpp
@@ -334,7 +334,7 @@ void FillTableBoundaryImpl(TYdbProto& out,
} else if constexpr (std::is_same<TYdbProto, Ydb::Table::CreateTableRequest>::value) {
ydbValue = out.mutable_partition_at_keys()->add_split_points();
} else {
- Y_FAIL("Unknown proto type");
+ Y_ABORT("Unknown proto type");
}
ConvertMiniKQLTypeToYdbType(
diff --git a/ydb/core/ydb_convert/ydb_convert.cpp b/ydb/core/ydb_convert/ydb_convert.cpp
index 2682e76245..fb03e4a425 100644
--- a/ydb/core/ydb_convert/ydb_convert.cpp
+++ b/ydb/core/ydb_convert/ydb_convert.cpp
@@ -147,7 +147,7 @@ void ConvertMiniKQLTypeToYdbType(const NKikimrMiniKQL::TType& input, Ydb::Type&
break;
}
default: {
- Y_FAIL("Unknown protobuf type: %s", input.DebugString().c_str());
+ Y_ABORT("Unknown protobuf type: %s", input.DebugString().c_str());
}
}
}
diff --git a/ydb/core/ymq/actor/actor.cpp b/ydb/core/ymq/actor/actor.cpp
index dd4a56e7f2..b84bc8864f 100644
--- a/ydb/core/ymq/actor/actor.cpp
+++ b/ydb/core/ymq/actor/actor.cpp
@@ -74,7 +74,7 @@ IActor* CreateActionActor(const NKikimrClient::TSqsRequest& req, THolder<IReplyC
return new TUnimplementedRequestActor(req, std::move(cb));
}
- Y_FAIL();
+ Y_ABORT();
}
IActor* CreateProxyActionActor(const NKikimrClient::TSqsRequest& req, THolder<IReplyCallback> cb, bool enableQueueLeader) {
diff --git a/ydb/core/ymq/actor/auth_multi_factory.cpp b/ydb/core/ymq/actor/auth_multi_factory.cpp
index 7a50e16295..45b6a54ff3 100644
--- a/ydb/core/ymq/actor/auth_multi_factory.cpp
+++ b/ydb/core/ymq/actor/auth_multi_factory.cpp
@@ -351,7 +351,7 @@ public:
RequestFolderService();
break;
default:
- Y_FAIL("Unknown wakeup tag: %lu", ev->Get()->Tag);
+ Y_ABORT("Unknown wakeup tag: %lu", ev->Get()->Tag);
}
}
diff --git a/ydb/core/ymq/actor/executor.cpp b/ydb/core/ymq/actor/executor.cpp
index 1085aaafe9..07e948ebd1 100644
--- a/ydb/core/ymq/actor/executor.cpp
+++ b/ydb/core/ymq/actor/executor.cpp
@@ -365,7 +365,7 @@ void TMiniKqlExecutionActor::HandleWakeup(TEvWakeup::TPtr& ev) {
break;
}
default: {
- Y_FAIL();
+ Y_ABORT();
}
}
}
diff --git a/ydb/core/ymq/actor/index_events_processor.cpp b/ydb/core/ymq/actor/index_events_processor.cpp
index a2add8c7e7..67206be2fb 100644
--- a/ydb/core/ymq/actor/index_events_processor.cpp
+++ b/ydb/core/ymq/actor/index_events_processor.cpp
@@ -71,7 +71,7 @@ void TSearchEventsProcessor::HandleWakeup(TEvWakeup::TPtr&, const TActorContext&
case EState::CleanupExecute:
return RunEventsCleanup(ctx);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -93,7 +93,7 @@ void TSearchEventsProcessor::HandleQueryResponse(NKqp::TEvKqp::TEvQueryResponse:
case EState::Stopping:
return StopSession(ctx);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -114,7 +114,7 @@ void TSearchEventsProcessor::HandleFailure(const TActorContext& ctx) {
case EState::Stopping:
return;
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/core/ymq/actor/queue_leader.cpp b/ydb/core/ymq/actor/queue_leader.cpp
index df66a8a43c..e30bf8a36b 100644
--- a/ydb/core/ymq/actor/queue_leader.cpp
+++ b/ydb/core/ymq/actor/queue_leader.cpp
@@ -234,7 +234,7 @@ void TQueueLeader::HandleWakeup(TEvWakeup::TPtr& ev) {
break;
}
default:
- Y_FAIL("Unknown wakeup tag: %lu", ev->Get()->Tag);
+ Y_ABORT("Unknown wakeup tag: %lu", ev->Get()->Tag);
}
}
diff --git a/ydb/core/ymq/http/http.cpp b/ydb/core/ymq/http/http.cpp
index 387980fcb0..deca686d6f 100644
--- a/ydb/core/ymq/http/http.cpp
+++ b/ydb/core/ymq/http/http.cpp
@@ -1028,7 +1028,7 @@ void TAsyncHttpServer::Initialize(
void TAsyncHttpServer::Start() {
if (!THttpServer::Start()) {
- Y_FAIL("Unable to start http server for SQS service on port %" PRIu16, Options().Port);
+ Y_ABORT("Unable to start http server for SQS service on port %" PRIu16, Options().Port);
}
}
diff --git a/ydb/library/backup/backup.cpp b/ydb/library/backup/backup.cpp
index d21fd19ac4..9f717d38d4 100644
--- a/ydb/library/backup/backup.cpp
+++ b/ydb/library/backup/backup.cpp
@@ -135,7 +135,7 @@ void PrintPrimitive(IOutputStream& out, const TValueParser& parser) {
CASE_PRINT_PRIMITIVE_STRING_TYPE(out, Json);
CASE_PRINT_PRIMITIVE_STRING_TYPE(out, JsonDocument);
default:
- Y_FAIL("Unsupported type");
+ Y_ABORT("Unsupported type");
}
}
#undef CASE_PRINT_PRIMITIVE_STRING_TYPE
diff --git a/ydb/library/backup/db_iterator.h b/ydb/library/backup/db_iterator.h
index 7d3efb63d3..f8eb5e8d12 100644
--- a/ydb/library/backup/db_iterator.h
+++ b/ydb/library/backup/db_iterator.h
@@ -91,7 +91,7 @@ public:
break;
}
default:
- Y_FAIL();
+ Y_ABORT();
}
}
}
@@ -193,7 +193,7 @@ public:
break;
}
default:
- Y_FAIL();
+ Y_ABORT();
}
}
};
diff --git a/ydb/library/pdisk_io/spdk_state.h b/ydb/library/pdisk_io/spdk_state.h
index 2129a325da..aff318f987 100644
--- a/ydb/library/pdisk_io/spdk_state.h
+++ b/ydb/library/pdisk_io/spdk_state.h
@@ -19,23 +19,23 @@ public:
TSpdkStateOSS() {}
void LaunchThread(int (*)(void *), void *) override {
- Y_FAIL("Spdk is not supported now");
+ Y_ABORT("Spdk is not supported now");
}
ui8 *Malloc(ui64, ui32) override {
- Y_FAIL("Spdk is not supported now");
+ Y_ABORT("Spdk is not supported now");
}
void Free(ui8 *) override {
- Y_FAIL("Spdk is not supported now");
+ Y_ABORT("Spdk is not supported now");
}
//ui64 GetDeviceSize() override {
- // Y_FAIL("Spdk is not supported now");
+ // Y_ABORT("Spdk is not supported now");
//}
void WaitAllThreads() override {
- Y_FAIL("Spdk is not supported now");
+ Y_ABORT("Spdk is not supported now");
}
};
diff --git a/ydb/library/workload/kv_workload.cpp b/ydb/library/workload/kv_workload.cpp
index 81be98bb71..00c048c82c 100644
--- a/ydb/library/workload/kv_workload.cpp
+++ b/ydb/library/workload/kv_workload.cpp
@@ -71,7 +71,7 @@ TRowsVerifyer RowsVerifyer;
void Fail() {
// Note: sleep helps to detect more fails
std::this_thread::sleep_for(std::chrono::seconds(3));
- Y_FAIL();
+ Y_ABORT();
}
void AddResultSet(const NYdb::TResultSet& resultSet, TVector<TRow>& rows) {
diff --git a/ydb/library/ycloud/impl/folder_service_adapter.cpp b/ydb/library/ycloud/impl/folder_service_adapter.cpp
index 7e5588e10c..c17a7e6aba 100644
--- a/ydb/library/ycloud/impl/folder_service_adapter.cpp
+++ b/ydb/library/ycloud/impl/folder_service_adapter.cpp
@@ -72,7 +72,7 @@ class TFolderServiceRequestHandler: public NActors::TActor<TFolderServiceRequest
}
void Handle(NActors::TEvents::TEvUndelivered::TPtr&) {
- Y_FAIL("Can't deliver local message");
+ Y_ABORT("Can't deliver local message");
}
std::unique_ptr<NActors::IEventBase> CreateListFolderRequest(NKikimr::NFolderService::TEvFolderService::TEvGetCloudByFolderRequest::TPtr& ev) {
diff --git a/ydb/library/yql/core/yql_expr_csee.cpp b/ydb/library/yql/core/yql_expr_csee.cpp
index e3cb1337c6..2b9cd32122 100644
--- a/ydb/library/yql/core/yql_expr_csee.cpp
+++ b/ydb/library/yql/core/yql_expr_csee.cpp
@@ -191,7 +191,7 @@ namespace {
}
case EDependencyScope::None:
case EDependencyScope::Mixed:
- Y_FAIL("Strange argument.");
+ Y_ABORT("Strange argument.");
}
break;
case TExprNode::World:
diff --git a/ydb/library/yql/dq/actors/compute/dq_compute_actor_checkpoints.cpp b/ydb/library/yql/dq/actors/compute/dq_compute_actor_checkpoints.cpp
index aa141a12dd..04195639d2 100644
--- a/ydb/library/yql/dq/actors/compute/dq_compute_actor_checkpoints.cpp
+++ b/ydb/library/yql/dq/actors/compute/dq_compute_actor_checkpoints.cpp
@@ -342,7 +342,7 @@ void TDqComputeActorCheckpoints::Handle(TEvDqCompute::TEvGetTaskStateResult::TPt
NDqProto::TComputeActorState state = CombineForeignState(StateLoadPlan, ev->Get()->States, taskIds);
ComputeActor->LoadState(std::move(state));
} else {
- Y_FAIL("Unprocessed state type %s (%d)",
+ Y_ABORT("Unprocessed state type %s (%d)",
NDqProto::NDqStateLoadPlan::EStateType_Name(StateLoadPlan.GetStateType()).c_str(),
static_cast<int>(StateLoadPlan.GetStateType()));
}
diff --git a/ydb/library/yql/dq/actors/compute/dq_compute_actor_checkpoints.h b/ydb/library/yql/dq/actors/compute/dq_compute_actor_checkpoints.h
index f7fde294d9..9696f9bc61 100644
--- a/ydb/library/yql/dq/actors/compute/dq_compute_actor_checkpoints.h
+++ b/ydb/library/yql/dq/actors/compute/dq_compute_actor_checkpoints.h
@@ -108,7 +108,7 @@ public:
Y_UNUSED(state);
Y_UNUSED(outputIndex); // Note that we can have both sink and transform on one output index
Y_UNUSED(checkpoint);
- Y_FAIL("Transform states are unimplemented");
+ Y_ABORT("Transform states are unimplemented");
}
void TryToSavePendingCheckpoint();
diff --git a/ydb/library/yql/dq/runtime/dq_arrow_helpers_ut.cpp b/ydb/library/yql/dq/runtime/dq_arrow_helpers_ut.cpp
index f4dddf1e0c..37e79881ff 100644
--- a/ydb/library/yql/dq/runtime/dq_arrow_helpers_ut.cpp
+++ b/ydb/library/yql/dq/runtime/dq_arrow_helpers_ut.cpp
@@ -56,7 +56,7 @@ NUdf::TUnboxedValue GetValueOfBasicType(TType* type, ui64 value) {
case NUdf::EDataSlot::Double:
return NUdf::TUnboxedValuePod(static_cast<double>(value) / 12345);
default:
- Y_FAIL("Not implemented creation value for such type");
+ Y_ABORT("Not implemented creation value for such type");
}
}
diff --git a/ydb/library/yql/dq/runtime/dq_tasks_runner.h b/ydb/library/yql/dq/runtime/dq_tasks_runner.h
index f8ef5912e7..9235084950 100644
--- a/ydb/library/yql/dq/runtime/dq_tasks_runner.h
+++ b/ydb/library/yql/dq/runtime/dq_tasks_runner.h
@@ -287,7 +287,7 @@ public:
Task_ = HeapTask_.get();
Y_ABORT_UNLESS(!task.Arena);
} else {
- Y_FAIL("not allowed to copy dq settings for arena allocated messages.");
+ Y_ABORT("not allowed to copy dq settings for arena allocated messages.");
}
}
diff --git a/ydb/library/yql/dq/state/dq_state_load_plan.cpp b/ydb/library/yql/dq/state/dq_state_load_plan.cpp
index 605b7ff5ea..cc494d03ac 100644
--- a/ydb/library/yql/dq/state/dq_state_load_plan.cpp
+++ b/ydb/library/yql/dq/state/dq_state_load_plan.cpp
@@ -150,7 +150,7 @@ NDqProto::NDqStateLoadPlan::TSourcePlan& FindSourcePlan(NDqProto::NDqStateLoadPl
return plan;
}
}
- Y_FAIL("Source plan for input index %lu was not found", inputIndex);
+ Y_ABORT("Source plan for input index %lu was not found", inputIndex);
}
} // namespace
diff --git a/ydb/library/yql/minikql/comp_nodes/mkql_decimal_div.cpp b/ydb/library/yql/minikql/comp_nodes/mkql_decimal_div.cpp
index 5452c572af..bb0124725f 100644
--- a/ydb/library/yql/minikql/comp_nodes/mkql_decimal_div.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/mkql_decimal_div.cpp
@@ -292,7 +292,7 @@ IComputationNode* WrapDecimalDiv(TCallable& callable, const TComputationNodeFact
INTEGRAL_VALUE_TYPES(MAKE_PRIMITIVE_TYPE_DIV)
#undef MAKE_PRIMITIVE_TYPE_DIV
default:
- Y_FAIL("Unupported type.");
+ Y_ABORT("Unupported type.");
}
}
diff --git a/ydb/library/yql/minikql/comp_nodes/mkql_decimal_mod.cpp b/ydb/library/yql/minikql/comp_nodes/mkql_decimal_mod.cpp
index 592fe6a249..b953039e12 100644
--- a/ydb/library/yql/minikql/comp_nodes/mkql_decimal_mod.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/mkql_decimal_mod.cpp
@@ -278,7 +278,7 @@ IComputationNode* WrapDecimalMod(TCallable& callable, const TComputationNodeFact
INTEGRAL_VALUE_TYPES(MAKE_PRIMITIVE_TYPE_MOD)
#undef MAKE_PRIMITIVE_TYPE_MOD
default:
- Y_FAIL("Unupported type.");
+ Y_ABORT("Unupported type.");
}
}
diff --git a/ydb/library/yql/minikql/comp_nodes/mkql_decimal_mul.cpp b/ydb/library/yql/minikql/comp_nodes/mkql_decimal_mul.cpp
index 1b7dad56ea..ab135d8fc0 100644
--- a/ydb/library/yql/minikql/comp_nodes/mkql_decimal_mul.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/mkql_decimal_mul.cpp
@@ -354,7 +354,7 @@ IComputationNode* WrapDecimalMul(TCallable& callable, const TComputationNodeFact
INTEGRAL_VALUE_TYPES(MAKE_PRIMITIVE_TYPE_MUL)
#undef MAKE_PRIMITIVE_TYPE_MUL
default:
- Y_FAIL("Unupported type.");
+ Y_ABORT("Unupported type.");
}
}
diff --git a/ydb/library/yql/minikql/comp_nodes/mkql_dictitems.cpp b/ydb/library/yql/minikql/comp_nodes/mkql_dictitems.cpp
index f497c75631..b2a2ac4e0a 100644
--- a/ydb/library/yql/minikql/comp_nodes/mkql_dictitems.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/mkql_dictitems.cpp
@@ -291,7 +291,7 @@ IComputationNode* WrapDictItems(TCallable& callable, const TComputationNodeFacto
case EDictItems::Payloads:
return new TDictHalfsWrapper<false>(ctx.Mutables, node);
default:
- Y_FAIL("Unknown mode: %" PRIu32, mode);
+ Y_ABORT("Unknown mode: %" PRIu32, mode);
}
}
diff --git a/ydb/library/yql/minikql/comp_nodes/mkql_invoke.cpp b/ydb/library/yql/minikql/comp_nodes/mkql_invoke.cpp
index c99842bf6c..95f0492c1b 100644
--- a/ydb/library/yql/minikql/comp_nodes/mkql_invoke.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/mkql_invoke.cpp
@@ -215,7 +215,7 @@ IComputationNode* WrapInvoke(TCallable& callable, const TComputationNodeFactoryC
case 3U:
return new TInvokeWrapper<3U>(ctx.Mutables, returnKind, funcName, funcDesc, std::move(argNodes));
default:
- Y_FAIL("Too wide invoke.");
+ Y_ABORT("Too wide invoke.");
}
}
diff --git a/ydb/library/yql/minikql/comp_nodes/mkql_join.cpp b/ydb/library/yql/minikql/comp_nodes/mkql_join.cpp
index 1ed037ae4e..ced7166e5f 100644
--- a/ydb/library/yql/minikql/comp_nodes/mkql_join.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/mkql_join.cpp
@@ -501,7 +501,7 @@ public:
break;
default:
- Y_FAIL("Unknown kind");
+ Y_ABORT("Unknown kind");
}
if (OutputMode == EOutputMode::Unknown) {
@@ -555,7 +555,7 @@ public:
case EOutputMode::None:
return NUdf::TUnboxedValuePod::MakeFinish();
default:
- Y_FAIL("Unknown output mode");
+ Y_ABORT("Unknown output mode");
}
}
}
@@ -945,7 +945,7 @@ public:
break;
default:
- Y_FAIL("Unknown kind");
+ Y_ABORT("Unknown kind");
}
if (OutputMode == EOutputMode::Unknown) {
@@ -1003,7 +1003,7 @@ public:
case EOutputMode::None:
return EFetchResult::Finish;
default:
- Y_FAIL("Unknown output mode");
+ Y_ABORT("Unknown output mode");
}
}
}
@@ -1774,7 +1774,7 @@ public:
break;
default:
- Y_FAIL("Unknown kind");
+ Y_ABORT("Unknown kind");
}
if (OutputMode == EOutputMode::Unknown) {
@@ -1844,7 +1844,7 @@ public:
case EOutputMode::None:
return NUdf::EFetchStatus::Finish;
default:
- Y_FAIL("Unknown output mode");
+ Y_ABORT("Unknown output mode");
}
}
}
@@ -2214,7 +2214,7 @@ IComputationNode* WrapCommonJoinCore(TCallable& callable, const TComputationNode
MAKE_COMMON_JOIN_CORE_WRAPPER(RightSemi)
MAKE_COMMON_JOIN_CORE_WRAPPER(Cross)
default:
- Y_FAIL("Unknown kind");
+ Y_ABORT("Unknown kind");
}
#undef MAKE_COMMON_JOIN_CORE_WRAPPER
}
diff --git a/ydb/library/yql/minikql/comp_nodes/mkql_join_dict.cpp b/ydb/library/yql/minikql/comp_nodes/mkql_join_dict.cpp
index 32743cbc94..21e40ff88a 100644
--- a/ydb/library/yql/minikql/comp_nodes/mkql_join_dict.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/mkql_join_dict.cpp
@@ -300,7 +300,7 @@ private:
break;
default:
- Y_FAIL("Unknown kind");
+ Y_ABORT("Unknown kind");
}
return ctx.HolderFactory.CreateDirectListHolder(std::move(resList));
diff --git a/ydb/library/yql/minikql/comp_nodes/mkql_map_join.cpp b/ydb/library/yql/minikql/comp_nodes/mkql_map_join.cpp
index 710a0e259c..a6a5723f63 100644
--- a/ydb/library/yql/minikql/comp_nodes/mkql_map_join.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/mkql_map_join.cpp
@@ -989,7 +989,7 @@ public:
break;
}
default:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
}
NUdf::TUnboxedValue* items = nullptr;
@@ -1131,7 +1131,7 @@ public:
break;
}
case ERightKind::Many:
- Y_FAIL("Wrong case");
+ Y_ABORT("Wrong case");
}
{
@@ -1421,7 +1421,7 @@ private:
break;
}
default:
- Y_FAIL("Unreachable");
+ Y_ABORT("Unreachable");
}
NUdf::TUnboxedValue* items = nullptr;
@@ -1659,7 +1659,7 @@ private:
break;
}
case ERightKind::Many:
- Y_FAIL("Wrong case");
+ Y_ABORT("Wrong case");
}
{
diff --git a/ydb/library/yql/minikql/comp_nodes/mkql_random.cpp b/ydb/library/yql/minikql/comp_nodes/mkql_random.cpp
index c6e95bbaed..2621689fc3 100644
--- a/ydb/library/yql/minikql/comp_nodes/mkql_random.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/mkql_random.cpp
@@ -103,7 +103,7 @@ public:
}
}
- Y_FAIL("Unexpected");
+ Y_ABORT("Unexpected");
}
private:
diff --git a/ydb/library/yql/minikql/comp_nodes/mkql_sort.cpp b/ydb/library/yql/minikql/comp_nodes/mkql_sort.cpp
index 1f50e100eb..efefa701d2 100644
--- a/ydb/library/yql/minikql/comp_nodes/mkql_sort.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/mkql_sort.cpp
@@ -498,7 +498,7 @@ public:
Y_UNUSED(keys);
Y_UNUSED(items);
Y_UNUSED(comparator);
- Y_FAIL("Not supported");
+ Y_ABORT("Not supported");
}
private:
diff --git a/ydb/library/yql/minikql/comp_nodes/mkql_udf.cpp b/ydb/library/yql/minikql/comp_nodes/mkql_udf.cpp
index 61748ae6cd..c083843926 100644
--- a/ydb/library/yql/minikql/comp_nodes/mkql_udf.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/mkql_udf.cpp
@@ -140,7 +140,7 @@ inline IComputationNode* CreateUdfWrapper(
return new TUdfWrapper<TValidateErrorPolicyThrow,TValidateModeGreedy<TValidateErrorPolicyThrow>>(ctx.Mutables, std::move(node), std::move(functionName), runConfigNode, callableType);
}
default:
- Y_FAIL("Unexpected validate mode: %u", static_cast<unsigned>(ctx.ValidateMode));
+ Y_ABORT("Unexpected validate mode: %u", static_cast<unsigned>(ctx.ValidateMode));
};
}
diff --git a/ydb/library/yql/minikql/comp_nodes/mkql_withcontext.cpp b/ydb/library/yql/minikql/comp_nodes/mkql_withcontext.cpp
index f5714b5181..4c2243a815 100644
--- a/ydb/library/yql/minikql/comp_nodes/mkql_withcontext.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/mkql_withcontext.cpp
@@ -188,7 +188,7 @@ public:
#ifndef MKQL_DISABLE_CODEGEN
ICodegeneratorInlineWideNode::TGenerateResult DoGenGetValues(const TCodegenContext& ctx, Value* statePtr, BasicBlock*& block) const {
Cerr << Flow->DebugString() << Endl;
- Y_FAIL("bad");
+ Y_ABORT("bad");
auto& context = ctx.Codegen.GetContext();
const auto valueType = Type::getInt128Ty(context);
diff --git a/ydb/library/yql/minikql/comp_nodes/ut/mkql_computation_node_ut.cpp b/ydb/library/yql/minikql/comp_nodes/ut/mkql_computation_node_ut.cpp
index effe3122cc..96c853bf2a 100644
--- a/ydb/library/yql/minikql/comp_nodes/ut/mkql_computation_node_ut.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/ut/mkql_computation_node_ut.cpp
@@ -72,7 +72,7 @@ std::vector<std::tuple<ui64, std::string, std::string, double, double, double, d
case 2U: return std::make_tuple(dates(gen), "N", "F", prices(gen), taxes(gen), discs(gen), qntts(gen));
case 3U: return std::make_tuple(dates(gen), "R", "F", prices(gen), taxes(gen), discs(gen), qntts(gen));
}
- Y_FAIL("Unexpected");
+ Y_ABORT("Unexpected");
});
return samples;
}
diff --git a/ydb/library/yql/minikql/comp_nodes/ut/mkql_switch_ut.cpp b/ydb/library/yql/minikql/comp_nodes/ut/mkql_switch_ut.cpp
index 37472db9d6..2e803e680b 100644
--- a/ydb/library/yql/minikql/comp_nodes/ut/mkql_switch_ut.cpp
+++ b/ydb/library/yql/minikql/comp_nodes/ut/mkql_switch_ut.cpp
@@ -42,7 +42,7 @@ Y_UNIT_TEST_SUITE(TMiniKQLSwitchTest) {
case 0U: return pb.Map(stream, [&](TRuntimeNode item) { return pb.NewVariant(pb.ToString(item), 0U, varOutType); });
case 1U: return pb.Map(stream, [&](TRuntimeNode item) { return pb.NewVariant(pb.StrictFromString(item, intType), 1U, varOutType); });
}
- Y_FAIL("Wrong case!");
+ Y_ABORT("Wrong case!");
},
0ULL,
pb.NewStreamType(varOutType)
@@ -108,7 +108,7 @@ Y_UNIT_TEST_SUITE(TMiniKQLSwitchTest) {
case 0U: return pb.Map(stream, [&](TRuntimeNode item) { return item; });
case 1U: return pb.Map(stream, [&](TRuntimeNode item) { return pb.NewVariant(pb.StrictFromString(item, intType), 1U, varOutType); });
}
- Y_FAIL("Wrong case!");
+ Y_ABORT("Wrong case!");
},
0ULL,
pb.NewStreamType(varOutType)
@@ -174,7 +174,7 @@ Y_UNIT_TEST_SUITE(TMiniKQLSwitchTest) {
case 0U: return pb.Map(stream, [&](TRuntimeNode item) { return pb.NewVariant(pb.ToString(item), 0U, varOutType); });
case 1U: return pb.Map(stream, [&](TRuntimeNode item) { return pb.NewVariant(pb.StrictFromString(item, intType), 1U, varOutType); });
}
- Y_FAIL("Wrong case!");
+ Y_ABORT("Wrong case!");
},
0ULL,
pb.NewFlowType(varOutType)
@@ -240,7 +240,7 @@ Y_UNIT_TEST_SUITE(TMiniKQLSwitchTest) {
case 0U: return pb.Map(stream, [&](TRuntimeNode item) { return item; });
case 1U: return pb.Map(stream, [&](TRuntimeNode item) { return pb.NewVariant(pb.StrictFromString(item, intType), 1U, varOutType); });
}
- Y_FAIL("Wrong case!");
+ Y_ABORT("Wrong case!");
},
0ULL,
pb.NewFlowType(varOutType)
diff --git a/ydb/library/yql/minikql/compact_hash.h b/ydb/library/yql/minikql/compact_hash.h
index 9176349511..f5e329fd56 100644
--- a/ydb/library/yql/minikql/compact_hash.h
+++ b/ydb/library/yql/minikql/compact_hash.h
@@ -305,7 +305,7 @@ public:
case LARGE_MARK:
return GetLargeListHeader(list)->Size;
default:
- Y_FAIL("Bad list address");
+ Y_ABORT("Bad list address");
}
return 0;
}
@@ -328,7 +328,7 @@ public:
return size;
}
default:
- Y_FAIL("Bad list address");
+ Y_ABORT("Bad list address");
}
return 0;
}
@@ -341,7 +341,7 @@ public:
case LARGE_MARK:
return GetLargeListHeader(list)->Capacity;
default:
- Y_FAIL("Bad list address");
+ Y_ABORT("Bad list address");
}
return 0;
}
@@ -355,7 +355,7 @@ public:
GetLargeListHeader(list)->Size = size;
break;
default:
- Y_FAIL("Bad list address");
+ Y_ABORT("Bad list address");
}
}
@@ -516,7 +516,7 @@ public:
ReturnLargeList<T>(list);
break;
default:
- Y_FAIL("Bad list address");
+ Y_ABORT("Bad list address");
}
}
diff --git a/ydb/library/yql/minikql/computation/mkql_computation_node_holders.cpp b/ydb/library/yql/minikql/computation/mkql_computation_node_holders.cpp
index 6982090f8c..53b6046c3d 100644
--- a/ydb/library/yql/minikql/computation/mkql_computation_node_holders.cpp
+++ b/ydb/library/yql/minikql/computation/mkql_computation_node_holders.cpp
@@ -1007,7 +1007,7 @@ private:
Reverse(Items.begin(), Items.end());
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
Y_DEBUG_ABORT_UNLESS(IsSortedUnique());
@@ -1209,7 +1209,7 @@ private:
Reverse(Items.begin(), Items.end());
break;
default:
- Y_FAIL();
+ Y_ABORT();
}
Y_DEBUG_ABORT_UNLESS(IsSortedUnique());
diff --git a/ydb/library/yql/minikql/computation/mkql_computation_node_pack.cpp b/ydb/library/yql/minikql/computation/mkql_computation_node_pack.cpp
index cc62c3d881..75f988fe85 100644
--- a/ydb/library/yql/minikql/computation/mkql_computation_node_pack.cpp
+++ b/ydb/library/yql/minikql/computation/mkql_computation_node_pack.cpp
@@ -147,7 +147,7 @@ private:
template<bool Fast>
std::pair<ui32, bool> SkipEmbeddedLength(TChunkedInputBuffer& buf, size_t totalBufSize) {
if constexpr (Fast) {
- Y_FAIL("Should not be called");
+ Y_ABORT("Should not be called");
}
ui32 length = 0;
bool emptySingleOptional = false;
diff --git a/ydb/library/yql/minikql/computation/mkql_validate.cpp b/ydb/library/yql/minikql/computation/mkql_validate.cpp
index 71d5e08c93..8f1d93c8b6 100644
--- a/ydb/library/yql/minikql/computation/mkql_validate.cpp
+++ b/ydb/library/yql/minikql/computation/mkql_validate.cpp
@@ -491,7 +491,7 @@ NUdf::TUnboxedValue TValidate<TValidateErrorPolicy, TValidateMode>::Value(const
}
default:
- Y_FAIL("Verify value meet unexpected type kind: %s", type->GetKindAsStr().data());
+ Y_ABORT("Verify value meet unexpected type kind: %s", type->GetKindAsStr().data());
}
return std::move(value);
}
diff --git a/ydb/library/yql/minikql/computation/mkql_validate_impl.h b/ydb/library/yql/minikql/computation/mkql_validate_impl.h
index c4e10ac4b1..6aa5da928e 100644
--- a/ydb/library/yql/minikql/computation/mkql_validate_impl.h
+++ b/ydb/library/yql/minikql/computation/mkql_validate_impl.h
@@ -24,7 +24,7 @@ struct TValidateErrorPolicyThrow {
struct TValidateErrorPolicyFail {
static void Generate(const TString& message) {
- Y_FAIL("value verify failed: %s", message.c_str());
+ Y_ABORT("value verify failed: %s", message.c_str());
}
template<class TException>
diff --git a/ydb/library/yql/minikql/computation/mkql_validate_ut.cpp b/ydb/library/yql/minikql/computation/mkql_validate_ut.cpp
index cf91c47301..f0bb9c5ca2 100644
--- a/ydb/library/yql/minikql/computation/mkql_validate_ut.cpp
+++ b/ydb/library/yql/minikql/computation/mkql_validate_ut.cpp
@@ -112,7 +112,7 @@ namespace NUdf {
case 0: return ToUnboxedValue(FirstName);
case 1: return ToUnboxedValue(LastName);
case 2: return NUdf::TUnboxedValuePod(Age);
- default: Y_FAIL("Unexpected");
+ default: Y_ABORT("Unexpected");
}
}
};
@@ -140,7 +140,7 @@ namespace NUdf {
case 3: return Tags.empty() ?
NUdf::TUnboxedValuePod() :
NUdf::TUnboxedValuePod(new TListRef<TTagList>(Tags));
- default: Y_FAIL("Unexpected");
+ default: Y_ABORT("Unexpected");
}
}
};
@@ -305,7 +305,7 @@ namespace {
case 1: return ToUnboxedValue(std::get<1>(Tuple));
case 2: return ToUnboxedValue(std::get<2>(Tuple));
case 3: return ToUnboxedValue(std::get<3>(Tuple));
- default: Y_FAIL("Unexpected");
+ default: Y_ABORT("Unexpected");
}
}
};
diff --git a/ydb/library/yql/minikql/dom/make.cpp b/ydb/library/yql/minikql/dom/make.cpp
index abf68b3287..30131cf978 100644
--- a/ydb/library/yql/minikql/dom/make.cpp
+++ b/ydb/library/yql/minikql/dom/make.cpp
@@ -32,7 +32,7 @@ TUnboxedValuePod MakeData(const TDataTypeId nodeType, const TUnboxedValuePod val
default: break;
}
- Y_FAIL("Unsupported data type.");
+ Y_ABORT("Unsupported data type.");
}
TUnboxedValuePod MakeList(const ITypeInfoHelper* typeHelper, const TType* itemType, const TUnboxedValuePod value, const IValueBuilder* valueBuilder) {
@@ -125,7 +125,7 @@ TUnboxedValuePod MakeVariant(const ITypeInfoHelper* typeHelper, const TType* sha
default:
break;
}
- Y_FAIL("Unsupported underlying type.");
+ Y_ABORT("Unsupported underlying type.");
}
}
@@ -163,7 +163,7 @@ TUnboxedValuePod MakeDom(const ITypeInfoHelper* typeHelper, const TType* shape,
return value;
[[fallthrough]];
default:
- Y_FAIL("Unsupported data kind: %s", ToCString(kind));
+ Y_ABORT("Unsupported data kind: %s", ToCString(kind));
}
}
diff --git a/ydb/library/yql/minikql/jsonpath/ast_builder.cpp b/ydb/library/yql/minikql/jsonpath/ast_builder.cpp
index 96e514021b..b1ea74908c 100644
--- a/ydb/library/yql/minikql/jsonpath/ast_builder.cpp
+++ b/ydb/library/yql/minikql/jsonpath/ast_builder.cpp
@@ -104,7 +104,7 @@ TString TAstBuilder::BuildIdentifier(const TRule_identifier& node) {
case TRule_identifier::kAltIdentifier2:
return node.GetAlt_identifier2().GetRule_keyword1().GetToken1().GetValue();
case TRule_identifier::ALT_NOT_SET:
- Y_FAIL("Alternative for 'identifier' rule is not set");
+ Y_ABORT("Alternative for 'identifier' rule is not set");
}
}
@@ -125,7 +125,7 @@ TAstNodePtr TAstBuilder::BuildMemberAccessor(const TRule_member_accessor& node,
break;
}
case TRule_member_accessor_TBlock2::ALT_NOT_SET:
- Y_FAIL("Alternative for 'member_accessor' rule is not set");
+ Y_ABORT("Alternative for 'member_accessor' rule is not set");
}
return new TMemberAccessNode(GetPos(node.GetToken1()), name, input);
@@ -178,7 +178,7 @@ TAstNodePtr TAstBuilder::BuildAccessorOp(const TRule_accessor_op& node, TAstNode
case TRule_accessor_op::kAltAccessorOp6:
return BuildMethod(node.GetAlt_accessor_op6().GetRule_method1(), input);
case TRule_accessor_op::ALT_NOT_SET:
- Y_FAIL("Alternative for 'accessor_op' rule is not set");
+ Y_ABORT("Alternative for 'accessor_op' rule is not set");
}
}
@@ -189,7 +189,7 @@ TAstNodePtr TAstBuilder::BuildPrimary(const TRule_primary& node) {
const auto& numberString = token.GetValue();
const double parsedValue = ParseDouble(numberString);
if (Y_UNLIKELY(std::isnan(parsedValue))) {
- Y_FAIL("Invalid number was allowed by JsonPath grammar");
+ Y_ABORT("Invalid number was allowed by JsonPath grammar");
}
if (Y_UNLIKELY(std::isinf(parsedValue))) {
Error(GetPos(token), "Number literal is infinity");
@@ -245,7 +245,7 @@ TAstNodePtr TAstBuilder::BuildPrimary(const TRule_primary& node) {
return new TFilterObjectNode(GetPos(token));
}
case TRule_primary::ALT_NOT_SET:
- Y_FAIL("Alternative for 'primary' rule is not set");
+ Y_ABORT("Alternative for 'primary' rule is not set");
}
}
@@ -322,7 +322,7 @@ TAstNodePtr TAstBuilder::BuildPredicateExpr(const TRule_predicate_expr& node) {
return BuildLikeRegexExpr(block.GetAlt2().GetRule_like_regex_expr1(), input);
}
case TRule_predicate_expr_TAlt1_TBlock1_TBlock2::ALT_NOT_SET:
- Y_FAIL("Alternative for inner block of 'predicate_expr' rule is not set");
+ Y_ABORT("Alternative for inner block of 'predicate_expr' rule is not set");
}
Y_UNREACHABLE();
}
@@ -332,7 +332,7 @@ TAstNodePtr TAstBuilder::BuildPredicateExpr(const TRule_predicate_expr& node) {
return new TExistsPredicateNode(GetPos(predicate.GetToken1()), input);
}
case TRule_predicate_expr::ALT_NOT_SET:
- Y_FAIL("Alternative for 'predicate' rule is not set");
+ Y_ABORT("Alternative for 'predicate' rule is not set");
}
Y_UNREACHABLE();
}
diff --git a/ydb/library/yql/minikql/jsonpath/value.cpp b/ydb/library/yql/minikql/jsonpath/value.cpp
index ac941d7e7e..ad77506d81 100644
--- a/ydb/library/yql/minikql/jsonpath/value.cpp
+++ b/ydb/library/yql/minikql/jsonpath/value.cpp
@@ -51,7 +51,7 @@ bool TArrayIterator::Next(TValue& value) {
}
return success;
} else {
- Y_FAIL("Unexpected variant case in Next");
+ Y_ABORT("Unexpected variant case in Next");
}
}
@@ -101,7 +101,7 @@ bool TObjectIterator::Next(TValue& key, TValue& value) {
}
return success;
} else {
- Y_FAIL("Unexpected variant case in Next");
+ Y_ABORT("Unexpected variant case in Next");
}
}
@@ -157,7 +157,7 @@ EValueType TValue::GetType() const {
case EEntryType::String:
return EValueType::String;
case EEntryType::Container:
- Y_FAIL("Logical error: TEntryCursor with Container type must be converted to TContainerCursor");
+ Y_ABORT("Logical error: TEntryCursor with Container type must be converted to TContainerCursor");
}
} else if (const auto* value = std::get_if<TContainerCursor>(&Value)) {
switch (value->GetType()) {
@@ -166,7 +166,7 @@ EValueType TValue::GetType() const {
case EContainerType::Object:
return EValueType::Object;
case EContainerType::TopLevelScalar:
- Y_FAIL("Logical error: TContainerCursor with TopLevelScalar type must be converted to TEntryCursor");
+ Y_ABORT("Logical error: TContainerCursor with TopLevelScalar type must be converted to TEntryCursor");
}
} else if (const auto* value = std::get_if<TUnboxedValue>(&Value)) {
switch (GetNodeType(*value)) {
@@ -187,7 +187,7 @@ EValueType TValue::GetType() const {
return EValueType::Null;
}
} else {
- Y_FAIL("Unexpected variant case in GetType");
+ Y_ABORT("Unexpected variant case in GetType");
}
}
@@ -233,7 +233,7 @@ double TValue::GetNumber() const {
return static_cast<double>(value->Get<ui64>());
}
} else {
- Y_FAIL("Unexpected variant case in GetNumber");
+ Y_ABORT("Unexpected variant case in GetNumber");
}
}
@@ -245,7 +245,7 @@ bool TValue::GetBool() const {
} else if (const auto* value = std::get_if<TUnboxedValue>(&Value)) {
return value->Get<bool>();
} else {
- Y_FAIL("Unexpected variant case in GetBool");
+ Y_ABORT("Unexpected variant case in GetBool");
}
}
@@ -257,7 +257,7 @@ const TStringBuf TValue::GetString() const {
} else if (const auto* value = std::get_if<TUnboxedValue>(&Value)) {
return value->AsStringRef();
} else {
- Y_FAIL("Unexpected variant case in GetString");
+ Y_ABORT("Unexpected variant case in GetString");
}
}
@@ -277,7 +277,7 @@ ui32 TValue::GetSize() const {
return value->GetDictLength();
}
} else {
- Y_FAIL("Unexpected variant case in GetString");
+ Y_ABORT("Unexpected variant case in GetString");
}
}
@@ -289,7 +289,7 @@ TValue TValue::GetElement(ui32 index) const {
} else if (const auto* value = std::get_if<TUnboxedValue>(&Value)) {
return TValue(value->GetElement(index));
} else {
- Y_FAIL("Unexpected variant case in GetString");
+ Y_ABORT("Unexpected variant case in GetString");
}
}
@@ -304,7 +304,7 @@ TArrayIterator TValue::GetArrayIterator() const {
}
return TArrayIterator(value->GetListIterator());
} else {
- Y_FAIL("Unexpected variant case in GetString");
+ Y_ABORT("Unexpected variant case in GetString");
}
}
@@ -332,7 +332,7 @@ TMaybe<TValue> TValue::Lookup(const TStringBuf key) const {
return Nothing();
}
} else {
- Y_FAIL("Unexpected variant case in GetString");
+ Y_ABORT("Unexpected variant case in GetString");
}
}
@@ -347,7 +347,7 @@ TObjectIterator TValue::GetObjectIterator() const {
}
return TObjectIterator(value->GetDictIterator());
} else {
- Y_FAIL("Unexpected variant case in GetString");
+ Y_ABORT("Unexpected variant case in GetString");
}
}
@@ -359,7 +359,7 @@ TUnboxedValue TValue::ConvertToUnboxedValue(const NUdf::IValueBuilder* valueBuil
} else if (const auto* value = std::get_if<TUnboxedValue>(&Value)) {
return *value;
} else {
- Y_FAIL("Unexpected variant case in ConvertToUnboxedValue");
+ Y_ABORT("Unexpected variant case in ConvertToUnboxedValue");
}
}
diff --git a/ydb/library/yql/minikql/mkql_node.cpp b/ydb/library/yql/minikql/mkql_node.cpp
index 74f73a96bf..3a4b947a6c 100644
--- a/ydb/library/yql/minikql/mkql_node.cpp
+++ b/ydb/library/yql/minikql/mkql_node.cpp
@@ -91,7 +91,7 @@ void TNode::Accept(INodeVisitor& visitor) {
#undef APPLY
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -115,7 +115,7 @@ bool TNode::Equals(const TNode& nodeToCompare) const {
#undef APPLY
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -133,7 +133,7 @@ void TNode::UpdateLinks(const THashMap<TNode*, TNode*>& links) {
#undef APPLY
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -151,7 +151,7 @@ TNode* TNode::CloneOnCallableWrite(const TTypeEnvironment& env) const {
#undef APPLY
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -169,7 +169,7 @@ void TNode::Freeze(const TTypeEnvironment& env) {
#undef APPLY
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -227,7 +227,7 @@ void TType::Accept(INodeVisitor& visitor) {
#undef APPLY
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -242,7 +242,7 @@ void TType::UpdateLinks(const THashMap<TNode*, TNode*>& links) {
#undef APPLY
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -257,7 +257,7 @@ TNode* TType::CloneOnCallableWrite(const TTypeEnvironment& env) const {
#undef APPLY
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -272,7 +272,7 @@ void TType::Freeze(const TTypeEnvironment& env) {
#undef APPLY
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -290,7 +290,7 @@ bool TTypeBase::IsSameType(const TTypeBase& typeToCompare) const {
#undef APPLY
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -305,7 +305,7 @@ size_t TTypeBase::CalcHash() const {
#undef APPLY
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -335,7 +335,7 @@ bool TType::IsConvertableTo(const TType& typeToCompare, bool ignoreTagged) const
#undef APPLY
default:
- Y_FAIL();
+ Y_ABORT();
}
}
@@ -2382,7 +2382,7 @@ EValueRepresentation GetValueRepresentation(const TType* type) {
return GetValueRepresentation(static_cast<const TTaggedType*>(type)->GetBaseType());
default:
- Y_FAIL("Unsupported type.");
+ Y_ABORT("Unsupported type.");
}
}
diff --git a/ydb/library/yql/minikql/mkql_program_builder.cpp b/ydb/library/yql/minikql/mkql_program_builder.cpp
index 25ed7fc97e..84541251f4 100644
--- a/ydb/library/yql/minikql/mkql_program_builder.cpp
+++ b/ydb/library/yql/minikql/mkql_program_builder.cpp
@@ -414,7 +414,7 @@ TRuntimeNode TProgramBuilder::AddMember(TRuntimeNode structObj, const std::strin
}
}
- Y_FAIL();
+ Y_ABORT();
}
TRuntimeNode TProgramBuilder::RemoveMember(TRuntimeNode structObj, const std::string_view& memberName, bool forced) {
diff --git a/ydb/library/yql/minikql/mkql_type_ops.cpp b/ydb/library/yql/minikql/mkql_type_ops.cpp
index e563b25b65..88daec0af8 100644
--- a/ydb/library/yql/minikql/mkql_type_ops.cpp
+++ b/ydb/library/yql/minikql/mkql_type_ops.cpp
@@ -1798,7 +1798,7 @@ NUdf::TUnboxedValuePod SimpleValueFromYson(NUdf::EDataSlot type, NUdf::TStringRe
case NUdf::EDataSlot::Datetime64:
case NUdf::EDataSlot::Timestamp64:
case NUdf::EDataSlot::Interval64:
- Y_FAIL("TODO");
+ Y_ABORT("TODO");
default:
;
@@ -1913,7 +1913,7 @@ NUdf::TUnboxedValuePod SimpleValueFromYson(NUdf::EDataSlot type, NUdf::TStringRe
case NUdf::EDataSlot::Datetime64:
case NUdf::EDataSlot::Timestamp64:
case NUdf::EDataSlot::Interval64:
- Y_FAIL("TODO");
+ Y_ABORT("TODO");
}
MKQL_ENSURE(false, "SimpleValueFromYson: Incorrect typeid: " << type);
diff --git a/ydb/library/yql/parser/pg_wrapper/comp_factory.cpp b/ydb/library/yql/parser/pg_wrapper/comp_factory.cpp
index 8c710c0c22..ee9ebd3834 100644
--- a/ydb/library/yql/parser/pg_wrapper/comp_factory.cpp
+++ b/ydb/library/yql/parser/pg_wrapper/comp_factory.cpp
@@ -3076,7 +3076,7 @@ void PgDestroyContext(const std::string_view& contextType, void* ctx) {
} else if (contextType == "WinAgg") {
TWithDefaultMiniKQLAlloc::FreeWithSize(ctx, sizeof(WindowAggState));
} else {
- Y_FAIL("Unsupported context type");
+ Y_ABORT("Unsupported context type");
}
}
diff --git a/ydb/library/yql/providers/common/codec/yql_codec.cpp b/ydb/library/yql/providers/common/codec/yql_codec.cpp
index 8d13e353c8..dc8dab8e93 100644
--- a/ydb/library/yql/providers/common/codec/yql_codec.cpp
+++ b/ydb/library/yql/providers/common/codec/yql_codec.cpp
@@ -489,7 +489,7 @@ TString DataValueToString(const NKikimr::NUdf::TUnboxedValuePod& value, const TD
}
}
- Y_FAIL("Unexpected");
+ Y_ABORT("Unexpected");
}
} //namespace
diff --git a/ydb/library/yql/providers/common/mkql/yql_provider_mkql.cpp b/ydb/library/yql/providers/common/mkql/yql_provider_mkql.cpp
index ab7e369f24..1bc952a82a 100644
--- a/ydb/library/yql/providers/common/mkql/yql_provider_mkql.cpp
+++ b/ydb/library/yql/providers/common/mkql/yql_provider_mkql.cpp
@@ -2018,7 +2018,7 @@ TMkqlCommonCallableCompiler::TShared::TShared() {
}
default: break;
}
- Y_FAIL("Wrong case.");
+ Y_ABORT("Wrong case.");
});
AddCallable("CombineByKey", [](const TExprNode& node, TMkqlBuildContext& ctx) {
diff --git a/ydb/library/yql/providers/common/provider/yql_table_lookup.cpp b/ydb/library/yql/providers/common/provider/yql_table_lookup.cpp
index 93b84f6db0..caa3ea11cd 100644
--- a/ydb/library/yql/providers/common/provider/yql_table_lookup.cpp
+++ b/ydb/library/yql/providers/common/provider/yql_table_lookup.cpp
@@ -567,7 +567,7 @@ TTableLookupBuilder CombineLookupsAnd(TExprBase row, const TVector<TString>& key
const TTableLookupBuilder* builders, size_t size, const TLookupContext& ctx)
{
switch (size) {
- case 0U: Y_FAIL("Wrong case");
+ case 0U: Y_ABORT("Wrong case");
case 1U: return *builders;
case 2U: {
const auto& left = builders[0U];
diff --git a/ydb/library/yql/providers/dq/task_runner/tasks_runner_pipe.cpp b/ydb/library/yql/providers/dq/task_runner/tasks_runner_pipe.cpp
index 2613229265..1910a860d0 100644
--- a/ydb/library/yql/providers/dq/task_runner/tasks_runner_pipe.cpp
+++ b/ydb/library/yql/providers/dq/task_runner/tasks_runner_pipe.cpp
@@ -629,11 +629,11 @@ public:
}
void Pause() override {
- Y_FAIL("Checkpoints are not supported");
+ Y_ABORT("Checkpoints are not supported");
}
void Resume() override {
- Y_FAIL("Checkpoints are not supported");
+ Y_ABORT("Checkpoints are not supported");
}
bool IsPaused() const override {
@@ -809,11 +809,11 @@ public:
}
void Pause() override {
- Y_FAIL("Checkpoints are not supported");
+ Y_ABORT("Checkpoints are not supported");
}
void Resume() override {
- Y_FAIL("Checkpoints are not supported");
+ Y_ABORT("Checkpoints are not supported");
}
bool IsPaused() const override {
@@ -1012,7 +1012,7 @@ public:
}
NKikimr::NMiniKQL::TType* GetOutputType() const override {
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
return nullptr;
}
@@ -1192,46 +1192,46 @@ public:
}
void Finish() override {
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
}
bool Pop(NDqProto::TWatermark& watermark) override {
Y_UNUSED(watermark);
- Y_FAIL("Watermarks are not supported");
+ Y_ABORT("Watermarks are not supported");
}
bool Pop(NDqProto::TCheckpoint& checkpoint) override {
Y_UNUSED(checkpoint);
- Y_FAIL("Checkpoints are not supported");
+ Y_ABORT("Checkpoints are not supported");
}
bool IsFull() const override {
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
}
void Push(NUdf::TUnboxedValue&& value) override {
Y_UNUSED(value);
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
}
void WidePush(NUdf::TUnboxedValue* values, ui32 count) override {
Y_UNUSED(values);
Y_UNUSED(count);
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
}
void Push(NDqProto::TWatermark&& watermark) override {
Y_UNUSED(watermark);
- Y_FAIL("Watermarks are not supported");
+ Y_ABORT("Watermarks are not supported");
}
void Push(NDqProto::TCheckpoint&& checkpoint) override {
Y_UNUSED(checkpoint);
- Y_FAIL("Checkpoints are not supported");
+ Y_ABORT("Checkpoints are not supported");
}
bool HasData() const override {
- Y_FAIL("Unimplemented");
+ Y_ABORT("Unimplemented");
}
private:
diff --git a/ydb/library/yql/providers/pq/provider/yql_pq_helpers.cpp b/ydb/library/yql/providers/pq/provider/yql_pq_helpers.cpp
index c488e37221..6befc10e7f 100644
--- a/ydb/library/yql/providers/pq/provider/yql_pq_helpers.cpp
+++ b/ydb/library/yql/providers/pq/provider/yql_pq_helpers.cpp
@@ -54,7 +54,7 @@ void FindYdsDbIdsForResolving(
TPqWrite write = maybePqWrite.Cast();
cluster = write.DataSink().Cluster().StringValue();
} else {
- Y_FAIL("Unrecognized pq node");
+ Y_ABORT("Unrecognized pq node");
}
YQL_CLOG(INFO, ProviderPq) << "Found cluster: " << cluster;
const auto& clusterCfgSettings = state->Configuration->ClustersConfigurationSettings;
diff --git a/ydb/library/yql/providers/yt/comp_nodes/dq/dq_yt_rpc_reader.cpp b/ydb/library/yql/providers/yt/comp_nodes/dq/dq_yt_rpc_reader.cpp
index 2bdd1e41a6..71dc3bc453 100644
--- a/ydb/library/yql/providers/yt/comp_nodes/dq/dq_yt_rpc_reader.cpp
+++ b/ydb/library/yql/providers/yt/comp_nodes/dq/dq_yt_rpc_reader.cpp
@@ -58,7 +58,7 @@ size_t TParallelFileInputState::GetTableIndex() const {
}
size_t TParallelFileInputState::GetRecordIndex() const {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
return CurrentRecord_; // returns 1-based index
}
diff --git a/ydb/library/yql/public/purecalc/common/transformations/align_output_schema.cpp b/ydb/library/yql/public/purecalc/common/transformations/align_output_schema.cpp
index b339488cbd..0edbb60942 100644
--- a/ydb/library/yql/public/purecalc/common/transformations/align_output_schema.cpp
+++ b/ydb/library/yql/public/purecalc/common/transformations/align_output_schema.cpp
@@ -63,7 +63,7 @@ namespace {
return ctx.MakeType<TStreamExprType>(OutputStruct_);
}
- Y_FAIL("Unexpected");
+ Y_ABORT("Unexpected");
}
const TTypeAnnotationNode* MakeExpectedItemType() {
@@ -82,7 +82,7 @@ namespace {
case ETypeAnnotationKind::List:
return actualType->Cast<TListExprType>()->GetItemType();
default:
- Y_FAIL("unexpected return type");
+ Y_ABORT("unexpected return type");
}
}
};
diff --git a/ydb/library/yql/public/purecalc/common/transformations/output_columns_filter.cpp b/ydb/library/yql/public/purecalc/common/transformations/output_columns_filter.cpp
index c6eaf01139..bddee99d92 100644
--- a/ydb/library/yql/public/purecalc/common/transformations/output_columns_filter.cpp
+++ b/ydb/library/yql/public/purecalc/common/transformations/output_columns_filter.cpp
@@ -40,7 +40,7 @@ namespace {
returnItemType = returnType->Cast<TListExprType>()->GetItemType();
break;
default:
- Y_FAIL("unexpected return type");
+ Y_ABORT("unexpected return type");
}
if (returnItemType->GetKind() != ETypeAnnotationKind::Struct) {
diff --git a/ydb/library/yql/public/purecalc/io_specs/protobuf/ut/test_spec.cpp b/ydb/library/yql/public/purecalc/io_specs/protobuf/ut/test_spec.cpp
index e95518534c..3b2a0e2051 100644
--- a/ydb/library/yql/public/purecalc/io_specs/protobuf/ut/test_spec.cpp
+++ b/ydb/library/yql/public/purecalc/io_specs/protobuf/ut/test_spec.cpp
@@ -186,7 +186,7 @@ public:
} else if (auto* p = std::get_if<2>(&value)) {
Queue2_->push_back(std::move(*(*p)->MutableX()));
} else {
- Y_FAIL("invalid variant alternative");
+ Y_ABORT("invalid variant alternative");
}
}
diff --git a/ydb/library/yql/public/udf/service/stub/udf_service.cpp b/ydb/library/yql/public/udf/service/stub/udf_service.cpp
index ec840f606c..cc20843ed9 100644
--- a/ydb/library/yql/public/udf/service/stub/udf_service.cpp
+++ b/ydb/library/yql/public/udf/service/stub/udf_service.cpp
@@ -1,10 +1,10 @@
#include <util/system/yassert.h>
#include <ydb/library/yql/public/udf/udf_value.h>
-extern "C" void* UdfAllocate(ui64) { Y_FAIL("Called UdfAllocate"); }
-extern "C" void UdfFree(const void*) { Y_FAIL("Called UdfFree"); }
-extern "C" void UdfTerminate(const char*) { Y_FAIL("Called UdfTerminate."); }
-extern "C" void UdfRegisterObject(::NYql::NUdf::TBoxedValue*) { Y_FAIL("Called UdfRegisterObject"); }
-extern "C" void UdfUnregisterObject(::NYql::NUdf::TBoxedValue*) { Y_FAIL("Called UdfUnregisterObject"); }
-extern "C" void* UdfAllocateWithSize(ui64) { Y_FAIL("Called UdfAllocateWithSize"); }
-extern "C" void UdfFreeWithSize(const void*, ui64) { Y_FAIL("Called UdfFreeWithSize"); }
+extern "C" void* UdfAllocate(ui64) { Y_ABORT("Called UdfAllocate"); }
+extern "C" void UdfFree(const void*) { Y_ABORT("Called UdfFree"); }
+extern "C" void UdfTerminate(const char*) { Y_ABORT("Called UdfTerminate."); }
+extern "C" void UdfRegisterObject(::NYql::NUdf::TBoxedValue*) { Y_ABORT("Called UdfRegisterObject"); }
+extern "C" void UdfUnregisterObject(::NYql::NUdf::TBoxedValue*) { Y_ABORT("Called UdfUnregisterObject"); }
+extern "C" void* UdfAllocateWithSize(ui64) { Y_ABORT("Called UdfAllocateWithSize"); }
+extern "C" void UdfFreeWithSize(const void*, ui64) { Y_ABORT("Called UdfFreeWithSize"); }
diff --git a/ydb/library/yql/public/udf/udf_type_inspection.h b/ydb/library/yql/public/udf/udf_type_inspection.h
index c1fb661d03..11089a3546 100644
--- a/ydb/library/yql/public/udf/udf_type_inspection.h
+++ b/ydb/library/yql/public/udf/udf_type_inspection.h
@@ -525,7 +525,7 @@ private:
inline void TStubTypeVisitor1::OnDataType(TDataTypeId typeId)
{
Y_UNUSED(typeId);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TStubTypeVisitor1::OnStruct(
@@ -534,31 +534,31 @@ inline void TStubTypeVisitor1::OnStruct(
const TType** membersTypes)
{
Y_UNUSED(membersCount); Y_UNUSED(membersNames); Y_UNUSED(membersTypes);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TStubTypeVisitor1::OnList(const TType* itemType)
{
Y_UNUSED(itemType);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TStubTypeVisitor1::OnOptional(const TType* itemType)
{
Y_UNUSED(itemType);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TStubTypeVisitor1::OnTuple(ui32 elementsCount, const TType** elementsTypes)
{
Y_UNUSED(elementsCount); Y_UNUSED(elementsTypes);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TStubTypeVisitor1::OnDict(const TType* keyType, const TType* valueType)
{
Y_UNUSED(keyType); Y_UNUSED(valueType);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TStubTypeVisitor1::OnCallable(
@@ -570,43 +570,43 @@ inline void TStubTypeVisitor1::OnCallable(
Y_UNUSED(returnType); Y_UNUSED(argsCount);
Y_UNUSED(argsTypes); Y_UNUSED(optionalArgsCount);
Y_UNUSED(payload);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TStubTypeVisitor1::OnVariant(const TType* underlyingType) {
Y_UNUSED(underlyingType);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TStubTypeVisitor1::OnStream(const TType* itemType) {
Y_UNUSED(itemType);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
#if UDF_ABI_COMPATIBILITY_VERSION_CURRENT >= UDF_ABI_COMPATIBILITY_VERSION(2, 13)
inline void TStubTypeVisitor2::OnDecimal(ui8, ui8) {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
#endif
#if UDF_ABI_COMPATIBILITY_VERSION_CURRENT >= UDF_ABI_COMPATIBILITY_VERSION(2, 15)
inline void TStubTypeVisitor3::OnResource(TStringRef) {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
#endif
#if UDF_ABI_COMPATIBILITY_VERSION_CURRENT >= UDF_ABI_COMPATIBILITY_VERSION(2, 21)
inline void TStubTypeVisitor4::OnTagged(const TType*, TStringRef) {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
#endif
#if UDF_ABI_COMPATIBILITY_VERSION_CURRENT >= UDF_ABI_COMPATIBILITY_VERSION(2, 25)
inline void TStubTypeVisitor5::OnPg(ui32) {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
#endif
#if UDF_ABI_COMPATIBILITY_VERSION_CURRENT >= UDF_ABI_COMPATIBILITY_VERSION(2, 26)
inline void TStubTypeVisitor6::OnBlock(const TType* itemType, bool isScalar) {
Y_UNUSED(itemType);
Y_UNUSED(isScalar);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
#endif
diff --git a/ydb/library/yql/public/udf/udf_type_ops.h b/ydb/library/yql/public/udf/udf_type_ops.h
index 60875dd4ef..fff4ffab43 100644
--- a/ydb/library/yql/public/udf/udf_type_ops.h
+++ b/ydb/library/yql/public/udf/udf_type_ops.h
@@ -135,17 +135,17 @@ inline THashType GetValueHash<EDataSlot::Uuid>(const TUnboxedValuePod& value) {
template <>
inline THashType GetValueHash<EDataSlot::Yson>(const TUnboxedValuePod&) {
- Y_FAIL("Yson isn't hashable.");
+ Y_ABORT("Yson isn't hashable.");
}
template <>
inline THashType GetValueHash<EDataSlot::Json>(const TUnboxedValuePod&) {
- Y_FAIL("Json isn't hashable.");
+ Y_ABORT("Json isn't hashable.");
}
template <>
inline THashType GetValueHash<EDataSlot::JsonDocument>(const TUnboxedValuePod&) {
- Y_FAIL("JsonDocument isn't hashable.");
+ Y_ABORT("JsonDocument isn't hashable.");
}
template <>
@@ -346,17 +346,17 @@ inline int CompareValues<EDataSlot::Uuid>(const TUnboxedValuePod& lhs, const TUn
template <>
inline int CompareValues<EDataSlot::Yson>(const TUnboxedValuePod&, const TUnboxedValuePod&) {
- Y_FAIL("Yson isn't comparable.");
+ Y_ABORT("Yson isn't comparable.");
}
template <>
inline int CompareValues<EDataSlot::Json>(const TUnboxedValuePod&, const TUnboxedValuePod&) {
- Y_FAIL("Json isn't comparable.");
+ Y_ABORT("Json isn't comparable.");
}
template <>
inline int CompareValues<EDataSlot::JsonDocument>(const TUnboxedValuePod&, const TUnboxedValuePod&) {
- Y_FAIL("JsonDocument isn't comparable.");
+ Y_ABORT("JsonDocument isn't comparable.");
}
template <>
@@ -536,17 +536,17 @@ inline bool EquateValues<EDataSlot::Uuid>(const TUnboxedValuePod& lhs, const TUn
template <>
inline bool EquateValues<EDataSlot::Yson>(const TUnboxedValuePod&, const TUnboxedValuePod&) {
- Y_FAIL("Yson isn't comparable.");
+ Y_ABORT("Yson isn't comparable.");
}
template <>
inline bool EquateValues<EDataSlot::Json>(const TUnboxedValuePod&, const TUnboxedValuePod&) {
- Y_FAIL("Json isn't comparable.");
+ Y_ABORT("Json isn't comparable.");
}
template <>
inline bool EquateValues<EDataSlot::JsonDocument>(const TUnboxedValuePod&, const TUnboxedValuePod&) {
- Y_FAIL("JsonDocument isn't comparable.");
+ Y_ABORT("JsonDocument isn't comparable.");
}
template <>
diff --git a/ydb/library/yql/public/udf/udf_ut_helpers.h b/ydb/library/yql/public/udf/udf_ut_helpers.h
index d318fd14f4..6be73131e7 100644
--- a/ydb/library/yql/public/udf/udf_ut_helpers.h
+++ b/ydb/library/yql/public/udf/udf_ut_helpers.h
@@ -67,7 +67,7 @@ private:
if (HasLength)
return Abs(To_ - From_);
- Y_FAIL("No length!");
+ Y_ABORT("No length!");
}
bool HasListItems() const override {
diff --git a/ydb/library/yql/public/udf/udf_value.h b/ydb/library/yql/public/udf/udf_value.h
index 071590050d..f6faf46938 100644
--- a/ydb/library/yql/public/udf/udf_value.h
+++ b/ydb/library/yql/public/udf/udf_value.h
@@ -482,7 +482,7 @@ struct TBoxedValueAccessor
#undef MAP_HANDLER
}
- Y_FAIL("unknown method");
+ Y_ABORT("unknown method");
}
template<EMethod Method> static uintptr_t GetMethodPtr();
@@ -989,17 +989,17 @@ namespace NUdf {
//////////////////////////////////////////////////////////////////////////////
inline bool TBoxedValueBase::HasFastListLength() const
{
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline ui64 TBoxedValueBase::GetListLength() const
{
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline ui64 TBoxedValueBase::GetEstimatedListLength() const
{
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline const TOpaqueListRepresentation* TBoxedValueBase::GetListRepresentation() const {
@@ -1030,7 +1030,7 @@ inline IBoxedValuePtr TBoxedValueBase::ToIndexDictImpl(const IValueBuilder& buil
inline ui64 TBoxedValueBase::GetDictLength() const
{
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline TBoxedValue::TBoxedValue()
@@ -1056,22 +1056,22 @@ inline void TBoxedValueLink::Unlink() {
inline TUnboxedValue TBoxedValueBase::GetDictIterator() const
{
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline TUnboxedValue TBoxedValueBase::GetListIterator() const
{
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline TUnboxedValue TBoxedValueBase::GetKeysIterator() const
{
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline TUnboxedValue TBoxedValueBase::GetPayloadsIterator() const
{
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline bool TBoxedValueBase::Skip()
@@ -1082,18 +1082,18 @@ inline bool TBoxedValueBase::Skip()
inline bool TBoxedValueBase::Next(TUnboxedValue&)
{
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline bool TBoxedValueBase::NextPair(TUnboxedValue&, TUnboxedValue&)
{
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline TUnboxedValue TBoxedValueBase::GetElement(ui32 index) const
{
Y_UNUSED(index);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline const TUnboxedValue* TBoxedValueBase::GetElements() const
@@ -1103,115 +1103,115 @@ inline const TUnboxedValue* TBoxedValueBase::GetElements() const
inline void TBoxedValueBase::Apply(IApplyContext&) const
{
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline TStringRef TBoxedValueBase::GetResourceTag() const {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void* TBoxedValueBase::GetResource()
{
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline bool TBoxedValueBase::HasListItems() const {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline bool TBoxedValueBase::HasDictItems() const {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline ui32 TBoxedValueBase::GetVariantIndex() const {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline bool TBoxedValueBase::Contains(const TUnboxedValuePod& key) const
{
Y_UNUSED(key);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline TUnboxedValue TBoxedValueBase::Lookup(const TUnboxedValuePod& key) const
{
Y_UNUSED(key);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline TUnboxedValue TBoxedValueBase::Run(const IValueBuilder* valueBuilder, const TUnboxedValuePod* args) const
{
Y_UNUSED(valueBuilder);
Y_UNUSED(args);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline TUnboxedValue TBoxedValueBase::GetVariantItem() const {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline EFetchStatus TBoxedValueBase::Fetch(TUnboxedValue& result) {
Y_UNUSED(result);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
#if UDF_ABI_COMPATIBILITY_VERSION_CURRENT >= UDF_ABI_COMPATIBILITY_VERSION(2, 3)
inline ui32 TBoxedValueBase::GetTraverseCount() const {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
return 0;
}
inline TUnboxedValue TBoxedValueBase::GetTraverseItem(ui32 index) const {
Y_UNUSED(index);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline TUnboxedValue TBoxedValueBase::Save() const {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TBoxedValueBase::Load(const TStringRef& state) {
Y_UNUSED(state);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
#endif
#if UDF_ABI_COMPATIBILITY_VERSION_CURRENT >= UDF_ABI_COMPATIBILITY_VERSION(2, 11)
inline void TBoxedValueBase::Push(const TUnboxedValuePod& value) {
Y_UNUSED(value);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
#endif
#if UDF_ABI_COMPATIBILITY_VERSION_CURRENT >= UDF_ABI_COMPATIBILITY_VERSION(2, 12)
inline bool TBoxedValueBase::IsSortedDict() const {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
#endif
#if UDF_ABI_COMPATIBILITY_VERSION_CURRENT >= UDF_ABI_COMPATIBILITY_VERSION(2, 19)
inline void TBoxedValueBase::Unused1() {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TBoxedValueBase::Unused2() {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TBoxedValueBase::Unused3() {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TBoxedValueBase::Unused4() {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TBoxedValueBase::Unused5() {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
inline void TBoxedValueBase::Unused6() {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
#endif
@@ -1219,7 +1219,7 @@ inline void TBoxedValueBase::Unused6() {
inline EFetchStatus TBoxedValueBase::WideFetch(TUnboxedValue *result, ui32 width) {
Y_UNUSED(result);
Y_UNUSED(width);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
#endif
diff --git a/ydb/library/yql/public/udf/udf_value_inl.h b/ydb/library/yql/public/udf/udf_value_inl.h
index bd8cda6079..7a411e0cfa 100644
--- a/ydb/library/yql/public/udf/udf_value_inl.h
+++ b/ydb/library/yql/public/udf/udf_value_inl.h
@@ -840,7 +840,7 @@ inline TStringRef TUnboxedValuePod::AsStringRef() const&
switch (Raw.GetMarkers()) {
case EMarkers::Embedded: return { Raw.Embedded.Buffer, Raw.Embedded.Size };
case EMarkers::String: return { Raw.String.Value->Data() + (Raw.String.Offset & 0xFFFFFF), Raw.String.Size };
- default: Y_FAIL("Value is not a string.");
+ default: Y_ABORT("Value is not a string.");
}
}
@@ -849,6 +849,6 @@ inline TMutableStringRef TUnboxedValuePod::AsStringRef() &
switch (Raw.GetMarkers()) {
case EMarkers::Embedded: return { Raw.Embedded.Buffer, Raw.Embedded.Size };
case EMarkers::String: return { Raw.String.Value->Data() + (Raw.String.Offset & 0xFFFFFF), Raw.String.Size };
- default: Y_FAIL("Value is not a string.");
+ default: Y_ABORT("Value is not a string.");
}
}
diff --git a/ydb/library/yql/sql/v0/builtin.cpp b/ydb/library/yql/sql/v0/builtin.cpp
index 86a17ac335..45ca76c2ca 100644
--- a/ydb/library/yql/sql/v0/builtin.cpp
+++ b/ydb/library/yql/sql/v0/builtin.cpp
@@ -311,7 +311,7 @@ public:
}
break;
default:
- Y_FAIL("Unexpected data slot");
+ Y_ABORT("Unexpected data slot");
}
if (NUdf::GetDataTypeInfo(*slot).Features & NUdf::TzDateType) {
diff --git a/ydb/library/yql/sql/v0/context.cpp b/ydb/library/yql/sql/v0/context.cpp
index 9cc01e0ce4..7be41266c1 100644
--- a/ydb/library/yql/sql/v0/context.cpp
+++ b/ydb/library/yql/sql/v0/context.cpp
@@ -230,7 +230,7 @@ TNodePtr TContext::GetBlockShortcut(const TString& alias) const {
return shortcutPair.second;
}
}
- Y_FAIL("Expected block shortcut exist");
+ Y_ABORT("Expected block shortcut exist");
}
TNodePtr TContext::GroundBlockShortcuts(NYql::TPosition pos, TNodePtr groundList) {
diff --git a/ydb/library/yql/sql/v0/select.cpp b/ydb/library/yql/sql/v0/select.cpp
index f8d313f462..fa6df6a42f 100644
--- a/ydb/library/yql/sql/v0/select.cpp
+++ b/ydb/library/yql/sql/v0/select.cpp
@@ -2122,7 +2122,7 @@ public:
TNodePtr Build(TContext& ctx) override {
Y_UNUSED(ctx);
- Y_FAIL("Unexpected call");
+ Y_ABORT("Unexpected call");
}
const TString* GetWindowName() const override {
diff --git a/ydb/library/yql/sql/v0/sql.cpp b/ydb/library/yql/sql/v0/sql.cpp
index 7d1b9fbd6f..a8234d06ce 100644
--- a/ydb/library/yql/sql/v0/sql.cpp
+++ b/ydb/library/yql/sql/v0/sql.cpp
@@ -63,7 +63,7 @@ inline TIdentifier GetKeywordId(TTranslation& ctx, const TRule_keyword_restricte
case TRule_keyword_restricted::kAltKeywordRestricted4:
return GetIdentifier(ctx, node.GetAlt_keyword_restricted4().GetRule_keyword_in_uncompat1());
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
}
@@ -76,7 +76,7 @@ inline TIdentifier GetKeywordId(TTranslation& ctx, const TRule_keyword& node) {
case TRule_keyword::kAltKeyword3:
return GetIdentifier(ctx, node.GetAlt_keyword3().GetRule_keyword_table_uncompat1());
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
}
@@ -96,7 +96,7 @@ static TString Id(const TRule_id& node, TTranslation& ctx) {
case TRule_id::kAltId2:
return GetKeyword(ctx, node.GetAlt_id2().GetRule_keyword1());
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
}
@@ -107,7 +107,7 @@ static TString Id(const TRule_id_schema& node, TTranslation& ctx) {
case TRule_id_schema::kAltIdSchema2:
return GetKeyword(ctx, node.GetAlt_id_schema2().GetRule_keyword_restricted1());
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
}
@@ -124,7 +124,7 @@ static TString Id(const TRule_id_table& node, TTranslation& ctx) {
case TRule_id_table::kAltIdTable2:
return GetKeyword(ctx, node.GetAlt_id_table2().GetRule_keyword_restricted1());
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
}
@@ -145,7 +145,7 @@ static TString Id(const TRule_id_expr& node, TTranslation& ctx) {
case TRule_id_expr::kAltIdExpr4:
return ctx.Token(node.GetAlt_id_expr4().GetRule_keyword_in_uncompat1().GetToken1());
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
}
@@ -158,7 +158,7 @@ static TString Id(const TRule_in_id_expr& node, TTranslation& ctx) {
case TRule_in_id_expr::kAltInIdExpr3:
return ctx.Token(node.GetAlt_in_id_expr3().GetRule_keyword_alter_uncompat1().GetToken1());
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
}
@@ -169,7 +169,7 @@ static TIdentifier IdEx(const TRule_id& node, TTranslation& ctx) {
case TRule_id::kAltId2:
return GetKeywordId(ctx, node.GetAlt_id2().GetRule_keyword1());
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
}
@@ -187,7 +187,7 @@ static TString IdOrString(const TRule_id_or_string& node, TTranslation& ctx, boo
default:
break;
}
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
static TString IdOrStringAsCluster(const TRule_id_or_string& node, TTranslation& ctx) {
@@ -242,7 +242,7 @@ static TDeferredAtom PureColumnOrNamed(const TRule_pure_column_or_named& node, T
case TRule_pure_column_or_named::kAltPureColumnOrNamed2:
return TDeferredAtom(ctx.Context().Pos(), IdOrString(node.GetAlt_pure_column_or_named2().GetRule_id_or_string1(), ctx));
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
}
@@ -285,7 +285,7 @@ std::pair<TString, bool> FlexType(const TRule_flex_type& node, TTranslation& ctx
return std::make_pair(stringType, false);
}
default:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -411,7 +411,7 @@ static TVector<TString> TableHintsImpl(const TRule_table_hints& node, TTranslati
break;
}
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
return hints;
}
@@ -495,7 +495,7 @@ static TTableRef SimpleTableRefImpl(const TRule_simple_table_ref& node, NSQLTran
break;
}
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
if (mode == NSQLTranslation::ESqlMode::LIMITED_VIEW && !cluster.empty()) {
@@ -944,7 +944,7 @@ TTableRef TSqlTranslation::TableRefImpl(const TRule_table_ref& node) {
break;
}
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
TVector<TString> hints = GetContextHints(Ctx);
if (node.HasBlock3()) {
@@ -1050,7 +1050,7 @@ bool TSqlCallExpr::Init(const TCallExprRule& node) {
}
break;
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
Pos = Ctx.Pos();
if (node.HasBlock3()) {
@@ -1082,7 +1082,7 @@ bool TSqlCallExpr::Init(const TCallExprRule& node) {
Args.push_back(BuildColumn(Pos, "*"));
break;
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
}
return true;
@@ -1312,7 +1312,7 @@ TNodePtr Literal(TContext& ctx, const TRule_unsigned_number& rule) {
case TRule_unsigned_number::kAltUnsignedNumber2:
return LiteralReal(ctx, rule.GetAlt_unsigned_number2().GetRule_real1());
default:
- Y_FAIL("Unsigned number: you should change implementation according grammar changes");
+ Y_ABORT("Unsigned number: you should change implementation according grammar changes");
}
}
@@ -1381,7 +1381,7 @@ TNodePtr TSqlExpression::UnaryExpr(const TUnarySubExprType& node) {
break;
}
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
bool isLookup = false;
for (auto& b: node.GetBlock2()) {
@@ -1424,7 +1424,7 @@ TNodePtr TSqlExpression::UnaryExpr(const TUnarySubExprType& node) {
break;
}
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
for (auto& b: dotBlock.GetBlock3()) {
auto expr = KeyExpr(b.GetRule_key_expr1());
@@ -1757,7 +1757,7 @@ bool TSqlExpression::SqlLambdaExprBody(TContext& ctx, const TRule_lambda_body& n
break;
}
default:
- Y_FAIL("SampleClause: does not correspond to grammar changes");
+ Y_ABORT("SampleClause: does not correspond to grammar changes");
}
}
@@ -1802,7 +1802,7 @@ TNodePtr TSqlExpression::SubExpr(const TRule_con_subexpr& node) {
return BuildUnaryOp(pos, opName, UnaryExpr(node.GetAlt_con_subexpr2().GetRule_unary_subexpr2()));
}
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
return nullptr;
}
@@ -2779,7 +2779,7 @@ TSourcePtr TSqlSelect::NamedSingleSource(const TRule_named_single_source& node)
}
break;
default:
- Y_FAIL("SampleClause: does not corresond to grammar changes");
+ Y_ABORT("SampleClause: does not corresond to grammar changes");
}
if (!singleSource->SetSamplingOptions(Ctx, pos, mode, samplingRateNode, samplingSeedNode)) {
Ctx.IncrementMonCounter("sql_errors", "IncorrectSampleClause");
@@ -3219,7 +3219,7 @@ bool TSqlSelect::FrameStart(const TRule_window_frame_start& rule, TNodePtr& node
return new TLiteralNumberNode<i32>(Ctx.Pos(), "Int32", ToString("0"));
return true;
default:
- Y_FAIL("FrameClause: frame start not corresond to grammar changes");
+ Y_ABORT("FrameClause: frame start not corresond to grammar changes");
}
}
@@ -3245,7 +3245,7 @@ bool TSqlSelect::FrameBound(const TRule_window_frame_bound& rule, TNodePtr& node
return true;
}
default:
- Y_FAIL("FrameClause: frame bound not corresond to grammar changes");
+ Y_ABORT("FrameClause: frame bound not corresond to grammar changes");
}
}
@@ -3278,7 +3278,7 @@ bool TSqlSelect::FrameClause(const TRule_window_frame_clause& rule, TMaybe<TFram
break;
}
default:
- Y_FAIL("FrameClause: frame extent not corresond to grammar changes");
+ Y_ABORT("FrameClause: frame extent not corresond to grammar changes");
}
if (rule.HasBlock3()) {
switch (rule.GetBlock3().GetRule_window_frame_exclusion1().Alt_case()) {
@@ -3295,7 +3295,7 @@ bool TSqlSelect::FrameClause(const TRule_window_frame_clause& rule, TMaybe<TFram
frameSpec.FrameExclusion = FrameExclNoOthers;
break;
default:
- Y_FAIL("FrameClause: frame exclusion not corresond to grammar changes");
+ Y_ABORT("FrameClause: frame exclusion not corresond to grammar changes");
}
}
frameSpecLink = frameSpec;
@@ -3566,7 +3566,7 @@ bool TGroupByClause::GroupingElement(const TRule_grouping_element& node) {
break;
}
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
return true;
}
@@ -3817,7 +3817,7 @@ TSourcePtr TSqlSelect::SelectKind(const TRule_select_kind& node, TPosition& sele
res = SelectCore(node.GetBlock2().GetAlt3().GetRule_select_core1(), settings, selectPos);
break;
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
return res;
@@ -4013,7 +4013,7 @@ TNodePtr TSqlIntoTable::Build(const TRule_into_table_stmt& node) {
modeTokens = {modeBlock.GetAlt6().GetToken1()};
break;
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
TVector<TString> modeStrings;
@@ -4074,7 +4074,7 @@ TNodePtr TSqlIntoTable::Build(const TRule_into_table_stmt& node) {
break;
}
default:
- Y_FAIL("You should change implementation according grammar changes");
+ Y_ABORT("You should change implementation according grammar changes");
}
}
diff --git a/ydb/library/yql/sql/v1/builtin.cpp b/ydb/library/yql/sql/v1/builtin.cpp
index 2f387e0115..a9f6eb563d 100644
--- a/ydb/library/yql/sql/v1/builtin.cpp
+++ b/ydb/library/yql/sql/v1/builtin.cpp
@@ -421,7 +421,7 @@ public:
}
break;
default:
- Y_FAIL("Unexpected data slot");
+ Y_ABORT("Unexpected data slot");
}
if (NUdf::GetDataTypeInfo(*slot).Features & NUdf::TzDateType) {
diff --git a/ydb/library/yql/sql/v1/select.cpp b/ydb/library/yql/sql/v1/select.cpp
index 8caeaca680..9f4ca93a06 100644
--- a/ydb/library/yql/sql/v1/select.cpp
+++ b/ydb/library/yql/sql/v1/select.cpp
@@ -2779,7 +2779,7 @@ public:
TNodePtr Build(TContext& ctx) override {
Y_UNUSED(ctx);
- Y_FAIL("Unexpected call");
+ Y_ABORT("Unexpected call");
}
const TString* GetWindowName() const override {
diff --git a/ydb/library/yql/sql/v1/sql_call_expr.cpp b/ydb/library/yql/sql/v1/sql_call_expr.cpp
index 0d2da4a34f..4167df3194 100644
--- a/ydb/library/yql/sql/v1/sql_call_expr.cpp
+++ b/ydb/library/yql/sql/v1/sql_call_expr.cpp
@@ -149,7 +149,7 @@ bool TSqlCallExpr::Init(const TRule_value_constructor& node) {
break;
}
case TRule_value_constructor::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
PositionalArgs = Args;
return true;
@@ -228,7 +228,7 @@ bool TSqlCallExpr::Init(const TRule_using_call_expr& node) {
break;
}
case TRule_using_call_expr::TBlock1::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
YQL_ENSURE(!DistinctAllowed);
UsingCallExpr = true;
@@ -344,7 +344,7 @@ bool TSqlCallExpr::Init(const TRule_invoke_expr& node) {
}
break;
case TRule_invoke_expr::TBlock2::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -373,7 +373,7 @@ bool TSqlCallExpr::Init(const TRule_invoke_expr& node) {
return false;
}
case TRule_invoke_expr_tail::TBlock1::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -409,7 +409,7 @@ bool TSqlCallExpr::Init(const TRule_invoke_expr& node) {
break;
}
case TRule_window_name_or_specification::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
Ctx.IncrementMonCounter("sql_features", "WindowFunctionOver");
}
diff --git a/ydb/library/yql/sql/v1/sql_expression.cpp b/ydb/library/yql/sql/v1/sql_expression.cpp
index a3cef70123..be0ee43c81 100644
--- a/ydb/library/yql/sql/v1/sql_expression.cpp
+++ b/ydb/library/yql/sql/v1/sql_expression.cpp
@@ -28,7 +28,7 @@ TNodePtr TSqlExpression::Build(const TRule_expr& node) {
return TypeNode(node.GetAlt_expr2().GetRule_type_name_composite1());
}
case TRule_expr::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -499,7 +499,7 @@ void TSqlExpression::AddJsonVariable(const TRule_json_variable& node, TVector<TN
break;
}
case TRule_json_variable_name::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
TNodePtr nameExpr = BuildQuotedAtom(namePos, rawName, nameFlags);
@@ -563,7 +563,7 @@ TNodePtr TSqlExpression::JsonValueCaseHandler(const TRule_json_case_handler& nod
mode = EJsonValueHandlerMode::DefaultValue;
return Build(node.GetAlt_json_case_handler3().GetBlock1().GetRule_expr2());
case TRule_json_case_handler::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -745,7 +745,7 @@ EJsonQueryHandler TSqlExpression::JsonQueryHandler(const TRule_json_query_handle
case TRule_json_query_handler::kAltJsonQueryHandler4:
return EJsonQueryHandler::EmptyObject;
case TRule_json_query_handler::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -815,7 +815,7 @@ TNodePtr TSqlExpression::JsonApiExpr(const TRule_json_api_expr& node) {
break;
}
case TRule_json_api_expr::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return result;
@@ -870,7 +870,7 @@ TNodePtr TSqlExpression::RowPatternVarAccess(const TString& alias, const TRule_u
}
break;
case TRule_unary_subexpr_suffix_TBlock1_TAlt3_TBlock1_TBlock2::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return TNodePtr{};
}
@@ -925,7 +925,7 @@ TNodePtr TSqlExpression::UnaryCasualExpr(const TUnaryCasualExprRule& node, const
break;
}
case TUnaryCasualExprRule::TBlock1::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
// bool onlyDots = true;
@@ -1087,7 +1087,7 @@ TNodePtr TSqlExpression::UnaryCasualExpr(const TUnaryCasualExprRule& node, const
break;
}
case TRule_unary_subexpr_suffix_TBlock1_TAlt3_TBlock1_TBlock2::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
if (lastExpr) {
@@ -1375,7 +1375,7 @@ TMaybe<TExprOrIdent> TSqlExpression::AtomExpr(const TRule_atom_expr& node, const
break;
}
case TRule_atom_expr::TAlt7::TBlock3::ALT_NOT_SET:
- Y_FAIL("Unsigned number: you should change implementation according to grammar changes");
+ Y_ABORT("Unsigned number: you should change implementation according to grammar changes");
}
result.Expr = BuildCallable(pos, module, name, {});
break;
@@ -1461,7 +1461,7 @@ TMaybe<TExprOrIdent> TSqlExpression::InAtomExpr(const TRule_in_atom_expr& node,
break;
}
case TRule_in_atom_expr::TAlt6::TBlock3::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
result.Expr = BuildCallable(pos, module, name, {});
break;
@@ -1598,7 +1598,7 @@ bool TSqlExpression::SqlLambdaExprBody(TContext& ctx, const TRule_lambda_body& n
break;
}
case TRule_lambda_stmt::ALT_NOT_SET:
- Y_FAIL("SampleClause: does not correspond to grammar changes");
+ Y_ABORT("SampleClause: does not correspond to grammar changes");
}
}
@@ -1645,7 +1645,7 @@ TNodePtr TSqlExpression::SubExpr(const TRule_con_subexpr& node, const TTrailingQ
return expr ? expr->ApplyUnaryOp(Ctx, pos, opName) : expr;
}
case TRule_con_subexpr::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return nullptr;
}
@@ -2133,7 +2133,7 @@ TNodePtr TSqlExpression::BinOpList(const TRule_bit_subexpr& node, TGetNode getNo
break;
}
case TRule_neq_subexpr_TBlock2_TBlock1::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
partialResult = BuildBinaryOp(Ctx, Ctx.Pos(), opName, partialResult, SubExpr(getNode(*begin), (begin + 1 == end) ? tail : TTrailingQuestions{}));
@@ -2202,7 +2202,7 @@ TNodePtr TSqlExpression::BinOpList(const TRule_eq_subexpr& node, TGetNode getNod
break;
}
case TRule_cond_expr::TAlt5::TBlock1::TBlock1::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
partialResult = BuildBinaryOp(Ctx, Ctx.Pos(), opName, partialResult, SubExpr(getNode(*begin), (begin + 1 == end) ? tail : TTrailingQuestions{}));
diff --git a/ydb/library/yql/sql/v1/sql_group_by.cpp b/ydb/library/yql/sql/v1/sql_group_by.cpp
index dfdcbd0516..89561d75a2 100644
--- a/ydb/library/yql/sql/v1/sql_group_by.cpp
+++ b/ydb/library/yql/sql/v1/sql_group_by.cpp
@@ -275,7 +275,7 @@ bool TGroupByClause::GroupingElement(const TRule_grouping_element& node, EGroupB
break;
}
case TRule_grouping_element::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return true;
}
diff --git a/ydb/library/yql/sql/v1/sql_into_tables.cpp b/ydb/library/yql/sql/v1/sql_into_tables.cpp
index fefedfadca..b04b515f1b 100644
--- a/ydb/library/yql/sql/v1/sql_into_tables.cpp
+++ b/ydb/library/yql/sql/v1/sql_into_tables.cpp
@@ -57,7 +57,7 @@ TNodePtr TSqlIntoTable::Build(const TRule_into_table_stmt& node) {
modeTokens = {modeBlock.GetAlt6().GetToken1()};
break;
case TRule_into_table_stmt_TBlock1::AltCase::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
TVector<TString> modeStrings;
@@ -135,7 +135,7 @@ TNodePtr TSqlIntoTable::Build(const TRule_into_table_stmt& node) {
break;
}
case TRule_simple_table_ref_core::AltCase::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
bool withTruncate = false;
diff --git a/ydb/library/yql/sql/v1/sql_match_recognize.cpp b/ydb/library/yql/sql/v1/sql_match_recognize.cpp
index a4b9aaabb1..058d3d7c1c 100644
--- a/ydb/library/yql/sql/v1/sql_match_recognize.cpp
+++ b/ydb/library/yql/sql/v1/sql_match_recognize.cpp
@@ -181,7 +181,7 @@ std::pair<TPosition, ERowsPerMatch> TSqlMatchRecognizeClause::ParseRowsPerMatch(
ERowsPerMatch::AllRows
};
case TRule_row_pattern_rows_per_match::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -222,7 +222,7 @@ std::pair<TPosition, TAfterMatchSkipTo> TSqlMatchRecognizeClause::ParseAfterMatc
}
};
case TRule_row_pattern_skip_to::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -265,7 +265,7 @@ NYql::NMatchRecognize::TRowPatternTerm TSqlMatchRecognizeClause::ParsePatternTer
<< "PERMUTE is not supported yet"; //https://st.yandex-team.ru/YQL-16228
break;
case TRule_row_pattern_primary::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
uint64_t quantityMin = 1;
uint64_t quantityMax = 1;
@@ -307,7 +307,7 @@ NYql::NMatchRecognize::TRowPatternTerm TSqlMatchRecognizeClause::ParsePatternTer
quantityMin = quantityMax = FromString(quantifier.GetAlt_row_pattern_quantifier5().GetRule_integer2().GetToken1().GetValue());
break;
case TRule_row_pattern_quantifier::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
term.push_back(NYql::NMatchRecognize::TRowPatternFactor{std::move(primary), quantityMin, quantityMax, greedy, output});
diff --git a/ydb/library/yql/sql/v1/sql_query.cpp b/ydb/library/yql/sql/v1/sql_query.cpp
index c13ea1e460..95765885d1 100644
--- a/ydb/library/yql/sql/v1/sql_query.cpp
+++ b/ydb/library/yql/sql/v1/sql_query.cpp
@@ -458,7 +458,7 @@ bool TSqlQuery::Statement(TVector<TNodePtr>& blocks, const TRule_sql_stmt_core&
break;
}
case TRule_alter_user_stmt_TBlock4::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
AddStatementToBlocks(blocks, stmt);
@@ -543,7 +543,7 @@ bool TSqlQuery::Statement(TVector<TNodePtr>& blocks, const TRule_sql_stmt_core&
break;
}
case TRule_alter_group_stmt_TBlock4::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
AddStatementToBlocks(blocks, stmt);
@@ -2357,7 +2357,7 @@ namespace {
case TRule_type_name_or_bind::kAltTypeNameOrBind2:
return false;
case TRule_type_name_or_bind::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
result["NAME"] = TDeferredAtom(pos, columnName);
@@ -2393,7 +2393,7 @@ bool TSqlQuery::ParseTableStoreFeatures(std::map<TString, TDeferredAtom> & resul
break;
}
case TRule_alter_table_store_action::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return true;
}
diff --git a/ydb/library/yql/sql/v1/sql_select.cpp b/ydb/library/yql/sql/v1/sql_select.cpp
index 7d1247f174..79479da0f7 100644
--- a/ydb/library/yql/sql/v1/sql_select.cpp
+++ b/ydb/library/yql/sql/v1/sql_select.cpp
@@ -394,7 +394,7 @@ bool TSqlSelect::SelectTerm(TVector<TNodePtr>& terms, const TRule_result_column&
implicitLabel = true;
break;
case TRule_result_column_TAlt2_TBlock2::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
term->SetLabel(label, Ctx.Pos());
term->MarkImplicitLabel(implicitLabel);
@@ -547,7 +547,7 @@ TSourcePtr TSqlSelect::NamedSingleSource(const TRule_named_single_source& node,
}
break;
case TRule_named_single_source_TBlock3_TBlock1::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
singleSource->SetLabel(label);
}
@@ -601,7 +601,7 @@ TSourcePtr TSqlSelect::NamedSingleSource(const TRule_named_single_source& node,
}
break;
case TRule_named_single_source::TBlock4::ALT_NOT_SET:
- Y_FAIL("SampleClause: does not corresond to grammar changes");
+ Y_ABORT("SampleClause: does not corresond to grammar changes");
}
if (!singleSource->SetSamplingOptions(Ctx, pos, mode, samplingRateNode, samplingSeedNode)) {
Ctx.IncrementMonCounter("sql_errors", "IncorrectSampleClause");
@@ -638,7 +638,7 @@ bool TSqlSelect::ColumnName(TVector<TNodePtr>& keys, const TRule_without_column_
columnName = Id(node.GetAlt_without_column_name2().GetRule_an_id_without1(), *this);
break;
case TRule_without_column_name::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
if (columnName.empty()) {
@@ -1298,7 +1298,7 @@ TSqlSelect::TSelectKindResult TSqlSelect::SelectKind(const TRule_select_kind& no
break;
}
case TRule_select_kind_TBlock2::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return res;
@@ -1361,7 +1361,7 @@ TSourcePtr TSqlSelect::Build(const TRule& node, TPosition pos, TSelectKindResult
Ctx.Error() << "INTERSECT and EXCEPT are not implemented yet";
return nullptr;
case TRule_select_op::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
diff --git a/ydb/library/yql/sql/v1/sql_translation.cpp b/ydb/library/yql/sql/v1/sql_translation.cpp
index 7e7d746fd7..27f06d1c66 100644
--- a/ydb/library/yql/sql/v1/sql_translation.cpp
+++ b/ydb/library/yql/sql/v1/sql_translation.cpp
@@ -44,7 +44,7 @@ TIdentifier GetKeywordId(TTranslation& ctx, const TRule_keyword& node) {
case TRule_keyword::kAltKeyword8:
return GetIdentifier(ctx, node.GetAlt_keyword8().GetRule_keyword_hint_uncompat1());
case TRule_keyword::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -56,7 +56,7 @@ TString Id(const TRule_id& node, TTranslation& ctx) {
case TRule_id::kAltId2:
return GetKeyword(ctx, node.GetAlt_id2().GetRule_keyword1());
case TRule_id::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -67,7 +67,7 @@ TString Id(const TRule_id_or_type& node, TTranslation& ctx) {
case TRule_id_or_type::kAltIdOrType2:
return ctx.Identifier(node.GetAlt_id_or_type2().GetRule_type_id1().GetToken1());
case TRule_id_or_type::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -78,7 +78,7 @@ TString Id(const TRule_id_as_compat& node, TTranslation& ctx) {
case TRule_id_as_compat::kAltIdAsCompat2:
return ctx.Token(node.GetAlt_id_as_compat2().GetRule_keyword_as_compat1().GetToken1());
case TRule_id_as_compat::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -89,7 +89,7 @@ TString Id(const TRule_an_id_as_compat& node, TTranslation& ctx) {
case TRule_an_id_as_compat::kAltAnIdAsCompat2:
return IdContentFromString(ctx.Context(), ctx.Token(node.GetAlt_an_id_as_compat2().GetToken1()));
case TRule_an_id_as_compat::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -121,7 +121,7 @@ TString Id(const TRule_id_schema& node, TTranslation& ctx) {
case TRule_id_schema::kAltIdSchema7:
return GetKeyword(ctx, node.GetAlt_id_schema7().GetRule_keyword_hint_uncompat1());
case TRule_id_schema::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -133,7 +133,7 @@ TString Id(const TRule_an_id_or_type& node, TTranslation& ctx) {
case TRule_an_id_or_type::kAltAnIdOrType2:
return IdContentFromString(ctx.Context(), ctx.Token(node.GetAlt_an_id_or_type2().GetToken1()));
case TRule_an_id_or_type::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -170,7 +170,7 @@ TString Id(const TRule_id_table& node, TTranslation& ctx) {
case TRule_id_table::kAltIdTable7:
return GetKeyword(ctx, node.GetAlt_id_table7().GetRule_keyword_hint_uncompat1());
case TRule_id_table::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -182,7 +182,7 @@ TString Id(const TRule_an_id_table& node, TTranslation& ctx) {
case TRule_an_id_table::kAltAnIdTable2:
return IdContentFromString(ctx.Context(), ctx.Token(node.GetAlt_an_id_table2().GetToken1()));
case TRule_an_id_table::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -193,7 +193,7 @@ TString Id(const TRule_id_table_or_type& node, TTranslation& ctx) {
case TRule_id_table_or_type::kAltIdTableOrType2:
return ctx.Identifier(node.GetAlt_id_table_or_type2().GetRule_type_id1().GetToken1());
case TRule_id_table_or_type::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -223,7 +223,7 @@ TString Id(const TRule_id_expr& node, TTranslation& ctx) {
case TRule_id_expr::kAltIdExpr6:
return GetKeyword(ctx, node.GetAlt_id_expr6().GetRule_keyword_hint_uncompat1());
case TRule_id_expr::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -260,7 +260,7 @@ TString Id(const TRule_id_expr_in& node, TTranslation& ctx) {
case TRule_id_expr_in::kAltIdExprIn5:
return GetKeyword(ctx, node.GetAlt_id_expr_in5().GetRule_keyword_hint_uncompat1());
case TRule_id_expr_in::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -294,7 +294,7 @@ TString Id(const TRule_id_window& node, TTranslation& ctx) {
case TRule_id_window::kAltIdWindow8:
return GetKeyword(ctx, node.GetAlt_id_window8().GetRule_keyword_hint_uncompat1());
case TRule_id_window::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -326,7 +326,7 @@ TString Id(const TRule_id_without& node, TTranslation& ctx) {
case TRule_id_without::kAltIdWithout7:
return GetKeyword(ctx, node.GetAlt_id_without7().GetRule_keyword_hint_uncompat1());
case TRule_id_without::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -360,7 +360,7 @@ TString Id(const TRule_id_hint& node, TTranslation& ctx) {
case TRule_id_hint::kAltIdHint8:
return GetKeyword(ctx, node.GetAlt_id_hint8().GetRule_keyword_window_uncompat1());
case TRule_id_hint::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -372,7 +372,7 @@ TString Id(const TRule_an_id& node, TTranslation& ctx) {
case TRule_an_id::kAltAnId2:
return IdContentFromString(ctx.Context(), ctx.Token(node.GetAlt_an_id2().GetToken1()));
case TRule_an_id::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -384,7 +384,7 @@ TString Id(const TRule_an_id_schema& node, TTranslation& ctx) {
case TRule_an_id_schema::kAltAnIdSchema2:
return IdContentFromString(ctx.Context(), ctx.Token(node.GetAlt_an_id_schema2().GetToken1()));
case TRule_an_id_schema::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -396,7 +396,7 @@ TString Id(const TRule_an_id_expr& node, TTranslation& ctx) {
case TRule_an_id_expr::kAltAnIdExpr2:
return IdContentFromString(ctx.Context(), ctx.Token(node.GetAlt_an_id_expr2().GetToken1()));
case TRule_an_id_expr::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -408,7 +408,7 @@ TString Id(const TRule_an_id_window& node, TTranslation& ctx) {
case TRule_an_id_window::kAltAnIdWindow2:
return IdContentFromString(ctx.Context(), ctx.Token(node.GetAlt_an_id_window2().GetToken1()));
case TRule_an_id_window::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -420,7 +420,7 @@ TString Id(const TRule_an_id_without& node, TTranslation& ctx) {
case TRule_an_id_without::kAltAnIdWithout2:
return IdContentFromString(ctx.Context(), ctx.Token(node.GetAlt_an_id_without2().GetToken1()));
case TRule_an_id_without::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -432,7 +432,7 @@ TString Id(const TRule_an_id_hint& node, TTranslation& ctx) {
case TRule_an_id_hint::kAltAnIdHint2:
return IdContentFromString(ctx.Context(), ctx.Token(node.GetAlt_an_id_hint2().GetToken1()));
case TRule_an_id_hint::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -444,7 +444,7 @@ TString Id(const TRule_an_id_pure& node, TTranslation& ctx) {
case TRule_an_id_pure::kAltAnIdPure2:
return IdContentFromString(ctx.Context(), ctx.Token(node.GetAlt_an_id_pure2().GetToken1()));
case TRule_an_id_pure::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -455,7 +455,7 @@ TViewDescription Id(const TRule_view_name& node, TTranslation& ctx) {
case TRule_view_name::kAltViewName2:
return {"", true};
case TRule_view_name::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -473,7 +473,7 @@ bool NamedNodeImpl(const TRule_bind_parameter& node, TString& name, TTranslation
id = ctx.Token(node.GetBlock2().GetAlt3().GetToken1());
break;
case TRule_bind_parameter::TBlock2::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
auto dollar = ctx.Token(node.GetToken1());
if (id.empty()) {
@@ -534,7 +534,7 @@ TDeferredAtom PureColumnOrNamed(const TRule_pure_column_or_named& node, TTransla
case TRule_pure_column_or_named::kAltPureColumnOrNamed2:
return TDeferredAtom(ctx.Context().Pos(), Id(node.GetAlt_pure_column_or_named2().GetRule_an_id1(), ctx));
case TRule_pure_column_or_named::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -572,7 +572,7 @@ bool CreateTableIndex(const TRule_table_index& node, TTranslation& ctx, TVector<
} else if (token == "async") {
indexes.back().Type = TIndexDescription::EType::GlobalAsync;
} else {
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
}
@@ -581,7 +581,7 @@ bool CreateTableIndex(const TRule_table_index& node, TTranslation& ctx, TVector<
ctx.AltNotImplemented("local", indexType);
return false;
case TRule_table_index_type::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
if (node.HasBlock4()) {
@@ -912,7 +912,7 @@ bool TSqlTranslation::ClusterExpr(const TRule_cluster_expr& node, bool allowWild
return true;
}
case TRule_cluster_expr::TBlock2::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -1142,7 +1142,7 @@ bool TSqlTranslation::TableRefImpl(const TRule_table_ref& node, TTableRef& resul
return true;
}
case TRule_table_ref::TBlock3::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
MergeHints(hints, tableHints);
@@ -2280,7 +2280,7 @@ TNodePtr TSqlTranslation::IntegerOrBind(const TRule_integer_or_bind& node) {
return atom.Build();
}
case TRule_integer_or_bind::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -2314,7 +2314,7 @@ TNodePtr TSqlTranslation::TypeNameTag(const TRule_type_name_tag& node) {
return atom.Build();
}
case TRule_type_name_tag::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -2426,7 +2426,7 @@ TNodePtr TSqlTranslation::TypeNodeOrBind(const TRule_type_name_or_bind& node) {
return GetNamedNode(bindName);
}
case TRule_type_name_or_bind::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -2455,7 +2455,7 @@ TNodePtr TSqlTranslation::TypeNode(const TRule_type_name& node) {
break;
}
case TRule_type_name::TAlt2::TBlock1::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return AddOptionals(result, alt.GetBlock2().size());
@@ -2525,7 +2525,7 @@ TNodePtr TSqlTranslation::TypeNode(const TRule_type_name_composite& node) {
case TRule_type_name_tuple::TBlock2::kAlt2:
break;
case TRule_type_name_tuple::TBlock2::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
result = new TAstListNodeImpl(pos, items);
@@ -2567,7 +2567,7 @@ TNodePtr TSqlTranslation::TypeNode(const TRule_type_name_composite& node) {
case TRule_type_name_struct::TBlock2::kAlt2:
break;
case TRule_type_name_struct::TBlock2::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
result = new TAstListNodeImpl(pos, items);
@@ -2753,7 +2753,7 @@ TNodePtr TSqlTranslation::TypeNode(const TRule_type_name_composite& node) {
break;
}
case TRule_type_name_composite_TBlock1::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return AddOptionals(result, node.GetBlock2().size());
@@ -2916,7 +2916,7 @@ bool TSqlTranslation::TableHintImpl(const TRule_table_hint& rule, TTableHints& h
break;
}
case TRule_table_hint_TAlt1_TBlock2_TBlock2::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
hints[id] = hint_val;
@@ -3000,7 +3000,7 @@ bool TSqlTranslation::TableHintImpl(const TRule_table_hint& rule, TTableHints& h
}
case TRule_table_hint::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return true;
@@ -3024,7 +3024,7 @@ TMaybe<TTableHints> TSqlTranslation::TableHintsImpl(const TRule_table_hints& nod
break;
}
case TRule_table_hints::TBlock2::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
if (hasErrors) {
return Nothing();
@@ -3109,7 +3109,7 @@ bool TSqlTranslation::SimpleTableRefCoreImpl(const TRule_simple_table_ref_core&
break;
}
case TRule_simple_table_ref_core::AltCase::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return result.Keys != nullptr;
@@ -3309,7 +3309,7 @@ bool TSqlTranslation::RoleNameClause(const TRule_role_name& node, TDeferredAtom&
break;
}
case TRule_role_name::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
if (auto literalName = result.GetLiteral(); literalName && !allowSystemRoles) {
@@ -3451,7 +3451,7 @@ bool TSqlTranslation::PermissionNameClause(const TRule_permission_id& node, TDef
break;
}
case TRule_permission_id::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return true;
}
@@ -3475,7 +3475,7 @@ bool TSqlTranslation::PermissionNameClause(const TRule_permission_name& node, TD
break;
}
case TRule_permission_name::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return true;
}
@@ -3504,7 +3504,7 @@ bool TSqlTranslation::PermissionNameClause(const TRule_permission_name_target& n
break;
}
case TRule_permission_name_target::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
if (withGrantOption) {
result.emplace_back(Ctx.Pos(), "grant");
@@ -3523,7 +3523,7 @@ TString TSqlTranslation::FrameSettingsToString(EFrameSettings settings, bool isU
case FrameFollowing:
result = "FOLLOWING"; break;
default:
- Y_FAIL("Unexpected frame settings");
+ Y_ABORT("Unexpected frame settings");
}
return (isUnbounded ? "UNBOUNDED " : "") + result;
@@ -3642,7 +3642,7 @@ bool TSqlTranslation::FrameBound(const TRule_window_frame_bound& rule, TFrameBou
bound->Pos = GetPos(block.GetAlt2().GetToken1());
break;
case TRule_window_frame_bound_TAlt2_TBlock1::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
const TString settingToken = to_lower(Token(rule.GetAlt_window_frame_bound2().GetToken2()));
@@ -3651,12 +3651,12 @@ bool TSqlTranslation::FrameBound(const TRule_window_frame_bound& rule, TFrameBou
} else if (settingToken == "following") {
bound->Settings = FrameFollowing;
} else {
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
break;
}
case TRule_window_frame_bound::ALT_NOT_SET:
- Y_FAIL("FrameClause: frame bound not corresond to grammar changes");
+ Y_ABORT("FrameClause: frame bound not corresond to grammar changes");
}
return true;
}
@@ -3701,7 +3701,7 @@ bool TSqlTranslation::FrameClause(const TRule_window_frame_clause& rule, TFrameS
break;
}
case TRule_window_frame_extent::ALT_NOT_SET:
- Y_FAIL("FrameClause: frame extent not correspond to grammar changes");
+ Y_ABORT("FrameClause: frame extent not correspond to grammar changes");
}
YQL_ENSURE(frameSpec->FrameBegin);
YQL_ENSURE(frameSpec->FrameEnd);
@@ -3725,7 +3725,7 @@ bool TSqlTranslation::FrameClause(const TRule_window_frame_clause& rule, TFrameS
frameSpec->FrameExclusion = FrameExclNone;
break;
case TRule_window_frame_exclusion::ALT_NOT_SET:
- Y_FAIL("FrameClause: frame exclusion not correspond to grammar changes");
+ Y_ABORT("FrameClause: frame exclusion not correspond to grammar changes");
}
}
@@ -3939,7 +3939,7 @@ TNodePtr TSqlTranslation::DoStatement(const TRule_do_stmt& stmt, bool makeLambda
return BuildLambda(Ctx.Pos(), params, blockNode);
}
case TRule_do_stmt_TBlock2::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
}
@@ -4156,7 +4156,7 @@ bool TSqlTranslation::ObjectFeatureValueClause(const TRule_object_feature_value&
break;
}
case TRule_object_feature_value::ALT_NOT_SET:
- Y_FAIL("You should change implementation according to grammar changes");
+ Y_ABORT("You should change implementation according to grammar changes");
}
return true;
}
diff --git a/ydb/library/yql/tools/mrjob/mrjob.cpp b/ydb/library/yql/tools/mrjob/mrjob.cpp
index 5cdd262eea..bfa8f234e7 100644
--- a/ydb/library/yql/tools/mrjob/mrjob.cpp
+++ b/ydb/library/yql/tools/mrjob/mrjob.cpp
@@ -25,5 +25,5 @@ int main(int argc, const char *argv[]) {
return -1;
}
- Y_FAIL("This binary should not be called directly");
+ Y_ABORT("This binary should not be called directly");
}
diff --git a/ydb/library/yql/udfs/common/histogram/histogram_udf.cpp b/ydb/library/yql/udfs/common/histogram/histogram_udf.cpp
index 5390817aca..92ea95fcdd 100644
--- a/ydb/library/yql/udfs/common/histogram/histogram_udf.cpp
+++ b/ydb/library/yql/udfs/common/histogram/histogram_udf.cpp
@@ -69,7 +69,7 @@ namespace {
}
void Add(const THistoRec&) override {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
protected:
@@ -107,7 +107,7 @@ namespace {
}
void Add(const THistoRec&) override {
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
};
diff --git a/ydb/library/yql/udfs/common/hyperscan/hyperscan_udf.cpp b/ydb/library/yql/udfs/common/hyperscan/hyperscan_udf.cpp
index bc9251897f..3ad8633dcc 100644
--- a/ydb/library/yql/udfs/common/hyperscan/hyperscan_udf.cpp
+++ b/ydb/library/yql/udfs/common/hyperscan/hyperscan_udf.cpp
@@ -105,7 +105,7 @@ namespace {
}
}
- Y_FAIL("Unexpected");
+ Y_ABORT("Unexpected");
}
THyperscanMatch(
diff --git a/ydb/library/yql/udfs/common/json2/sql_value.h b/ydb/library/yql/udfs/common/json2/sql_value.h
index 319fd855e8..92bad97211 100644
--- a/ydb/library/yql/udfs/common/json2/sql_value.h
+++ b/ydb/library/yql/udfs/common/json2/sql_value.h
@@ -26,7 +26,7 @@ namespace NJson2Udf {
TUnboxedValue TryConvertJson(const IValueBuilder* valueBuilder, const TUnboxedValue& source) {
Y_UNUSED(valueBuilder);
Y_UNUSED(source);
- Y_FAIL("Unsupported type");
+ Y_ABORT("Unsupported type");
}
template <>
@@ -240,7 +240,7 @@ namespace NJson2Udf {
template <EDataSlot InputType, class TValueType, bool ForceConvert>
TStringRef TSqlValue<InputType, TValueType, ForceConvert>::Name() {
- Y_FAIL("Unknown name");
+ Y_ABORT("Unknown name");
}
template<>
diff --git a/ydb/library/yql/udfs/common/re2/re2_udf.cpp b/ydb/library/yql/udfs/common/re2/re2_udf.cpp
index cfc301479d..37c35e67cd 100644
--- a/ydb/library/yql/udfs/common/re2/re2_udf.cpp
+++ b/ydb/library/yql/udfs/common/re2/re2_udf.cpp
@@ -120,7 +120,7 @@ namespace {
case EMode::FIND_AND_CONSUME:
return findAndconsume;
}
- Y_FAIL("Unexpected mode");
+ Y_ABORT("Unexpected mode");
}
TRe2Udf(
@@ -222,7 +222,7 @@ namespace {
return valueBuilder->NewList(matches.data(), matches.size());
}
}
- Y_FAIL("Unexpected mode");
+ Y_ABORT("Unexpected mode");
} else {
switch (Mode) {
case MATCH:
@@ -237,7 +237,7 @@ namespace {
case FIND_AND_CONSUME:
return valueBuilder->NewEmptyList();
}
- Y_FAIL("Unexpected mode");
+ Y_ABORT("Unexpected mode");
}
} catch (const std::exception& e) {
UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).data());
diff --git a/ydb/library/yql/udfs/common/url_base/lib/url_query.cpp b/ydb/library/yql/udfs/common/url_base/lib/url_query.cpp
index f78d5d738c..f2b8774747 100644
--- a/ydb/library/yql/udfs/common/url_base/lib/url_query.cpp
+++ b/ydb/library/yql/udfs/common/url_base/lib/url_query.cpp
@@ -177,7 +177,7 @@ namespace NUrlUdf {
break;
}
default:
- Y_FAIL("Current first parameter type is not yet implemented");
+ Y_ABORT("Current first parameter type is not yet implemented");
}
return valueBuilder->NewString(ret);
}
diff --git a/ydb/library/yverify_stream/yverify_stream.h b/ydb/library/yverify_stream/yverify_stream.h
index 3e9c47a141..7a7337d00d 100644
--- a/ydb/library/yverify_stream/yverify_stream.h
+++ b/ydb/library/yverify_stream/yverify_stream.h
@@ -4,5 +4,5 @@
#include <util/string/builder.h>
#define Y_VERIFY_S(expr, msg) Y_ABORT_UNLESS(expr, "%s", (TStringBuilder() << msg).c_str())
-#define Y_FAIL_S(msg) Y_FAIL("%s", (TStringBuilder() << msg).c_str())
+#define Y_FAIL_S(msg) Y_ABORT("%s", (TStringBuilder() << msg).c_str())
#define Y_VERIFY_DEBUG_S(expr, msg) Y_DEBUG_ABORT_UNLESS(expr, "%s", (TStringBuilder() << msg).c_str())
diff --git a/ydb/public/lib/deprecated/kicli/kikimr.cpp b/ydb/public/lib/deprecated/kicli/kikimr.cpp
index 2c2761538f..93198bcb3c 100644
--- a/ydb/public/lib/deprecated/kicli/kikimr.cpp
+++ b/ydb/public/lib/deprecated/kicli/kikimr.cpp
@@ -292,7 +292,7 @@ public:
case NMsgBusProxy::MTYPE_CLIENT_LOGIN_REQUEST:
return ExecuteGRpcRequest<NMsgBusProxy::TBusLoginRequest, NMsgBusProxy::TBusResponse>(&NGRpcProxy::TGRpcClient::LoginRequest, promise, request);
default:
- Y_FAIL("%s", (TStringBuilder() << "unexpected message type# " << type).data());
+ Y_ABORT("%s", (TStringBuilder() << "unexpected message type# " << type).data());
}
}
diff --git a/ydb/public/lib/idx_test/idx_test_loader.cpp b/ydb/public/lib/idx_test/idx_test_loader.cpp
index 38db1e29f9..55bf290131 100644
--- a/ydb/public/lib/idx_test/idx_test_loader.cpp
+++ b/ydb/public/lib/idx_test/idx_test_loader.cpp
@@ -602,7 +602,7 @@ private:
return GetCheckIndexOp()(i + 1, session, in, mainResultSet, err);
} catch (...) {
- Y_FAIL("Unexpected exception");
+ Y_ABORT("Unexpected exception");
return FinishTxAsync(result);
}
});
diff --git a/ydb/public/lib/validation/main.cpp b/ydb/public/lib/validation/main.cpp
index 42dfbb8ed4..af4191e6a4 100644
--- a/ydb/public/lib/validation/main.cpp
+++ b/ydb/public/lib/validation/main.cpp
@@ -137,7 +137,7 @@ class TFieldGenerator: public TThrRefBase {
break;
default:
- Y_FAIL("Unknown limit type");
+ Y_ABORT("Unknown limit type");
}
printer->Print(vars, "return false;\n");
diff --git a/ydb/public/lib/ydb_cli/common/print_operation.cpp b/ydb/public/lib/ydb_cli/common/print_operation.cpp
index 98bbdeeea5..3a24d739b0 100644
--- a/ydb/public/lib/ydb_cli/common/print_operation.cpp
+++ b/ydb/public/lib/ydb_cli/common/print_operation.cpp
@@ -242,7 +242,7 @@ namespace {
break;
default:
- Y_FAIL("Unknown format");
+ Y_ABORT("Unknown format");
}
}
@@ -270,7 +270,7 @@ namespace {
break;
default:
- Y_FAIL("Unknown format");
+ Y_ABORT("Unknown format");
}
}
diff --git a/ydb/public/sdk/cpp/client/draft/ydb_dynamic_config.cpp b/ydb/public/sdk/cpp/client/draft/ydb_dynamic_config.cpp
index 09c07eebbf..643af15fd9 100644
--- a/ydb/public/sdk/cpp/client/draft/ydb_dynamic_config.cpp
+++ b/ydb/public/sdk/cpp/client/draft/ydb_dynamic_config.cpp
@@ -299,7 +299,7 @@ public:
case Ydb::DynamicConfig::YamlLabelExt::EMPTY:
return TVerboseResolveConfigResult::TLabel::EType::Empty;
default:
- Y_FAIL("unexpected enum value");
+ Y_ABORT("unexpected enum value");
}
};
diff --git a/ydb/public/sdk/cpp/client/impl/ydb_internal/db_driver_state/endpoint_pool.cpp b/ydb/public/sdk/cpp/client/impl/ydb_internal/db_driver_state/endpoint_pool.cpp
index e8b6ad328b..4fd8c503be 100644
--- a/ydb/public/sdk/cpp/client/impl/ydb_internal/db_driver_state/endpoint_pool.cpp
+++ b/ydb/public/sdk/cpp/client/impl/ydb_internal/db_driver_state/endpoint_pool.cpp
@@ -21,7 +21,7 @@ TEndpointPool::~TEndpointPool() {
future.Wait();
}
} catch (...) {
- Y_FAIL("Unexpected exception from endpoint pool dtor");
+ Y_ABORT("Unexpected exception from endpoint pool dtor");
}
}
diff --git a/ydb/public/sdk/cpp/client/ydb_coordination/coordination.cpp b/ydb/public/sdk/cpp/client/ydb_coordination/coordination.cpp
index 4a88bbad07..de526ecbed 100644
--- a/ydb/public/sdk/cpp/client/ydb_coordination/coordination.cpp
+++ b/ydb/public/sdk/cpp/client/ydb_coordination/coordination.cpp
@@ -1401,7 +1401,7 @@ private:
bool ProcessResponse(const IProcessor::TPtr& processor) {
switch (Response->response_case()) {
case TResponse::RESPONSE_NOT_SET: {
- Y_FAIL("Unexpected empty response received");
+ Y_ABORT("Unexpected empty response received");
}
case TResponse::kPing: {
const auto& source = Response->ping();
@@ -1701,7 +1701,7 @@ private:
break;
}
- Y_FAIL("Unsupported message received");
+ Y_ABORT("Unsupported message received");
}
void OnSessionStartTimeout(IQueueClientContextPtr context) {
diff --git a/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/read_session.ipp b/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/read_session.ipp
index 2091b4af47..7aa03c7701 100644
--- a/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/read_session.ipp
+++ b/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/read_session.ipp
@@ -105,12 +105,12 @@ void TPartitionStreamImpl<UseMigrationProtocol>::ConfirmDestroy() {
template<bool UseMigrationProtocol>
void TPartitionStreamImpl<UseMigrationProtocol>::StopReading() {
- Y_FAIL("Not implemented"); // TODO
+ Y_ABORT("Not implemented"); // TODO
}
template<bool UseMigrationProtocol>
void TPartitionStreamImpl<UseMigrationProtocol>::ResumeReading() {
- Y_FAIL("Not implemented"); // TODO
+ Y_ABORT("Not implemented"); // TODO
}
template<bool UseMigrationProtocol>
@@ -1995,7 +1995,7 @@ TReadSessionEventsQueue<UseMigrationProtocol>::GetEventImpl(size_t& maxByteSize,
auto partitionStream = front.PartitionStream;
if (!partitionStream->HasEvents()) {
- Y_FAIL("can't be here - got events in global queue, but nothing in partition queue");
+ Y_ABORT("can't be here - got events in global queue, but nothing in partition queue");
}
TMaybe<typename TAReadSessionEvent<UseMigrationProtocol>::TEvent> event;
diff --git a/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session.h b/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session.h
index 404b9444e5..7db726d73d 100644
--- a/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session.h
+++ b/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session.h
@@ -50,7 +50,7 @@ public:
// Empty maybe - block till all work is done. Otherwise block at most at closeTimeout duration.
bool Close(TDuration closeTimeout = TDuration::Max()) override;
- TWriterCounters::TPtr GetCounters() override {Y_FAIL("Unimplemented"); } //ToDo - unimplemented;
+ TWriterCounters::TPtr GetCounters() override {Y_ABORT("Unimplemented"); } //ToDo - unimplemented;
~TWriteSession(); // will not call close - destroy everything without acks
diff --git a/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session_impl.cpp b/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session_impl.cpp
index 6f69d996d7..5ed79a72e3 100644
--- a/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session_impl.cpp
+++ b/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session_impl.cpp
@@ -812,7 +812,7 @@ bool TWriteSessionImpl::CleanupOnAcknowledged(ui64 sequenceNumber) {
DumpState();
Cerr << "State on ack with seqNo " << sequenceNumber << " is:\n";
Cerr << StateStr << "\n\n";
- Y_FAIL("got unknown ack");
+ Y_ABORT("got unknown ack");
}
const auto& sentFront = SentOriginalMessages.front();
@@ -1079,7 +1079,7 @@ bool TWriteSessionImpl::IsReadyToSendNextImpl() {
Cerr << " State before restart was:\n" << StateStr << "\n\n";
DumpState();
Cerr << " State after restart is:\n" << StateStr << "\n\n";
- Y_FAIL("Lost original message(s)");
+ Y_ABORT("Lost original message(s)");
}
return PackedMessagesToSend.top().Offset == OriginalMessagesToSend.front().SeqNo;
diff --git a/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session_impl.h b/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session_impl.h
index 573a91e32c..9bd95ea7cd 100644
--- a/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session_impl.h
+++ b/ydb/public/sdk/cpp/client/ydb_persqueue_core/impl/write_session_impl.h
@@ -319,7 +319,7 @@ public:
// Empty maybe - block till all work is done. Otherwise block at most at closeTimeout duration.
bool Close(TDuration closeTimeout = TDuration::Max()) override;
- TWriterCounters::TPtr GetCounters() override {Y_FAIL("Unimplemented"); } //ToDo - unimplemented;
+ TWriterCounters::TPtr GetCounters() override {Y_ABORT("Unimplemented"); } //ToDo - unimplemented;
~TWriteSessionImpl(); // will not call close - destroy everything without acks
diff --git a/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/compress_executor_ut.cpp b/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/compress_executor_ut.cpp
index 9fc0106996..e0f86f352b 100644
--- a/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/compress_executor_ut.cpp
+++ b/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/compress_executor_ut.cpp
@@ -46,11 +46,11 @@ Y_UNIT_TEST_SUITE(CompressExecutor) {
if (waitEventFuture.HasValue()) {
auto event = *writer->GetEvent(true);
if(std::holds_alternative<TWriteSessionEvent::TReadyToAcceptEvent>(event)) {
- Y_FAIL("ANother ready to accept!");
+ Y_ABORT("ANother ready to accept!");
}
if(std::holds_alternative<TSessionClosedEvent>(event)) {
Cerr << "Session closed: " << std::get<TSessionClosedEvent>(event).DebugString() << "\n";
- Y_FAIL("");
+ Y_ABORT("");
}
}
UNIT_ASSERT(!waitEventFuture.HasValue());
diff --git a/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/ut_utils/ut_utils.h b/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/ut_utils/ut_utils.h
index 898ff9b516..3c035438af 100644
--- a/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/ut_utils/ut_utils.h
+++ b/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/ut_utils/ut_utils.h
@@ -359,7 +359,7 @@ public:
(iter->second)();
} catch (...) {
Cerr << "Failed on compression call: " << CurrentExceptionMessage() << Endl;
- Y_FAIL();
+ Y_ABORT();
}
Cerr << "Compression of " << id << " Done\n";
Tasks.erase(iter);
diff --git a/ydb/public/sdk/cpp/client/ydb_persqueue_public/codecs/codecs.cpp b/ydb/public/sdk/cpp/client/ydb_persqueue_public/codecs/codecs.cpp
index bc2de2a1c5..b8e22cf488 100644
--- a/ydb/public/sdk/cpp/client/ydb_persqueue_public/codecs/codecs.cpp
+++ b/ydb/public/sdk/cpp/client/ydb_persqueue_public/codecs/codecs.cpp
@@ -61,7 +61,7 @@ THolder<IOutputStream> CreateCoder(ECodec codec, TBuffer& result, int quality) {
case ECodec::ZSTD:
return MakeHolder<TZstdToStringCompressor>(result, quality);
default:
- Y_FAIL("NOT IMPLEMENTED CODEC TYPE");
+ Y_ABORT("NOT IMPLEMENTED CODEC TYPE");
}
}
diff --git a/ydb/public/sdk/cpp/client/ydb_topic/codecs/codecs.cpp b/ydb/public/sdk/cpp/client/ydb_topic/codecs/codecs.cpp
index 44252130fd..d13da23707 100644
--- a/ydb/public/sdk/cpp/client/ydb_topic/codecs/codecs.cpp
+++ b/ydb/public/sdk/cpp/client/ydb_topic/codecs/codecs.cpp
@@ -61,7 +61,7 @@ THolder<IOutputStream> CreateCoder(ECodec codec, TBuffer& result, int quality) {
case ECodec::ZSTD:
return MakeHolder<TZstdToStringCompressor>(result, quality);
default:
- Y_FAIL("NOT IMPLEMENTED CODEC TYPE");
+ Y_ABORT("NOT IMPLEMENTED CODEC TYPE");
}
}
diff --git a/ydb/public/sdk/cpp/client/ydb_topic/impl/topic.cpp b/ydb/public/sdk/cpp/client/ydb_topic/impl/topic.cpp
index 84e2a37e49..a37508ec5f 100644
--- a/ydb/public/sdk/cpp/client/ydb_topic/impl/topic.cpp
+++ b/ydb/public/sdk/cpp/client/ydb_topic/impl/topic.cpp
@@ -182,7 +182,7 @@ const TVector<TConsumer>& TTopicDescription::GetConsumers() const {
void TTopicDescription::SerializeTo(Ydb::Topic::CreateTopicRequest& request) const {
Y_UNUSED(request);
- Y_FAIL("Not implemented");
+ Y_ABORT("Not implemented");
}
const Ydb::Topic::DescribeTopicResult& TTopicDescription::GetProto() const {
diff --git a/ydb/public/sdk/cpp/client/ydb_topic/impl/write_session.h b/ydb/public/sdk/cpp/client/ydb_topic/impl/write_session.h
index 342e0c52e7..13fec07c33 100644
--- a/ydb/public/sdk/cpp/client/ydb_topic/impl/write_session.h
+++ b/ydb/public/sdk/cpp/client/ydb_topic/impl/write_session.h
@@ -47,7 +47,7 @@ public:
// Empty maybe - block till all work is done. Otherwise block at most at closeTimeout duration.
bool Close(TDuration closeTimeout = TDuration::Max()) override;
- TWriterCounters::TPtr GetCounters() override {Y_FAIL("Unimplemented"); } //ToDo - unimplemented;
+ TWriterCounters::TPtr GetCounters() override {Y_ABORT("Unimplemented"); } //ToDo - unimplemented;
~TWriteSession(); // will not call close - destroy everything without acks
diff --git a/ydb/public/sdk/cpp/client/ydb_topic/impl/write_session_impl.h b/ydb/public/sdk/cpp/client/ydb_topic/impl/write_session_impl.h
index c3cf7af744..90eb3b409f 100644
--- a/ydb/public/sdk/cpp/client/ydb_topic/impl/write_session_impl.h
+++ b/ydb/public/sdk/cpp/client/ydb_topic/impl/write_session_impl.h
@@ -333,7 +333,7 @@ public:
TMaybe<TInstant> createTimestamp = Nothing()) override {
Y_UNUSED(seqNo);
Y_UNUSED(createTimestamp);
- Y_FAIL("Do not use this method");
+ Y_ABORT("Do not use this method");
};
void WriteEncoded(TContinuationToken&& continuationToken, TWriteMessage&& message) override;
@@ -342,7 +342,7 @@ public:
TMaybe<ui64> seqNo = Nothing(), TMaybe<TInstant> createTimestamp = Nothing()) override {
Y_UNUSED(seqNo);
Y_UNUSED(createTimestamp);
- Y_FAIL("Do not use this method");
+ Y_ABORT("Do not use this method");
}
@@ -351,7 +351,7 @@ public:
// Empty maybe - block till all work is done. Otherwise block at most at closeTimeout duration.
bool Close(TDuration closeTimeout = TDuration::Max()) override;
- TWriterCounters::TPtr GetCounters() override {Y_FAIL("Unimplemented"); } //ToDo - unimplemented;
+ TWriterCounters::TPtr GetCounters() override {Y_ABORT("Unimplemented"); } //ToDo - unimplemented;
~TWriteSessionImpl(); // will not call close - destroy everything without acks
diff --git a/ydb/services/cms/cms_ut.cpp b/ydb/services/cms/cms_ut.cpp
index 7d5234715e..6504895907 100644
--- a/ydb/services/cms/cms_ut.cpp
+++ b/ydb/services/cms/cms_ut.cpp
@@ -439,7 +439,7 @@ Y_UNIT_TEST_SUITE(TGRpcCmsTest) {
UNIT_ASSERT_VALUES_EQUAL(zone.labels().at("any_data_center"), "true");
UNIT_ASSERT_VALUES_EQUAL(zone.labels().at("collocation"), "disabled");
} else {
- Y_FAIL("unexpected zone");
+ Y_ABORT("unexpected zone");
}
zones.erase(zone.name());
}
diff --git a/ydb/services/datastreams/datastreams_ut.cpp b/ydb/services/datastreams/datastreams_ut.cpp
index c939a1572a..cfa8e46023 100644
--- a/ydb/services/datastreams/datastreams_ut.cpp
+++ b/ydb/services/datastreams/datastreams_ut.cpp
@@ -1667,7 +1667,7 @@ Y_UNIT_TEST_SUITE(DataStreams) {
UNIT_ASSERT(false);
break;
} else {
- Y_FAIL("not a data!");
+ Y_ABORT("not a data!");
}
}
}
diff --git a/ydb/services/kesus/grpc_service.cpp b/ydb/services/kesus/grpc_service.cpp
index 8088701f9c..4941d82902 100644
--- a/ydb/services/kesus/grpc_service.cpp
+++ b/ydb/services/kesus/grpc_service.cpp
@@ -150,7 +150,7 @@ private:
cFunc(IContext::TEvNotifiedWhenDone::EventType, PassAway);
default:
- Y_FAIL("Unexpected event 0x%x for TGRpcSessionActor", ev->GetTypeRewrite());
+ Y_ABORT("Unexpected event 0x%x for TGRpcSessionActor", ev->GetTypeRewrite());
}
}
@@ -215,7 +215,7 @@ private:
hFunc(TEvKesusProxy::TEvAttachProxyActor, HandleResolve);
default:
- Y_FAIL("Unexpected event 0x%x for TGRpcSessionActor", ev->GetTypeRewrite());
+ Y_ABORT("Unexpected event 0x%x for TGRpcSessionActor", ev->GetTypeRewrite());
}
}
@@ -248,7 +248,7 @@ private:
hFunc(TEvKesus::TEvAttachSessionResult, HandleAttach);
default:
- Y_FAIL("Unexpected event 0x%x for TGRpcSessionActor", ev->GetTypeRewrite());
+ Y_ABORT("Unexpected event 0x%x for TGRpcSessionActor", ev->GetTypeRewrite());
}
}
@@ -574,7 +574,7 @@ private:
hFunc(TEvPrivate::TEvPingScheduled, Handle);
default:
- Y_FAIL("Unexpected event 0x%x for TGRpcSessionActor", ev->GetTypeRewrite());
+ Y_ABORT("Unexpected event 0x%x for TGRpcSessionActor", ev->GetTypeRewrite());
}
}
diff --git a/ydb/services/lib/actors/pq_schema_actor.h b/ydb/services/lib/actors/pq_schema_actor.h
index d187990754..1520420401 100644
--- a/ydb/services/lib/actors/pq_schema_actor.h
+++ b/ydb/services/lib/actors/pq_schema_actor.h
@@ -250,7 +250,7 @@ namespace NKikimr::NGRpcProxy::V1 {
switch (ev->GetTypeRewrite()) {
hFunc(TEvTxProxySchemeCache::TEvNavigateKeySetResult, Handle);
default:
- Y_FAIL();
+ Y_ABORT();
}
}
diff --git a/ydb/services/persqueue_v1/actors/schema_actors.cpp b/ydb/services/persqueue_v1/actors/schema_actors.cpp
index e0653d6d12..b232a1cf87 100644
--- a/ydb/services/persqueue_v1/actors/schema_actors.cpp
+++ b/ydb/services/persqueue_v1/actors/schema_actors.cpp
@@ -803,7 +803,7 @@ void TDescribeTopicActor::ApplyResponse(TTabletInfo& tabletInfo, NKikimr::TEvPer
Y_UNUSED(ctx);
Y_UNUSED(tabletInfo);
Y_UNUSED(ev);
- Y_FAIL("");
+ Y_ABORT("");
}
@@ -1339,7 +1339,7 @@ void TDescribePartitionActor::HandleCacheNavigateResponse(
}
void TDescribePartitionActor::ApplyResponse(TTabletInfo&, NKikimr::TEvPersQueue::TEvReadSessionsInfoResponse::TPtr&, const TActorContext&) {
- Y_FAIL("");
+ Y_ABORT("");
}
void TDescribePartitionActor::ApplyResponse(TTabletInfo& tabletInfo, NKikimr::TEvPersQueue::TEvStatusResponse::TPtr& ev, const TActorContext&) {
diff --git a/ydb/services/persqueue_v1/actors/schema_actors.h b/ydb/services/persqueue_v1/actors/schema_actors.h
index 22f464da96..083c341540 100644
--- a/ydb/services/persqueue_v1/actors/schema_actors.h
+++ b/ydb/services/persqueue_v1/actors/schema_actors.h
@@ -397,11 +397,11 @@ public:
void ApplyResponse(TTabletInfo&,
NKikimr::TEvPersQueue::TEvStatusResponse::TPtr&,
const TActorContext&) override {
- Y_FAIL();
+ Y_ABORT();
}
virtual void ApplyResponse(TTabletInfo&, TEvPersQueue::TEvReadSessionsInfoResponse::TPtr&,
const TActorContext&) override {
- Y_FAIL();
+ Y_ABORT();
}
void Finalize();
diff --git a/ydb/services/persqueue_v1/actors/write_session_actor.ipp b/ydb/services/persqueue_v1/actors/write_session_actor.ipp
index ceac3dd80a..380ed18155 100644
--- a/ydb/services/persqueue_v1/actors/write_session_actor.ipp
+++ b/ydb/services/persqueue_v1/actors/write_session_actor.ipp
@@ -67,7 +67,7 @@ ECodec<UseMigrationProtocol> CodecByName(const TString& codec) {
if constexpr (!UseMigrationProtocol) {
return (i32)Ydb::Topic::CODEC_UNSPECIFIED;
}
- Y_FAIL("Unsupported codec enum");
+ Y_ABORT("Unsupported codec enum");
}
return codecIt->second;
}
@@ -936,7 +936,7 @@ void TWriteSessionActor<UseMigrationProtocol>::Handle(NKqp::TEvKqp::TEvQueryResp
LastSourceIdUpdate = ctx.Now();
}
} else {
- Y_FAIL("Wrong state");
+ Y_ABORT("Wrong state");
}
}
diff --git a/ydb/services/persqueue_v1/ut/pq_data_writer.h b/ydb/services/persqueue_v1/ut/pq_data_writer.h
index 34e7f3bf94..8671f08834 100644
--- a/ydb/services/persqueue_v1/ut/pq_data_writer.h
+++ b/ydb/services/persqueue_v1/ut/pq_data_writer.h
@@ -55,7 +55,7 @@ public:
if (!stream->Read(&resp)) {
auto status = stream->Finish();
Cerr << (int)status.error_code() << " " << status.error_message() << "\n";
- Y_FAIL("");
+ Y_ABORT("");
UNIT_ASSERT(error);
}
Cerr << "=== Got response: " << resp.ShortDebugString() << Endl;
diff --git a/ydb/services/ydb/sdk_credprovider_ut/dummy_provider_ut.cpp b/ydb/services/ydb/sdk_credprovider_ut/dummy_provider_ut.cpp
index b1a8b91cb3..d22ead7168 100644
--- a/ydb/services/ydb/sdk_credprovider_ut/dummy_provider_ut.cpp
+++ b/ydb/services/ydb/sdk_credprovider_ut/dummy_provider_ut.cpp
@@ -79,7 +79,7 @@ public:
// Just for compatibility with old interface
std::shared_ptr<ICredentialsProvider> CreateProvider() const override {
- Y_FAIL();
+ Y_ABORT();
return {};
}
diff --git a/ydb/services/ydb/ydb_index_ut.cpp b/ydb/services/ydb/ydb_index_ut.cpp
index 7692b3a838..6256ce2c51 100644
--- a/ydb/services/ydb/ydb_index_ut.cpp
+++ b/ydb/services/ydb/ydb_index_ut.cpp
@@ -159,7 +159,7 @@ Y_UNIT_TEST_SUITE(YdbIndexTable) {
driver.Stop(true);
} catch (const std::exception& ex) {
Cerr << ex.what() << Endl;
- Y_FAIL("test failed with exception");
+ Y_ABORT("test failed with exception");
}
}