empiredan opened a new issue, #2281:
URL: https://github.com/apache/incubator-pegasus/issues/2281
ASAN failed for `policy_context_test.test_disable_backup_policy` due to
following error:
```
[ RUN ] policy_context_test.test_app_dropped_during_backup
issue a backup, but no app is available
issue a new backup without backup histories
issue a new backup later
continue backup, only some apps are available
app is dropped when start to backup meta
a successful entire backup
test add backup history
[ OK ] policy_context_test.test_app_dropped_during_backup (8067 ms)
[ RUN ] policy_context_test.test_disable_backup_policy
=================================================================
==267==ERROR: AddressSanitizer: heap-use-after-free on address
0x60d0000c8c38 at pc 0x556d5246dd7d bp 0x14eb35ba2760 sp 0x14eb35ba2750
READ of size 8 at 0x60d0000c8c38 thread T26 (test_meta.THREA)
#0 0x556d5246dd7c
(/__w/incubator-pegasus/incubator-pegasus/build/latest/bin/dsn.meta.test/dsn.meta.test+0x5fcd7c)
#1 0x556d52470e15
(/__w/incubator-pegasus/incubator-pegasus/build/latest/bin/dsn.meta.test/dsn.meta.test+0x5ffe15)
#2 0x14eb3f07927a in std::_Function_handler<void (),
dsn::replication::policy_context::issue_new_backup_unlocked()::{lambda()#1}>::_M_invoke(std::_Any_data
const&)
(/__w/incubator-pegasus/incubator-pegasus/build/latest/output/lib/libdsn_meta_server.so+0xc7927a)
#3 0x14eb3fe2ea5d in dsn::task::exec_internal()
(/__w/incubator-pegasus/incubator-pegasus/build/latest/output/lib/libdsn_meta_server.so+0x1a2ea5d)
#4 0x14eb3fea6687 in dsn::task_worker::loop()
(/__w/incubator-pegasus/incubator-pegasus/build/latest/output/lib/libdsn_meta_server.so+0x1aa6687)
I2025-08-06 12:05:26.777 (1754481926777260856 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
server_state.cpp:444:initialize_default_apps(): start to do initialize
I2025-08-06 12:05:26.777 (1754481926777323313 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
table_metrics.cpp:251:create_entity(): try to create entity for
table_metric_entities(table_id=1): partition_count=1
I2025-08-06 12:05:26.777 (1754481926777376944 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
table_metrics.cpp:264:create_entity(): entity has been created for
table_metric_entities(table_id=1): partition_count=1
I2025-08-06 12:05:26.777 (1754481926777485899 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
server_state.cpp:540:sync_apps_to_remote_storage(): set /meta_test/apps to lock
state in remote storage
I2025-08-06 12:05:26.777 (1754481926777628236 302)
test_meta.THREAD_POOL_META_SERVER2.72339069014638656:
server_state.cpp:561:operator()(): create app node /meta_test/apps/1 ok
D2025-08-06 12:05:26.777 (1754481926777793014 304)
test_meta.THREAD_POOL_META_STATE0.72339069014638660:
server_state.cpp:1077:operator()(): create partition node: gpid(1.0), result:
ERR_OK
I2025-08-06 12:05:26.777 (1754481926777811329 304)
test_meta.THREAD_POOL_META_STATE0.72339069014638660:
server_state.cpp:287:transition_staging_state(): app(simple_kv.instance0(1))
transfer from app_status::AS_CREATING to app_status::AS_AVAILABLE
I2025-08-06 12:05:26.777 (1754481926777897731 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
server_state.cpp:590:sync_apps_to_remote_storage(): set /meta_test/apps to
unlock state in remote storage
W2025-08-06 12:05:26.778 (1754481926778097576 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
meta_state_service_simple.cpp:266:initialize(): read log file
'/__w/incubator-pegasus/incubator-pegasus/build/latest/bin/dsn.meta.test/data/test_meta/meta_state_service.log'
header with bad magic 16309933, skip the left!
I2025-08-06 12:05:26.778 (1754481926778206801 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
meta_service.cpp:250:remote_storage_initialize(): init meta_state_service
succeed, cluster_root = /meta_test
W2025-08-06 12:05:26.778 (1754481926778301519 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
local_service.cpp:79:initialize(): old local block service root dir has already
exist, path(./block_service)
I2025-08-06 12:05:26.778 (1754481926778318050 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
local_service.cpp:85:initialize(): local block service initialize succeed with
root(./block_service)
I2025-08-06 12:05:26.778 (1754481926778327337 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
block_service_manager.cpp:95:get_or_create_block_filesystem(): create block
filesystem ok for provider = local_service, provider_type = local_service, args
= ./block_service
I2025-08-06 12:05:26.778 (1754481926778427755 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
meta_backup_service.cpp:909:add_backup_history(): test_policy_name: encounter
an unfished backup_info(1754481926778), start_time(1754481926778), continue it
later
W2025-08-06 12:05:26.778 (1754481926778463151 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
meta_backup_service.cpp:662:initialize_backup_progress_unlocked():
test_policy_name: app id(1) is invalid
I2025-08-06 12:05:26.778 (1754481926778511472 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
backup_test.cpp:174:continue_current_backup_unlocked():
continue_current_backup_unlocked is called
I2025-08-06 12:05:26.778 (1754481926778528444 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
meta_backup_service.cpp:747:continue_current_backup_unlocked():
test_policy_name: policy is disabled, ignore this backup and try it later
I2025-08-06 12:05:27.778 (1754481927778696259 294)
test_meta.THREAD_POOL_DEFAULT2.72339069014638675:
backup_test.cpp:173:issue_new_backup_unlocked(): issue_new_backup_unlocked is
called
I2025-08-06 12:05:27.778 (1754481927778794152 294)
test_meta.THREAD_POOL_DEFAULT2.72339069014638675:
meta_backup_service.cpp:834:issue_new_backup_unlocked(): test_policy_name:
policy is disabled, just ignore backup, try it later
I2025-08-06 12:05:28.778 (1754481928778992891 293)
test_meta.THREAD_POOL_DEFAULT1.72339077604573266:
backup_test.cpp:173:issue_new_backup_unlocked(): issue_new_backup_unlocked is
called
I2025-08-06 12:05:28.779 (1754481928779066199 293)
test_meta.THREAD_POOL_DEFAULT1.72339077604573266:
meta_backup_service.cpp:834:issue_new_backup_unlocked(): test_policy_name:
policy is disabled, just ignore backup, try it later
I2025-08-06 12:05:29.779 (1754481929779253343 294)
test_meta.THREAD_POOL_DEFAULT2.72339073309606005:
backup_test.cpp:173:issue_new_backup_unlocked(): issue_new_backup_unlocked is
called
I2025-08-06 12:05:29.779 (1754481929779334546 294)
test_meta.THREAD_POOL_DEFAULT2.72339073309606005:
meta_backup_service.cpp:834:issue_new_backup_unlocked(): test_policy_name:
policy is disabled, just ignore backup, try it later
I2025-08-06 12:05:30.779 (1754481930779588762 293)
test_meta.THREAD_POOL_DEFAULT1.72339077604573267:
backup_test.cpp:173:issue_new_backup_unlocked(): issue_new_backup_unlocked is
called
I2025-08-06 12:05:30.779 (1754481930779664985 293)
test_meta.THREAD_POOL_DEFAULT1.72339077604573267:
meta_backup_service.cpp:834:issue_new_backup_unlocked(): test_policy_name:
policy is disabled, just ignore backup, try it later
I2025-08-06 12:05:31.779 (1754481931779039837 292)
test_meta.THREAD_POOL_DEFAULT0.0001146756333569:
block_service_manager.cpp:60:~block_service_manager(): close block service
manager.
I2025-08-06 12:05:31.779 (1754481931779792159 293)
test_meta.THREAD_POOL_DEFAULT1.72339073309606006:
backup_test.cpp:173:issue_new_backup_unlocked(): issue_new_backup_unlocked is
called
Error: Process completed with exit code 1.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]