kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guozh...@apache.org
Subject [kafka] branch 2.0 updated: KAFKA-7080: pass segmentInterval to CachingWindowStore (#5474)
Date Wed, 08 Aug 2018 21:00:45 GMT
This is an automated email from the ASF dual-hosted git repository.

guozhang pushed a commit to branch 2.0
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.0 by this push:
     new 973b434  KAFKA-7080: pass segmentInterval to CachingWindowStore (#5474)
973b434 is described below

commit 973b4348b2c8cc2bf431fd617f6da4b09b9b04ac
Author: John Roesler <vvcephei@users.noreply.github.com>
AuthorDate: Wed Aug 8 16:00:41 2018 -0500

    KAFKA-7080: pass segmentInterval to CachingWindowStore (#5474)
    
    Reviewers: Guozhang Wang <wangguoz@gmail.com>
---
 .../org/apache/kafka/streams/state/internals/WindowStoreBuilder.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/streams/src/main/java/org/apache/kafka/streams/state/internals/WindowStoreBuilder.java
b/streams/src/main/java/org/apache/kafka/streams/state/internals/WindowStoreBuilder.java
index 97b4883..cd0841a 100644
--- a/streams/src/main/java/org/apache/kafka/streams/state/internals/WindowStoreBuilder.java
+++ b/streams/src/main/java/org/apache/kafka/streams/state/internals/WindowStoreBuilder.java
@@ -52,7 +52,7 @@ public class WindowStoreBuilder<K, V> extends AbstractStoreBuilder<K,
V, WindowS
                                         keySerde,
                                         valueSerde,
                                         storeSupplier.windowSize(),
-                                        storeSupplier.segments());
+                                        Segments.segmentInterval(storeSupplier.retentionPeriod(),
storeSupplier.segments()));
     }
 
     private WindowStore<Bytes, byte[]> maybeWrapLogging(final WindowStore<Bytes,
byte[]> inner) {


Mime
View raw message