643251132 opened a new issue #5936:
URL: https://github.com/apache/incubator-doris/issues/5936


   场景:一张doris表  dw_table_xxx ,按照日期做分区,保存过去30天分区,写入频次为 30s一次。
   
   对上述表dw_table_xxx 新建物化视图 dw_table_xxx_view。  创建物化视图耗时约 5 小时。
   
   max_tablet_version_num 为默认值 500
   
   异常现象:rowset version 达到上限,导致写入失败。
   
   
   
   经过排查发现:当日分区下的物化视图tablet一直没有进行 compaction,导致超过了上限max_tablet_version_num = 500
   
   
   
   
虽然可以通过调整max_tablet_version_num大小来避免写入失败,但是如果一直得不到compaction的话,最终rowset数量还是会超过上限。
   
   已知每30s写入一次,生成一个rowset version。如果超过4小时没有进行compaction,rowset version则会超过500
   
   
   
   那么问题来了:compaction的逻辑是怎样?在创建物化视图的时候,是按照分区从旧到新,对每个分区下的tablet 进行 compaction 吗?
   
   多谢您的解答~~


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

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to