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

[I] [Bug] The storage policy is lost after the truncate table [doris]

xingyingone opened a new issue, #26253:
URL: https://github.com/apache/doris/issues/26253

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   2.0.2
   
   ### What's Wrong?
   
   1. fe 执行truncate 失败了
   MySQL [test_db]> truncate table create_table_use_created_policy;
   ERROR 1105 (HY000): errCode = 2, detailMessage = Failed to find enough backend, please check the replication num,replication tag and storage medium.
   Create failed replications:
   replication tag: {"location" : "default"}, replication num: 3, storage medium: SSD
   
   2.
   create_table_use_created_policy 是一个冷热存储分离的表
   
   MySQL [test_db]> show create table create_table_use_created_policy\G;
   *************************** 1. row ***************************
          Table: create_table_use_created_policy
   Create Table: CREATE TABLE `create_table_use_created_policy` (
     `k1` bigint(20) NULL,
     `k2` largeint(40) NULL,
     `v1` varchar(2048) NULL
   ) ENGINE=OLAP
   UNIQUE KEY(`k1`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`k1`) BUCKETS 3
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 3",
   "is_being_synced" = "false",
   "storage_format" = "V2",
   "light_schema_change" = "true",
   "storage_policy" = "test_policy",
   "disable_auto_compaction" = "false",
   "enable_single_replica_compaction" = "false"
   );
   
   MySQL [test_db]> show STORAGE POLICY\G;
   *************************** 1. row ***************************
         PolicyName: test_policy
                 Id: 12025
            Version: 0
               Type: STORAGE
    StorageResource: remote_s3
   CooldownDatetime: -1
        CooldownTtl: 3600
   1 row in set (0.00 sec)
   
   
   ### What You Expected?
   
   像是storage policy没了
   
   ### How to Reproduce?
   
   https://doris.apache.org/zh-CN/docs/advanced/cold_hot_separation
   根据官网建表,然后数据降冷后执行查询,最后执行truncate
   
   ### Anything Else?
   
   无
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.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


Re: [I] [Bug] failed to truncate table [doris]

Posted by "xingyingone (via GitHub)" <gi...@apache.org>.
xingyingone commented on issue #26253:
URL: https://github.com/apache/doris/issues/26253#issuecomment-1790603712

   ![image](https://github.com/apache/doris/assets/16775757/06818da6-767b-4acb-82e8-2c0d915b65bf)
   The be  space is full, but no errors have been reported


-- 
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


Re: [I] [Bug] failed to truncate table [doris]

Posted by "xingyingone (via GitHub)" <gi...@apache.org>.
xingyingone commented on issue #26253:
URL: https://github.com/apache/doris/issues/26253#issuecomment-1790602503

   ![204a59049330ed31f54a7dbff0e1113](https://github.com/apache/doris/assets/16775757/a78eff79-66e6-4c6d-a91b-30e9610b8aa5)
   The space is full, but no errors have been reported


-- 
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


Re: [I] [Bug] failed to truncate table [doris]

Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei closed issue #26253: [Bug] failed to  truncate table
URL: https://github.com/apache/doris/issues/26253


-- 
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