Skip to content
代码片段 群组 项目
  1. 8月 19, 2022
  2. 8月 12, 2022
  3. 8月 10, 2022
  4. 8月 08, 2022
  5. 7月 29, 2022
  6. 7月 27, 2022
  7. 7月 26, 2022
  8. 7月 16, 2022
  9. 7月 09, 2022
  10. 7月 08, 2022
  11. 7月 07, 2022
  12. 7月 06, 2022
    • Bruno Cadonna's avatar
      KAFKA-10199: Remove call to Task#completeRestoration from state updater (#12379) · 00f395bb
      Bruno Cadonna 创作于
      The call to Task#completeRestoration calls methods on the main consumer.
      The state updater thread should not access the main consumer since the
      main consumer is not thread-safe. Additionally, Task#completeRestoration
      changed the state of active tasks, but we decided to keep task life cycle
      management outside of the state updater.
      
      Task#completeRestoration should be called by the stream thread on
      restored active tasks returned by the state udpater.
      
      Reviewer: Guozhang Wang <guozhang@apache.org>
      00f395bb
    • Divij Vaidya's avatar
      KAFKA-13943; Make `LocalLogManager` implementation consistent with the... · 5e4c8f70
      Divij Vaidya 创作于
      KAFKA-13943; Make `LocalLogManager` implementation consistent with the `RaftClient` contract (#12224)
      
      Fixes two issues in the implementation of `LocalLogManager`:
      
      - As per the interface contract for `RaftClient.scheduleAtomicAppend()`, it should throw a `NotLeaderException` exception when the provided current leader epoch does not match the current epoch. However, the current `LocalLogManager`'s implementation of the API returns a LONG_MAX instead of throwing an exception. This change fixes the behaviour and makes it consistent with the interface contract.
      -  As per the interface contract for `RaftClient.resign(epoch)`if the parameter epoch does not match the current epoch, this call will be ignored. But in the current `LocalLogManager` implementation the leader epoch might change when the thread is waiting to acquire a lock on `shared.tryAppend()` (note that tryAppend() is a synchronized method). In such a case, if a NotALeaderException is thrown (as per code change in above), then resign should be ignored.
      
      Reviewers: José Armando García Sancio <jsancio@users.noreply.github.com>, Tom Bentley <tbentley@redhat.com>, Jason Gustafson <jason@confluent.io>
      5e4c8f70
    • Chris Egerton's avatar
      KAFKA-10000: Integration tests (#11782) · 3ae1afa4
      Chris Egerton 创作于
      Implements embedded end-to-end integration tests for KIP-618, and brings together previously-decoupled logic from upstream PRs.
      
      Reviewers: Luke Chen <showuon@gmail.com>, Tom Bentley <tbentley@redhat.com>, Mickael Maison <mickael.maison@gmail.com>
      3ae1afa4
    • dengziming's avatar
      KAFKA-13228; Ensure ApiVersionRequest is properly handled KRaft co-resident mode (#11784) · 448441a3
      dengziming 创作于
      When brokers are co-resident with controllers using kraft, we incorrectly determine the supported API versions on the controller using `NodeApiVersions.create()`. The patch fixes the problem by using the versions from the sent `ApiVersions` request even when connecting to the local node.
      
      The patch also improves integration tests by adding support for co-resident mode.
      
      Reviewers: Justine Olshan <jolshan@confluent.io>, Jason Gustafson <jason@confluent.io>
      448441a3
  13. 7月 05, 2022
    • Viktor Somogyi-Vass's avatar
      KAFKA-6945: Add docs about KIP-373 (#12346) · 277c4c2e
      Viktor Somogyi-Vass 创作于
      Reviewers: Manikumar Reddy
      277c4c2e
    • Chris Egerton's avatar
      KAFKA-13613: Remove hard dependency on HmacSHA256 algorithm for Connect (#11894) · ec22af94
      Chris Egerton 创作于
      Reviewers: Mickael Maison <mickael.maison@gmail.com>

, Tom Bentley <tbentley@redhat.com>
      ec22af94
    • Thomas Cooper's avatar
      Upgrade Netty and Jackson versions for CVE fixes [KAFKA-14044] (#12376) · aa735062
      Thomas Cooper 创作于
      Reviewers: Luke Chen <showuon@gmail.com>
      aa735062
    • Matthew de Detrich's avatar
      KAFKA-13957: Fix flaky shouldQuerySpecificActivePartitionStores test (#12289) · 4e6326f8
      Matthew de Detrich 创作于
      
      Currently the tests fail because there is a missing predicate in the retrievableException which causes the test to fail, i.e. the current predicates
      
      containsString("Cannot get state store source-table because the stream thread is PARTITIONS_ASSIGNED, not RUNNING"),
      containsString("The state store, source-table, may have migrated to another instance"),
      containsString("Cannot get state store source-table because the stream thread is STARTING, not RUNNING")
      
      wasn't complete. Another one needed to be added, namely "The specified partition 1 for store source-table does not exist.". This is because its possible for
      
      assertThat(getStore(kafkaStreams2, storeQueryParam2).get(key), is(nullValue()));
      
      or
      
      assertThat(getStore(kafkaStreams1, storeQueryParam2).get(key), is(nullValue()));
      
      (depending on which branch) to be thrown, i.e. see
      
      org.apache.kafka.streams.errors.InvalidStateStorePartitionException: The specified partition 1 for store source-table does not exist.
      
      	at org.apache.kafka.streams.state.internals.WrappingStoreProvider.stores(WrappingStoreProvider.java:63)
      	at org.apache.kafka.streams.state.internals.CompositeReadOnlyKeyValueStore.get(CompositeReadOnlyKeyValueStore.java:53)
      	at org.apache.kafka.streams.integration.StoreQueryIntegrationTest.lambda$shouldQuerySpecificActivePartitionStores$5(StoreQueryIntegrationTest.java:223)
      	at org.apache.kafka.streams.integration.StoreQueryIntegrationTest.retryUntil(StoreQueryIntegrationTest.java:579)
      	at org.apache.kafka.streams.integration.StoreQueryIntegrationTest.shouldQuerySpecificActivePartitionStores(StoreQueryIntegrationTest.java:186)
      
      This happens when the stream hasn't been initialized yet. I have run the test around 12k times using Intellij's JUnit testing framework without any flaky failures. The PR also does some minor refactoring regarding moving the list of predicates into their own functions.
      
      Co-authored-by: default avatarBruno Cadonna <cadonna@apache.org>
      
      Reviewer: Bruno Cadonna <cadonna@apache.org>
      4e6326f8
  14. 7月 04, 2022
  15. 7月 03, 2022
  16. 7月 02, 2022
  17. 7月 01, 2022
  18. 6月 30, 2022
    • Guozhang Wang's avatar
      MINOR: Use mock time in DefaultStateUpdaterTest (#12344) · 3faa6cf6
      Guozhang Wang 创作于
      For most tests we would need an auto-ticking mock timer to work with draining-with-timeout functions.
      For tests that check for never checkpoint we need no auto-ticking timer to control exactly how much time elapsed.
      
      Reviewers: Bruno Cadonna <cadonna@apache.org>
      3faa6cf6
    • Guozhang Wang's avatar
      [9/N][Emit final] Emit final for session window aggregations (#12204) · ababc426
      Guozhang Wang 创作于
      * Add a new API for session windows to range query session window by end time (KIP related).
      * Augment session window aggregator with emit strategy.
      * Minor: consolidated some dup classes.
      * Test: unit test on session window aggregator.
      
      Reviewers: Guozhang Wang <wangguoz@gmail.com>
      ababc426
  19. 6月 29, 2022
  20. 6月 28, 2022
加载中