Github user kumarvishal09 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2273#discussion_r187397546
--- Diff:
core/src/main/java/org/apache/carbondata/core/readcommitter/LatestFilesReadCommittedScope.java
---
@@ -122,6 +122,11 @@ private String getSegmentID(String
carbonIndexFileName, String indexFilePath) {
@Override public void takeCarbonIndexFileSnapShot() throws IOException {
// Read the current file Path get the list of indexes from the path.
CarbonFile file = FileFactory.getCarbonFile(carbonFilePath);
+ if (file == null) {
+ // For nonTransactional table, files can be removed at any point of
time.
+ // So cannot assume files will be present
+ throw new IOException("No files are present in the table location");
--- End diff --
append File path in exception message
---