You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "xiaokang (via GitHub)" <gi...@apache.org> on 2023/02/02 04:11:15 UTC

[GitHub] [doris] xiaokang commented on issue #10986: [Bug] remove_all_remote_rowset core

xiaokang commented on issue #10986:
URL: https://github.com/apache/doris/issues/10986#issuecomment-1413126967

   I also encountered this problem. More information is provided here.
   
   - related code
   
   > Status Tablet::remove_all_remote_rowsets() {
       DCHECK(_state == TABLET_SHUTDOWN);
       if (storage_policy_id() == 0) {
           return Status::OK();
       }
       auto tablet_gc_key = REMOTE_TABLET_GC_PREFIX + std::to_string(tablet_id());
       auto policy = get_storage_policy(storage_policy_id());
       return _data_dir->get_meta()->put(META_COLUMN_FAMILY_INDEX, tablet_gc_key,
                                         std::to_string(policy->resource_id));
   }
   
   
   - gdb information
   
   `
   (gdb) f 0
   #0  0x00005562d4370a4f in doris::Tablet::remove_all_remote_rowsets (this=0x619000d98a90)
       at /mnt/disk2/xiaokang/src/doris/be/src/olap/tablet.cpp:1920
   1920                                          std::to_string(policy->resource_id));
   (gdb) p policy
   $1 = std::shared_ptr<doris::StoragePolicy> (empty) = {
     get() = 0x0   # policy is a shared_ptr contains nullptr
   
   (gdb) p _data_dir
   $2 = (doris::DataDir *) 0x616000013580   # _data_dir seems to be normal
   
   (gdb) p (*(doris::TabletMeta*)0x6110003d79c0)._storage_policy_id
   $7 = 152677 
   
   (gdb) p s_storage_policy_mgr.map
   $6 = std::unordered_map with 0 elements   # it's a problem
   `
   


-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org