You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/06/30 03:12:11 UTC

[GitHub] [incubator-doris] morningman opened a new issue #3982: [Bug] BE crash when doing schema change for segment v1 table

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


   **Describe the bug**
   be.out shows:
   
   ```
   *** Aborted at 1593481276 (unix time) try "date -d @1593481276" if you are using GNU date ***
   PC: @     0x7f1d86cb9c50 __memcpy_sse2_unaligned
   *** SIGSEGV (@0x40800000) received by PID 17221 (TID 0x7f1cfd10e700) from PID 1082130432; stack trace: ***
       @     0x7f1d86c60470 (unknown)
       @     0x7f1d86cb9c50 __memcpy_sse2_unaligned
       @           0xe60f3c doris::FieldTypeTraits<>::direct_copy()
       @           0xf37927 doris::SegmentGroup::add_zone_maps_for_linked_schema_change()
       @           0xf23268 doris::AlphaRowsetWriter::add_rowset_for_linked_schema_change()
       @          0x159ca4c doris::LinkedSchemaChange::process()
       @          0x15a42b6 doris::SchemaChangeHandler::_convert_historical_rowsets()
       @          0x15a68cd doris::SchemaChangeHandler::_do_process_alter_tablet_v2()
       @          0x15a78d2 doris::SchemaChangeHandler::process_alter_tablet_v2()
       @          0x15da35f doris::EngineAlterTabletTask::execute()
       @           0xdff46e doris::StorageEngine::execute_task()
       @          0x1400411 doris::TaskWorkerPool::_alter_tablet()
       @          0x1409333 doris::TaskWorkerPool::_alter_tablet_worker_thread_callback()
       @     0x7f1d86a151c3 start_thread
       @     0x7f1d86d1212d __clone
   ```
   
   **To Reproduce**
   ```
   CREATE TABLE tb1 ( k1 INT , k2 INT , v1 VARCHAR(4096) , v2 FLOAT , v3 DECIMAL(20,7) ) DUPLICATE KEY(k1,k2) DISTRIBUTED BY HASH(k1, k2) BUCKETS 1 properties ("replication_num" = "1");
   
   insert into tbl1 values (1,2,3,4,5);
   
   ALTER TABLE tbl1 ORDER BY (k1, k2, v2, v1, v3);
   ```
   
   **DEBUG**
   This will trigger a linked schema change. And for linked schema change of alpha rowset data,
   it will copy the zone map value from origin columns to the new columns.
   
   In this case, the column order is changed, but we didn't correctly handle the column mapping
   between origin and new columns, and cause BE crash when copying the zone map.
   
   
   
   
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-doris] morningman closed issue #3982: [Bug] BE crash when doing schema change for segment v1 table

Posted by GitBox <gi...@apache.org>.
morningman closed issue #3982:
URL: https://github.com/apache/incubator-doris/issues/3982


   


----------------------------------------------------------------
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:
users@infra.apache.org



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