jihoonson commented on a change in pull request #8623: Consolidate and bump the protobuf version URL: https://github.com/apache/druid/pull/8623#discussion_r398199223
########## File path: extensions-core/protobuf-extensions/src/main/java/org/apache/druid/data/input/protobuf/ProtobufInputRowParser.java ########## @@ -127,49 +127,59 @@ void initDescriptor() private Descriptor getDescriptor(String descriptorFilePath) { - InputStream fin; - - fin = this.getClass().getClassLoader().getResourceAsStream(descriptorFilePath); + InputStream fin = this.getClass().getClassLoader().getResourceAsStream(descriptorFilePath); Review comment: This was actually closed in `DynamicSchema.parseFrom()` which is a bad pattern. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org For additional commands, e-mail: commits-h...@druid.apache.org