Skip to content

[DocDB] Better error message when an Index Backfill fails due to an index being deleted #20178

Closed
@amitanandaiyer

Description

@amitanandaiyer

Jira Link: DB-9124

Description

The error message is confusing and needlessly wordy.

E1117 05:16:25.220403 105225 backfill_index.cc:986] Backfill Index Table(s) { test_indexes_034c74byvaluev7_idx7, test_indexes_034c74byvaluev5_idx5 } failed to backfill the index: [221de77288c647c58a137a8de1e8d678, 0a83facffeea4d0596f1ba36170145ae] due to Invalid argument (yb/tserver/              tablet_service.cc:735): Tablet has a different schema 1005 vs 1001. Requested index is not ready to backfill. IndexMap: 0x0000169e3be53c98 -> [{7b3d3582c15543e480e81e7cec4c3058, table_id: "7b3d3582c15543e480e81e7cec4c3058" version: 0 is_local: false columns { column_id: 0 indexed_column_id: 6     column_name: "C$_v6" colexpr { column_id: 6 } } columns { column_id: 1 indexed_column_id: 0 column_name: "C$_k" colexpr { column_id: 0 } } hash_column_count: 1 range_column_count: 1 is_unique: false indexed_table_id: "68214fdb2bd2484095f782959aca7482" indexed_hash_column_ids: 0                    use_mangled_column_name: true index_permissions: INDEX_PERM_READ_WRITE_AND_DELETE backfill_error_message: "" num_rows_processed_by_backfill_job: 2111810}, {4068fc05bdbf4d77b0edff8250564138, table_id: "4068fc05bdbf4d77b0edff8250564138" version: 0 is_local: false columns { column_id: 0              indexed_column_id: 9 column_name: "C$_v9" colexpr { column_id: 9 } } columns { column_id: 1 indexed_column_id: 0 column_name: "C$_k" colexpr { column_id: 0 } } hash_column_count: 1 range_column_count: 1 is_unique: false indexed_table_id: "68214fdb2bd2484095f782959aca7482"                          indexed_hash_column_ids: 0 use_mangled_column_name: true index_permissions: INDEX_PERM_READ_WRITE_AND_DELETE backfill_error_message: "" num_rows_processed_by_backfill_job: 2353760}, {b7053e2890eb40db8f629f8049ac9a85, table_id: "b7053e2890eb40db8f629f8049ac9a85" version: 0 is_local: false columns  { column_id: 0 indexed_column_id: 10 column_name: "C$_v10" colexpr { column_id: 10 } } columns { column_id: 1 indexed_column_id: 0 column_name: "C$_k" colexpr { column_id: 0 } } hash_column_count: 1 range_column_count: 1 is_unique: false indexed_table_id: "68214fdb2bd2484095f782959aca7482"        indexed_hash_column_ids: 0 use_mangled_column_name: true index_permissions: INDEX_PERM_READ_WRITE_AND_DELETE backfill_error_message: "" num_rows_processed_by_backfill_job: 2206098}, {f17f407f9bfa4709bb571debd5a0c46e, table_id: "f17f407f9bfa4709bb571debd5a0c46e" version: 0 is_local: false columns  { column_id: 0 indexed_column_id: 2 column_name: "C$_v2" colexpr { column_id: 2 } } columns { column_id: 1 indexed_column_id: 0 column_name: "C$_k" colexpr { column_id: 0 } } hash_column_count: 1 range_column_count: 1 is_unique: false indexed_table_id: "68214fdb2bd2484095f782959aca7482"           indexed_hash_column_ids: 0 use_mangled_column_name: true index_permissions: INDEX_PERM_READ_WRITE_AND_DELETE backfill_error_message: "" num_rows_processed_by_backfill_job: 2479571}, {21ff5a8123bf48908f57825bcd55f493, table_id: "21ff5a8123bf48908f57825bcd55f493" version: 0 is_local: false columns  { column_id: 0 indexed_column_id: 3 column_name: "C$_v3" colexpr { column_id: 3 } } columns { column_id: 1 indexed_column_id: 0 column_name: "C$_k" colexpr { column_id: 0 } } hash_column_count: 1 range_column_count: 1 is_unique: false indexed_table_id: "68214fdb2bd2484095f782959aca7482"           indexed_hash_column_ids: 0 use_mangled_column_name: true index_permissions: INDEX_PERM_READ_WRITE_AND_DELETE backfill_error_message: "" num_rows_processed_by_backfill_job: 2304236}, {25875284bd78407e91229343a7c9280b, table_id: "25875284bd78407e91229343a7c9280b" version: 0 is_local: false columns  { column_id: 0 indexed_column_id: 1 column_name: "C$_v1" colexpr { column_id: 1 } } columns { column_id: 1 indexed_column_id: 0 column_name: "C$_k" colexpr { column_id: 0 } } hash_column_count: 1 range_column_count: 1 is_unique: false indexed_table_id: "68214fdb2bd2484095f782959aca7482"           indexed_hash_column_ids: 0 use_mangled_column_name: true index_permissions: INDEX_PERM_READ_WRITE_AND_DELETE backfill_error_message: "" num_rows_processed_by_backfill_job: 2374961}, {d13d1bb6d8154ee38b733cd6e0d28aa5, table_id: "d13d1bb6d8154ee38b733cd6e0d28aa5" version: 0 is_local: false columns  { column_id: 0 indexed_column_id: 4 column_name: "C$_v4" colexpr { column_id: 4 } } columns { column_id: 1 indexed_column_id: 0 column_name: "C$_k" colexpr { column_id: 0 } } hash_column_count: 1 range_column_count: 1 is_unique: false indexed_table_id: "68214fdb2bd2484095f782959aca7482"           indexed_hash_column_ids: 0 use_mangled_column_name: true index_permissions: INDEX_PERM_READ_WRITE_AND_DELETE backfill_error_message: "" num_rows_processed_by_backfill_job: 2395088}, {0a83facffeea4d0596f1ba36170145ae, table_id: "0a83facffeea4d0596f1ba36170145ae" version: 0 is_local: false columns  { column_id: 0 indexed_column_id: 7 column_name: "C$_v7" colexpr { column_id: 7 } } columns { column_id: 1 indexed_column_id: 0 column_name: "C$_k" colexpr { column_id: 0 } } hash_column_count: 1 range_column_count: 1 is_unique: false indexed_table_id: "68214fdb2bd2484095f782959aca7482"           indexed_hash_column_ids: 0 use_mangled_column_name: true index_permissions: INDEX_PERM_DO_BACKFILL backfill_error_message: "" num_rows_processed_by_backfill_job: 0}, {5a992fc3644f455ebc1ee09caef3a64b, table_id: "5a992fc3644f455ebc1ee09caef3a64b" version: 0 is_local: false columns { column_id: 0   indexed_column_id: 8 column_name: "C$_v8" colexpr { column_id: 8 } } columns { column_id: 1 indexed_column_id: 0 column_name: "C$_k" colexpr { column_id: 0 } } hash_column_count: 1 range_column_count: 1 is_unique: false indexed_table_id: "68214fdb2bd2484095f782959aca7482"                          indexed_hash_column_ids: 0 use_mangled_column_name: true index_permissions: INDEX_PERM_READ_WRITE_AND_DELETE backfill_error_message: "" num_rows_processed_by_backfill_job: 2457743}]

Should have said NotFound.

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions