Skip to content

Commit

Permalink
[CARBONDATA-3298]Removed Log Message for Already Deleted Segments
Browse files Browse the repository at this point in the history
Problem:
In old store, Create table and perform one Insert operation. Now,
update and delete that record, which marks that segment as "MARKED FOR DELETE".
Now run "clean files command" to delete the segment.
Note: In this case, Metadata folder doesn't contain segment file.
In new store, Refresh the table and again perform IUD operation. Now,
when "clean files" command is executed, We will check if physically segment file
exists or not, if not present, then we will log a warning message, as file not present.
If old store contains more segments, then for each segment, this log message will be
getting printed, which is not required.

Solution:
Removed log message for already deleted segments

This closes #3131
  • Loading branch information
Indhumathi27 authored and kunal642 committed Feb 28, 2019
1 parent 99dfcbe commit 9051ab7
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -156,11 +156,7 @@ private static void physicalFactAndMeasureMetadataDeletion(CarbonTable carbonTab
}
}

} else {
LOGGER.warn("Files are not found in segment " + path
+ " it seems, files are already being deleted");
}

}
List<Segment> segments = new ArrayList<>(1);
for (TableDataMap dataMap : indexDataMaps) {
Expand Down

0 comments on commit 9051ab7

Please sign in to comment.