Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unstable ut SchemaSyncTest.PhysicalDropTableMeetsUnRemovedRegions #8968

Closed
Lloyd-Pottiger opened this issue Apr 19, 2024 · 1 comment · Fixed by #8972
Closed

unstable ut SchemaSyncTest.PhysicalDropTableMeetsUnRemovedRegions #8968

Lloyd-Pottiger opened this issue Apr 19, 2024 · 1 comment · Fixed by #8972
Labels
component/storage severity/minor type/bug The issue is confirmed as a bug.

Comments

@Lloyd-Pottiger
Copy link
Contributor

Bug Report

https://ci.pingcap.net/blue/organizations/jenkins/tiflash-ghpr-unit-tests/detail/tiflash-ghpr-unit-tests/13089/pipeline/

@JaySon-Huang
Copy link
Contributor

Cuase by a background task that run gc with thread_id=197

[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.481 +08:00] [INFO] [SchemaSyncService.cpp:221] ["Schema GC begin, last_safepoint=none safepoint=18446744073709551615"] [source="keyspace=4294967295"] [thread_id=1]
[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.481 +08:00] [INFO] [SchemaSyncService.cpp:70] ["add sync schema task"] [source="keyspace=4294967295"] [thread_id=196]
[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.481 +08:00] [INFO] [SchemaSyncService.cpp:121] ["add sync schema task for keyspaces done, num_add_tasks=1"] [thread_id=196]
[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.481 +08:00] [INFO] [SchemaSyncService.cpp:259] ["Detect stale table, database_name=db_1 table_name=t_30 database_tombstone=0 table_tombstone=1713500731450985 safepoint=18446744073709551615"] [source="keyspace=4294967295"] [thread_id=1]
[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.481 +08:00] [DEBUG] [SchemaSyncService.cpp:153] ["remove sync schema task for keyspaces done, num_remove_tasks=0"] [thread_id=196]
[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.482 +08:00] [TRACE] [PDTiKVClient.h:149] ["use safe point v1, gc_safe_point=10000000"] [thread_id=197]
[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.482 +08:00] [WARN] [SchemaSyncService.cpp:306] ["Physically drop table is skip, regions are not totally removed from TiFlash, remain_region_ids=[1001, 1002, 1003] table_tombstone=1713500731450985 safepoint=18446744073709551615 db_1.t_30 database_id=1 table_id=30"] [source="keyspace=4294967295"] [thread_id=1]
[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.482 +08:00] [INFO] [SchemaSyncService.cpp:221] ["Schema GC begin, last_safepoint=none safepoint=10000000"] [source="keyspace=4294967295"] [thread_id=197]
[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.482 +08:00] [INFO] [SchemaSyncService.cpp:435] ["Schema GC meet error, will try again later, last_safepoint=none safepoint=18446744073709551615"] [source="keyspace=4294967295"] [thread_id=1]
[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.482 +08:00] [INFO] [SchemaSyncService.cpp:421] ["Schema GC done, tables_removed=0 databases_removed=0 safepoint=10000000"] [source="keyspace=4294967295"] [thread_id=197]
[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.482 +08:00] [TRACE] [PDTiKVClient.h:149] ["use safe point v1, gc_safe_point=10000000"] [thread_id=197]
[2024-04-19T04:25:32.673Z] /home/jenkins/agent/workspace/tiflash-build-common/tiflash/dbms/src/TiDB/Schema/tests/gtest_schema_sync.cpp:372: Failure
[2024-04-19T04:25:32.673Z] Value of: last_gc_safe_point.has_value()
[2024-04-19T04:25:32.673Z]   Actual: true
[2024-04-19T04:25:32.673Z] Expected: false
[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.483 +08:00] [INFO] [SchemaSyncService.cpp:170] ["SchemaSyncService stopped"] [thread_id=1]
[2024-04-19T04:25:32.673Z] [2024/04/19 12:25:31.483 +08:00] [ERROR] [Exception.cpp:96] ["std::exception. Code: 1001, type: testing::AssertionException, e.what() = /home/jenkins/agent/workspace/tiflash-build-common/tiflash/dbms/src/TiDB/Schema/tests/gtest_schema_sync.cpp:372: Failure\nValue of: last_gc_safe_point.has_value()\n  Actual: true\nExpected: false"] [source="virtual void DB::tests::SchemaSyncTest_PhysicalDropTableMeetsUnRemovedRegions_Test::TestBody()"] [thread_id=1]
[2024-04-19T04:25:32.673Z] /home/jenkins/agent/workspace/tiflash-build-common/tiflash/dbms/src/TiDB/Schema/tests/gtest_schema_sync.cpp:387: Failure
[2024-04-19T04:25:32.673Z] Failed

ti-chi-bot bot pushed a commit that referenced this issue Apr 22, 2024
ti-chi-bot bot pushed a commit that referenced this issue Apr 22, 2024
ti-chi-bot bot pushed a commit that referenced this issue May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/storage severity/minor type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants