dlmarion commented on code in PR #3874:
URL: https://github.com/apache/accumulo/pull/3874#discussion_r1370042900


##########
core/src/main/java/org/apache/accumulo/core/summary/SummaryReader.java:
##########
@@ -177,7 +179,11 @@ private static SummaryReader load(CachableBlockFile.Reader 
bcReader,
   public static SummaryReader load(Configuration conf, RFileSource source, 
String cacheId,
       Predicate<SummarizerConfiguration> summarySelector, SummarizerFactory 
factory,
       CryptoService cryptoService) throws IOException {
-    CachableBuilder cb = new CachableBuilder().input(source.getInputStream(), 
cacheId)
+    InputStream input = source.getInputStream();
+    if (!(input instanceof FSDataInputStream)) {
+      throw new IllegalArgumentException("Input stream is not a 
FSDataInputStream");
+    }

Review Comment:
   Removed instanceof checks in 0957d10



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

Reply via email to