hudi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-hudi] dengziming opened a new pull request #1303: [HUDI-596] Close KafkaConsumer every time
Date Mon, 03 Feb 2020 06:57:55 GMT
dengziming opened a new pull request #1303: [HUDI-596] Close KafkaConsumer every time
URL: https://github.com/apache/incubator-hudi/pull/1303
 
 
   if we create KafkaConsumer but didn't close it, exception will be thrown after a while.
   
   ```
   java.net.SocketException: Too many open files
   at sun.nio.ch.Net.socket0(Native Method)
   at sun.nio.ch.Net.socket(Net.java:411)
   at sun.nio.ch.Net.socket(Net.java:404)
   ```
   
   ## What is the purpose of the pull request
   
   use try with resources to close KafkaConsumer
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message