imay commented on a change in pull request #1413: Add short key index builder, decoder, iterator URL: https://github.com/apache/incubator-doris/pull/1413#discussion_r299371502
########## File path: be/src/olap/olap_index.cpp ########## @@ -102,20 +127,17 @@ OLAPStatus MemIndex::load_segment(const char* file, size_t *current_num_rows_per is_align = (0 == storage_length % entry_length()); } if (!is_align) { - res = OLAP_ERR_INDEX_LOAD_ERROR; - OLAP_LOG_WARNING("fail to load_segment, buffer length is not correct."); - OLAP_LOG_WARNING("load segment for loading index error. [file=%s; res=%d]", file, res); - file_handler.close(); - return res; + return Status::Corruption("Failed to load index, becuase data isn't align"); Review comment: OK ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org For additional commands, e-mail: dev-h...@doris.apache.org