Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
03fbf2d
add .ofNullable to line 57
Cerchie Jul 10, 2023
f8f83ea
change test to cover null values in RangeQuery
Cerchie Jul 10, 2023
a511ae6
Update IQv2StoreIntegrationTest.java
Cerchie Jul 10, 2023
fcc8ced
enhance javadoc
Cerchie Jul 13, 2023
8f5a4c5
MINOR: Move TROGDOR.md to trogdor module (#13979)
hudeqi Jul 10, 2023
e28c0a0
Doc fixes: Fix format and other small errors in config documentation …
cherylws Jul 10, 2023
fa5653d
KAFKA-14718: Wait for MirrorMaker to start before executing test (#13…
divijvaidya Jul 10, 2023
39b2794
KAFKA-14059 Replace PowerMock with Mockito in WorkerSourceTaskTest (#…
hgeraldino Jul 10, 2023
3fac756
KAFKA-15145: Don't re-process records filtered out by SMTs on Kafka c…
yashmayya Jul 10, 2023
3c0fad1
KAFKA-15139: Avoid slow Set.removeAll(List) in MirrorCheckpointConnec…
hudeqi Jul 10, 2023
28be64f
KAFKA-15159: upgrade minor dependencies (#13982)
eziosudo Jul 11, 2023
d1e266f
[KAFKA-15137] Do not log entire request payload in KRaftControllerCha…
ahuang98 Jul 11, 2023
63ea3c6
KAFKA-15155: Follow PEP 8 best practice in Python to check if a conta…
cxorm Jul 11, 2023
cce9fbe
KAFKA-12525: Ignoring stale status statuses when reading from Connect…
vamossagar12 Jul 11, 2023
7635f3d
KAFKA-14522 Rewrite/Move of RemoteIndexCache to storage module. (#13275)
satishd Jul 11, 2023
13b4b20
MINOR: Add Streams API broker compatibility table (#13937)
JimGalasyn Jul 11, 2023
72f774b
MINOR: Add 3.5.0 and 3.4.1 to system tests (#13849)
mimaison Jul 12, 2023
546d848
KAFKA-15093: Add 3.4.0 and 3.5.0 to core upgrade and compatibility sy…
mimaison Jul 12, 2023
27f0a71
MINOR: Capture build scans on ge.apache.org to benefit from deep buil…
clayburn Jul 12, 2023
b0b4009
KAFKA-14462; [22/N] Implement session and revocation timeouts (#13963)
dajac Jul 12, 2023
04cdf60
MINOR: Fix Jmxtool to honour wait option when MBean is not yet avaiba…
omkreddy Jul 12, 2023
ba78c0a
KAFKA-15148: Mark tests correctly as integration tests where they run…
eziosudo Jul 12, 2023
355799c
KAFKA-14938: Fixing flaky test testConnectorBoundary (#13646)
sambhav-jain-16 Jul 12, 2023
5349dfb
MINOR: Avoid slow Set.removeAll(List) in MirrorSourceConnector (#13992)
hudeqi Jul 12, 2023
c9963a0
Kafka Streams Threading: Exception handling (#13957)
lucasbru Jul 13, 2023
8a95c22
MINOR: Standardize controller log4j output for replaying records (#13…
cmccabe Jul 13, 2023
e7793d6
KAFKA-12261: Mention about potential delivery loss on increasing part…
ocadaruma Jul 14, 2023
13bd4cf
Fix compile test error (#14013)
mumrah Jul 14, 2023
acd6438
MINOR: Remove thread leak from ConsumerBounceTest (#13956)
divijvaidya Jul 14, 2023
078f811
KAFKA-15180: Generalize integration tests to change use of KafkaConsu…
kirktrue Jul 14, 2023
f71efdb
KAFKA-14462; [23/23] Wire GroupCoordinatorService in BrokerServer (#1…
dajac Jul 14, 2023
14ac3ef
KAFKA-15182: Normalize source connector offsets before invoking Sourc…
yashmayya Jul 14, 2023
f2307a7
MINOR Improve logging during the ZK to KRaft migration (#14008)
mumrah Jul 14, 2023
b59a557
KAFKA-14884: Include check transaction is still ongoing right before …
jolshan Jul 14, 2023
f7f1a61
KAFKA-15123: Add tests for ChunkedBytesStream (#13941)
riedelmax Jul 15, 2023
7ce28f8
fix typo in streams/dsl-api.html (#14023)
iblislin Jul 16, 2023
3deb3ee
MINOR: Add ZK dual-write lag metric (#14009)
hni61223 Jul 17, 2023
b72f8af
KAFKA-9564: Local Tiered Storage implementation for Remote Storage Ma…
kamalcph Jul 17, 2023
d3f81f1
MINOR: remove unused variable in examples (#14021)
bmscomp Jul 17, 2023
9ee61ce
KAFKA-14647: Move TopicFilter to server-common/utils (#13158)
vamossagar12 Jul 18, 2023
85b03dc
KAFKA-14737: Move kafka.utils.json to server-common (#13585)
OmniaGM Jul 18, 2023
706c0c1
MINOR: Update .asf.yaml file with refreshed github_whitelist, and col…
mimaison Jul 18, 2023
92ed0eb
Revert "MINOR: Update .asf.yaml file with refreshed github_whitelist,…
mimaison Jul 18, 2023
03d8f39
KAFKA-15121: Implement the alterOffsets method in the FileStreamSourc…
yashmayya Jul 18, 2023
b19bd2c
KAFKA-14953: Add tiered storage related metrics (#13944)
abhijeetk88 Jul 18, 2023
c7e6b71
KAFKA-14669: Use the generated docs for MirrorMaker configs in the do…
tinaselenge Jul 18, 2023
8301a4e
KAFKA-15091: Fix misleading Javadoc for SourceTask::commit (#13948)
yashmayya Jul 18, 2023
4e53331
MINOR: Update docs to include ZK deprecation notice and information (…
forlack Jul 18, 2023
0c7dfa0
KAFKA-14500; [5/N] Implement JoinGroup protocol in new GroupCoordinat…
jeffkbkim Jul 19, 2023
52e52a3
KAFKA-15199: Remove Leading and Trailing Spaces in release.py (#14035)
tanay27 Jul 19, 2023
49e7a00
MINOR: Upgrade Gradle wrapper version to 8.2.1 (#14032)
bmscomp Jul 19, 2023
0f2e105
KAFKA-15211: Mock InvalidParameterException in DistributedConfigTest …
gharris1727 Jul 19, 2023
b07774a
MINOR: Fix Connect compatibility javadocs to use NoSuchMethodError in…
yashmayya Jul 19, 2023
b6362f4
KAFKA-15141: Initialize logger statically on hot codepaths (#13949)
gaurav-narula Jul 19, 2023
a232909
KAFKA-15162: Reflectively find plugins in parent ClassLoaders that ar…
gharris1727 Jul 19, 2023
b7dabdf
KAFKA-10579: Upgrade reflections from 0.9.12 to 0.10.2 (#14029)
gharris1727 Jul 19, 2023
d561222
KAFKA-15150: Add ServiceLoaderScanner implementation (#13971)
gharris1727 Jul 19, 2023
1a7f074
MINOR: Delete unneeded classgraph-MIT license (#14040)
tanay27 Jul 20, 2023
05fb279
KAFKA-14734: Use CommandDefaultOptions in StreamsResetter (#13983)
fvaleri Jul 20, 2023
78d4f14
KAFKA-14936: Check the versioned table's history retention and compar…
wcarlson5 Jul 20, 2023
3518861
KAFKA-15216: InternalSinkRecord::newRecord should not ignore new head…
yashmayya Jul 20, 2023
c07bfd5
KAFKA-14469: Add MirrorMaker configs to table of contents in docs pag…
C0urante Jul 20, 2023
303eb7e
KAFKA-14133: Migrate various mocks in TaskManagerTest to Mockito (#13…
clolov Jul 20, 2023
383a005
KAFKA-14760: Move ThroughputThrottler from tools to clients, remove t…
gharris1727 Jul 20, 2023
5445062
KAFKA-15022: [2/N] introduce graph to compute min cost (#13996)
lihaosky Jul 20, 2023
f01d213
KAFKA-15176: add tests for tiered storage metrics (#13999)
showuon Jul 21, 2023
47760f5
MINOR Fix the build failure (#14065)
satishd Jul 21, 2023
6316b2b
KAFKA-15222: upgrade zinc scala plugin to 1.9.2 (#14060)
bmscomp Jul 21, 2023
53f2c19
MINOR: add JDK 20 build support to README (#14061)
bmscomp Jul 21, 2023
7302324
KAFKA-14591: Move DeleteRecordsCommand to tools (#13278)
nizhikov Jul 21, 2023
bdf7b90
KAFKA-13431 (KIP-793): Expose the original pre-transform topic partit…
yashmayya Jul 21, 2023
eb79576
KAFKA-14499: [1/N] Introduce OffsetCommit API version 9 and add new S…
dajac Jul 21, 2023
e19f991
KAFKA-14499: [2/N] Add OffsetCommit record & related (#14047)
dajac Jul 21, 2023
eee7026
KAFKA-15232: Move ToolsUtils to tools (#14066)
fvaleri Jul 21, 2023
6f1ee33
KAFKA-14950: implement assign() and assignment() (#13797)
Jul 21, 2023
4599b2b
MINOR: Minor logging and doc related improvements in topic-based RLMM…
jeqo Jul 22, 2023
2b70811
KAFKA-15194: Prepend offset in the filenames used by LocalTieredStora…
Owen-CH-Leung Jul 22, 2023
0956cb0
KAFKA-14712: Produce correct error msg with correct metadataversion (…
Owen-CH-Leung Jul 24, 2023
f823cc3
KAFKA-15168: Handle overlapping remote log segments in RemoteLogMetad…
kamalcph Jul 24, 2023
5aa93b1
KAFKA-14920: Address timeouts and out of order sequences (#14033)
jolshan Jul 24, 2023
b1172c5
KAFKA-14990: Dynamic producer ID expiration should be applied on a br…
splett2 Jul 24, 2023
a6f7d66
KAFKA-15183: Add more controller, loader, snapshot emitter metrics (#…
cmccabe Jul 25, 2023
2242de9
MINOR: Downgrade log level for conflicting Connect plugin aliases (#1…
C0urante Jul 25, 2023
5cab2f8
KAFKA-15238: Move DLQ reporter setup from the DistributedHerder's tic…
yashmayya Jul 25, 2023
3be0dc5
MINOR: Fix typo in ProduceRequest.json (#14070)
tisonkun Jul 25, 2023
85f209b
rebase jul 25
Cerchie Jul 25, 2023
856ee7f
Merge branch 'trunk' into KAFKA-15126
Cerchie Jul 25, 2023
7f9696c
Merge branch 'apache:trunk' into KAFKA-15126
Cerchie Jul 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@ private RangeQuery(final Optional<K> lower, final Optional<K> upper) {

/**
* Interactive range query using a lower and upper bound to filter the keys returned.
* If both <K,V> are null, RangQuery returns a full range scan.
* @param lower The key that specifies the lower bound of the range
* @param upper The key that specifies the upper bound of the range
* @param <K> The key type
* @param <V> The value type
*/
public static <K, V> RangeQuery<K, V> withRange(final K lower, final K upper) {
return new RangeQuery<>(Optional.of(lower), Optional.of(upper));
return new RangeQuery<>(Optional.ofNullable(lower), Optional.ofNullable(upper));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1083,22 +1083,15 @@ public <V> void shouldHandleKeyQuery(
}

public <V> void shouldHandleRangeQuery(

final Optional<Integer> lower,
final Optional<Integer> upper,
final Function<V, Integer> valueExtactor,
final Set<Integer> expectedValue) {

final RangeQuery<Integer, V> query;
if (lower.isPresent() && upper.isPresent()) {
query = RangeQuery.withRange(lower.get(), upper.get());
} else if (lower.isPresent()) {
query = RangeQuery.withLowerBound(lower.get());
} else if (upper.isPresent()) {
query = RangeQuery.withUpperBound(upper.get());
} else {
query = RangeQuery.withNoBounds();
}

query = RangeQuery.withRange(lower.orElse(null), upper.orElse(null));
final StateQueryRequest<KeyValueIterator<Integer, V>> request =
inStore(STORE_NAME)
.withQuery(query)
Expand Down Expand Up @@ -1376,4 +1369,4 @@ private static Properties streamsConfiguration(final boolean cache, final boolea
config.put(StreamsConfig.NUM_STREAM_THREADS_CONFIG, 1);
return config;
}
}
}