Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1030#discussion_r37563275
  
    --- Diff: 
flink-staging/flink-streaming/flink-streaming-core/src/main/java/org/apache/flink/streaming/api/functions/sink/SocketClientSink.java
 ---
    @@ -73,13 +84,44 @@ public void intializeConnection() {
         *                      The incoming data
         */
        @Override
    -   public void invoke(IN value) {
    +   public void invoke(IN value) throws Exception {
                byte[] msg = schema.serialize(value);
                try {
                        dataOutputStream.write(msg);
                } catch (IOException e) {
    -                   throw new RuntimeException("Cannot send message " + 
value.toString() +
    -                                   " to socket server at " + hostName + 
":" + port, e);
    --- End diff --
    
    I think we should at least log the exception.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to