Bug 反馈
【 Bug 的影响】
告警名称: TiFlash_schema_error
tiflash日志:
[2021/06/30 10:33:21.297 +08:00] [INFO] [] [“PageStorage: db_3248.t_3553.meta GC exit within 0.00 sec. PageFiles from [1,0,Formal] to [3,0,Legacy], num files: 3, num legacy:2, compact legacy archive files: 0, remove data files: 0, gc apply: 0 puts and 0 refs and 0 deletes and 0 upserts”] [thread_id=30]
[2021/06/30 10:33:33.997 +08:00] [DEBUG] [] [“PageStorage: db_45.t_4036.meta collectPageFilesToCompact stop on PageFile_1_0, type: Formal, sequence: 1 last sequence: 0”] [thread_id=26]
[2021/06/30 10:33:33.997 +08:00] [DEBUG] [] [“PageStorage: db_45.t_4036.meta LegacyCompactor::tryCompact exit without compaction, candidates size: 2, compact_legacy_min_num: 3”] [thread_id=26]
[2021/06/30 10:33:33.997 +08:00] [DEBUG] [] [“PageStorage: db_45.t_4036.meta DataCompactor::tryMigrate exit without compaction, [candidates size=1] [total byte size=108], Config{ PageStorage::Config {gc_min_files:10, gc_min_bytes:134217728, gc_max_valid_rate:0.350, gc_min_legacy_num:3, prob_do_gc_when_write_is_low:100, open_file_max_idle_time:15} }”] [thread_id=26]
[2021/06/30 10:33:33.997 +08:00] [DEBUG] [] [“PageStorage: db_45.t_4036.meta gcApply remove 1 invalid snapshots.”] [thread_id=26]
[2021/06/30 10:33:33.997 +08:00] [INFO] [] [“PageStorage: db_45.t_4036.meta GC exit within 0.00 sec. PageFiles from [1,0,Formal] to [3,0,Legacy], num files: 3, num legacy:2, compact legacy archive files: 0, remove data files: 0, gc apply: 0 puts and 0 refs and 0 deletes and 0 upserts”] [thread_id=26]
[2021/06/30 10:33:48.288 +08:00] [INFO] [] [“SchemaSyncer: start to sync schemas. current version is: 60867 and try to sync schema version to: 60872”] [thread_id=18]
[2021/06/30 10:33:48.288 +08:00] [DEBUG] [] [“SchemaSyncer: try load schema diffs.”] [thread_id=18]
[2021/06/30 10:33:48.290 +08:00] [DEBUG] [] [“SchemaSyncer: end load schema diffs.”] [thread_id=18]
[2021/06/30 10:33:48.291 +08:00] [DEBUG] [] [“SchemaGetter: Get DB Info from TiKV : {“id”:3248,“db_name”:{“O”:“resa”,“L”:“resa”},“charset”:“utf8mb4”,“collate”:“utf8mb4_bin”,“state”:5}”] [thread_id=18]
[2021/06/30 10:33:48.310 +08:00] [WARN] [] [“SchemaSyncer: apply diff meets exception : DB::Exception: miss table id in TiKV 117023 \
stack is 0. bin/tiflash/tiflash(StackTrace::StackTrace()+0x15) [0x35a7485]\
1. bin/tiflash/tiflash(DB::Exception::Exception(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)+0x25) [0x359e015]\
2. bin/tiflash/tiflash(DB::SchemaBuilder<DB::SchemaGetter, DB::SchemaNameMapper>::applyRenameTable(std::shared_ptrTiDB::DBInfo, long)+0x175) [0x75c8655]\
3. bin/tiflash/tiflash(DB::SchemaBuilder<DB::SchemaGetter, DB::SchemaNameMapper>::applyDiff(DB::SchemaDiff const&)+0x143) [0x75cc9b3]\
4. bin/tiflash/tiflash(DB::TiDBSchemaSyncer::tryLoadSchemaDiffs(DB::SchemaGetter&, long, DB::Context&)+0x2da) [0x7284cea]\
5. bin/tiflash/tiflash(DB::TiDBSchemaSyncer::syncSchemas(DB::Context&)+0x3dd) [0x72856ed]\
6. bin/tiflash/tiflash(DB::SchemaSyncService::syncSchemas()+0x2e) [0x727461e]\
7. bin/tiflash/tiflash() [0x72762a7]\
8. bin/tiflash/tiflash(DB::BackgroundProcessingPool::threadFunction()+0x8f6) [0x7104396]\
9. bin/tiflash/tiflash() [0x847bc3e]\
10. /lib64/libpthread.so.0(+0x7dd4) [0x7f0b60816dd4]\
11. /lib64/libc.so.6(clone+0x6c) [0x7f0b6023deac]\
”] [thread_id=18]
[2021/06/30 10:33:48.310 +08:00] [INFO] [] [“SchemaBuilder: Syncing all schemas.”] [thread_id=18]
[2021/06/30 10:33:48.311 +08:00] [DEBUG] [] [“SchemaBuilder: Database test(1) synced during sync all schemas”] [thread_id=18]
[2021/06/30 10:33:48.332 +08:00] [DEBUG] [] [“SchemaBuilder: Table resa_cost(10404).resource(100100) syncing during sync all schemas”] [thread_id=18]
[2021/06/30 10:33:48.332 +08:00] [DEBUG] [] [“SchemaBuilder: Table resa_cost(10404).resource(100100) name identical, not renaming.”] [thread_id=18]
[2021/06/30 10:33:48.332 +08:00] [INFO] [] [“SchemaBuilder: Altering table resa_cost(10404).resource(100100)”] [thread_id=18]
[2021/06/30 10:33:48.332 +08:00] [INFO] [] [“SchemaBuilder: No schema change detected for table resa_cost(10404).resource(100100), not altering”] [thread_id=18]