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 2021/06/18 21:05:53 UTC

[GitHub] [incubator-doris] morningman commented on a change in pull request #6022: [Enchancement] Validate data file after alter operation success

morningman commented on a change in pull request #6022:
URL: https://github.com/apache/incubator-doris/pull/6022#discussion_r654101881



##########
File path: be/src/olap/rowset/beta_rowset.cpp
##########
@@ -157,4 +157,14 @@ bool BetaRowset::check_path(const std::string& path) {
     return valid_paths.find(path) != valid_paths.end();
 }
 
+bool BetaRowset::check_file_exist() {
+    for (int i = 0; i < num_segments(); ++i) {
+        std::string data_file = segment_file_path(_rowset_path, rowset_id(), i);
+        if (!FileUtils::check_exist(data_file)) {

Review comment:
       print log for non-exist file?




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