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

    https://github.com/apache/flink/pull/895#discussion_r34262472
  
    --- Diff: 
flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-kafka/src/main/java/org/apache/flink/streaming/connectors/kafka/Utils.java
 ---
    @@ -53,13 +62,22 @@ public boolean isEndOfStream(T nextElement) {
     
                @Override
                public byte[] serialize(T element) {
    -                   DataOutputSerializer dos = new DataOutputSerializer(16);
    +                   if(dos == null) {
    +                           dos = new DataOutputSerializer(1);
    --- End diff --
    
    I think a starting size of `16` is nicer than one of `1`


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