kezhenxu94 commented on code in PR #12961:
URL: https://github.com/apache/skywalking/pull/12961#discussion_r1912812352


##########
oap-server/server-storage-plugin/storage-banyandb-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/banyandb/BanyanDBStorageClient.java:
##########
@@ -75,6 +77,20 @@ public BanyanDBStorageClient(BanyanDBStorageConfig config) {
     @Override
     public void connect() throws Exception {
         this.client.connect();
+        final Properties properties = new Properties();
+        final InputStream resourceAsStream = 
BanyanDBStorageClient.class.getClassLoader()
+                                                                        
.getResourceAsStream(
+                                                                            
"bydb.dependencies.properties");
+        if (resourceAsStream == null) {
+            throw new IllegalStateException("bydb.dependencies.properties not 
found");
+        }
+        properties.load(resourceAsStream);

Review Comment:
   `resourceAsStream` is not closed



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