Details
-
Bug
-
Status: Open
-
P3
-
Resolution: Unresolved
-
None
-
None
-
None
Description
} catch (Exception e) { producer.close(); throw e;
initShardWriter throws IOException. The catch block shouldn't widen the exception type.
If the intention is to properly close producer, we can use try-with-resources.