You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/01/08 18:09:39 UTC

[jira] [Created] (FLINK-3210) Unnecessary call to deserializer#deserialize() in LegacyFetcher#SimpleConsumerThread#run()

Ted Yu created FLINK-3210:
-----------------------------

             Summary: Unnecessary call to deserializer#deserialize() in LegacyFetcher#SimpleConsumerThread#run()
                 Key: FLINK-3210
                 URL: https://issues.apache.org/jira/browse/FLINK-3210
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Here is related code:
{code}
                byte[] valueBytes;
                if (payload == null) {
                  deletedMessages++;
                  valueBytes = null;
                } else {
...
                final T value = deserializer.deserialize(keyBytes, valueBytes, fp.topic, offset);
{code}
When valueBytes is null, there is no need to call deserializer#deserialize()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)