mukund-thakur commented on code in PR #1139:
URL: https://github.com/apache/parquet-mr/pull/1139#discussion_r1539985498


##########
parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileReader.java:
##########
@@ -1148,12 +1148,17 @@ private void 
readAllPartsVectoredOrNormal(List<ConsecutivePartList> allParts, Ch
       throws IOException {
 
     if (shouldUseVectoredIO(allParts)) {
-      readVectored(allParts, builder);
-    } else {
-      for (ConsecutivePartList consecutiveChunks : allParts) {
-        consecutiveChunks.readAll(f, builder);
+      try {
+        readVectored(allParts, builder);
+        return;
+      } catch (IOException | IllegalArgumentException | 
UnsupportedOperationException e) {
+        // possible failure modes.
+        LOG.warn("readVectored() failed; falling back to normal IO", e);

Review Comment:
   Yes, it will get complicated and that is why I was thinking is that an 
overkill or should we just fail in case of failure? 
   In the meantime, I will try to see how complicated it gets code wise. 



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to