You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2019/07/02 08:19:48 UTC
[GitHub] [incubator-doris] kangpinghuang commented on a change in pull
request #1413: Add short key index builder, decoder, iterator
kangpinghuang 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_r299327345
##########
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:
```suggestion
return Status::Corruption("Failed to load index, because data isn't aligned");
```
----------------------------------------------------------------
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
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@doris.apache.org
For additional commands, e-mail: dev-help@doris.apache.org