You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guozhang Wang (JIRA)" <ji...@apache.org> on 2016/11/30 00:08:00 UTC

[jira] [Created] (KAFKA-4468) Correctly calculate the window end timestamp after read from state stores

Guozhang Wang created KAFKA-4468:
------------------------------------

             Summary: Correctly calculate the window end timestamp after read from state stores
                 Key: KAFKA-4468
                 URL: https://issues.apache.org/jira/browse/KAFKA-4468
             Project: Kafka
          Issue Type: Bug
          Components: streams
            Reporter: Guozhang Wang


When storing the WindowedStore on the persistent KV store, we only use the start timestamp of the window as part of the combo-key as (start-timestamp, key). The reason that we do not add the end-timestamp as well is that we can always calculate it from the start timestamp + window_length, and hence we can save 8 bytes per key on the persistent KV store.

However, after read it (via {{WindowedDeserializer}}) we do not set its end timestamp correctly but just read it as an {{UnlimitedWindow}}. We should fix this by calculating its end timestamp as mentioned above.



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