instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apache__incubator-seata__7878 | apache/incubator-seata | 7,878 | defect | d22e8839a520e5d6859ecc182f2cbf740cb5bf68 | 9595654f8f207ddf1efb5c603df63fb280169f06 | feature: console supports creation and modification of transaction groups for Raft clusters | <!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License... | diff --git a/console/src/main/resources/static/console-fe/src/app.tsx b/console/src/main/resources/static/console-fe/src/app.tsx
index eca78192cf4..c64664e3bf1 100644
--- a/console/src/main/resources/static/console-fe/src/app.tsx
+++ b/console/src/main/resources/static/console-fe/src/app.tsx
@@ -71,7 +71,7 @@ class App... | 21 | 16 | 2 | [{"id": "G0", "claim": "The if-else branches for RAFT and non-RAFT clusters in namespaceV2 contain identical logic and should be consolidated into a single block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The explicit type parameter in Coll... | null |
apache__incubator-seata__7882 | apache/incubator-seata | 7,882 | defect | ba2c224576071563ed672038d56a569f80ae338c | 81e2bcdf6c3d0526a3ef2e0abd526ce14d241e9b | feature: add metrics support for NamingServer | <!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License... | diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 9ad85116b03..3b2b3ebc1eb 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -34,6 +34,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#7826](https://github.com/apache/incubator-seata/pull/7826)] Support HTTP/2 response handli... | 10 | 7 | 2 | [{"id": "G0", "claim": "Abstract an interface for MetricsManager and provide a no-op implementation so that classes depending on it need no null checks when the Prometheus metrics feature is disabled.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Restor... | null |
apache__incubator-seata__7891 | apache/incubator-seata | 7,891 | defect | 5219ca3fa28297a2d66accb4253e9cbb48468ed1 | 4d8c184cbbf6f2a0704ad0d4409986eee8d3490b | bugfix: raft split-brain causes incorrect cluster information | <!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License... | diff --git a/common/src/main/java/org/apache/seata/common/metadata/namingserver/NamingServerNode.java b/common/src/main/java/org/apache/seata/common/metadata/namingserver/NamingServerNode.java
index cdef618bb37..3bdd3fb1e71 100644
--- a/common/src/main/java/org/apache/seata/common/metadata/namingserver/NamingServerNode... | 2 | 1 | 1 | [{"id": "G0", "claim": "The role comparison added to isChanged() may treat older nodes as changed: a role difference alone returns true even when otherNode.term < term; the logic should be otherNode.term > term || (otherNode.term >= term && role differs) || version differs.", "category": "correctness", "verdict": "supp... | null |
apache__incubator-seata__7894 | apache/incubator-seata | 7,894 | defect | ece45acad1de73e9091914fec00fe43f164c52dd | 9ccbf004c8e4ed908a70aaa56926c7ccfc4f3b3f | optimize: optimize method and class names in the saga module. | <!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License... | diff --git a/compatible/src/main/java/io/seata/saga/engine/impl/DefaultStateMachineConfig.java b/compatible/src/main/java/io/seata/saga/engine/impl/DefaultStateMachineConfig.java
index 80a35c31c8d..3f0bdb3c26c 100644
--- a/compatible/src/main/java/io/seata/saga/engine/impl/DefaultStateMachineConfig.java
+++ b/compatibl... | 2 | 2 | 0 | [{"id": "G0", "claim": "In saga/seata-saga-engine/src/main/java/org/apache/seata/saga/engine/repo/StateMachineRepository.java the JavaDoc summary still says \"Registry by resources\" although the method has been renamed to registerByResources, so the documentation should be updated to match (e.g. \"Register state machi... | null |
apache__incubator-seata__7900 | apache/incubator-seata | 7,900 | defect | 340aa3caa10f01c0d510e718027fa90fdfd658d9 | 3fd61fe8214cbeb673c04d943365addf27662c2f | test: add unit tests for ConnectionContext class | ## What is the purpose of the change
This PR adds comprehensive unit tests for the ConnectionContext class in the
m-datasource module to increase test coverage.
## Brief changelog
- Add ConnectionContextTest.java with 26 unit tests covering:
- Global transaction state management (inGlobalTransaction, ind)
- Br... | diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 303d5750532..2efdbc77e45 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -155,6 +155,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#7827](https://github.com/apache/incubator-seata/pull/7827)] Fix non-deteriministic in Ta... | 1 | 1 | 0 | [{"id": "G0", "claim": "The @author tag in ConnectionContextTest.java appears to use a GitHub username rather than a real name; consider using a full name for better documentation, as is common practice in Apache projects.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
apache__incubator-seata__7901 | apache/incubator-seata | 7,901 | defect | 340aa3caa10f01c0d510e718027fa90fdfd658d9 | d64243168f28a30dcca1882475e281718c42b72e | test: add unit tests for core module (LockStatus, MessageType, ProtocolConstants) | ## What is the purpose of the change
This PR adds unit tests for the core module to improve test coverage, addressing issue #6502.
## Brief changelog
- Add LockStatusTest.java with tests for:
- getCode() method
- get(byte) and get(int) methods
- Invalid code exception handling
- Enum values validation
- Add... | diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 303d5750532..4ccc9677966 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -155,6 +155,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#7827](https://github.com/apache/incubator-seata/pull/7827)] Fix non-deteriministic in Ta... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test files should not retain their `@author` Javadoc tags, per ASF community-collaboration guidelines — remove them.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
apache__incubator-seata__7908 | apache/incubator-seata | 7,908 | defect | b1db26b0221d909a724d6b734cfcc86c07838181 | 735e9f8c83954349db0d446235543a43e22f1abb | bugfix: handle timestamp with time zone in postgresql primary key | <!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License... | diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 67da55c873c..bbb28094c0e 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -69,6 +69,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#7879](https://github.com/apache/incubator-seata/pull/7879)] fix:correct server port and na... | 5 | 5 | 1 | [{"id": "G0", "claim": "The jackson-datatype-jdk8 dependency added in rm-datasource/pom.xml is unused by the codebase and should be removed to keep dependencies minimal; only jackson-datatype-jsr310 is needed for java.time types.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
apache__incubator-seata__7966 | apache/incubator-seata | 7,966 | defect | 19a14d62b096d017e28c1ededd9f428c9eca696c | 0492199cd5928e51bc456ac3bff4880b4163a263 | bugfix: different element order in two lists causes failure to set the index as primary key index | …e index as primary key index
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache Licens... | diff --git a/changes/en-us/2.6.0.md b/changes/en-us/2.6.0.md
index 4a919af9097..6ec6f3461dd 100644
--- a/changes/en-us/2.6.0.md
+++ b/changes/en-us/2.6.0.md
@@ -75,6 +75,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#7908](https://github.com/apache/incubator-seata/pull/7908)] handle timestamp with ... | 8 | 6 | 2 | [{"id": "G0", "claim": "The English changelog entry for this PR references #7965 instead of #7966 and should be corrected to point at this pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Chinese changelog entry for this PR referen... | null |
apache__incubator-seata__8020 | apache/incubator-seata | 8,020 | defect | a63866fcea40885cd318984207999f367813a4d5 | 2bc49bfdf146b1ce39042cae4f171e664af4c718 | feature: add UnregisterRM protocol to notify server on client destroy | <!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License... | diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 0b7fc3ef40a..7a9cd04a15f 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -26,6 +26,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#7865](https://github.com/apache/incubator-seata/pull/7865)] add Benchmark CLI tool
- [[#7... | 12 | 8 | 4 | [{"id": "G0", "claim": "The unregisterResourceWithBlankParamsTest creates a channelManager mock but never injects it into the client, so its verify(...never()).getChannels() assertions always pass and do not validate the blank-param short-circuit.", "category": "testing", "verdict": "supported", "priority": "P1", "scop... | null |
apache__incubator-seata__8035 | apache/incubator-seata | 8,035 | defect | 49e99de50891cbf31f630e75cea1814e2e1198b0 | 6cce53cd86053d10779b7af52ef82654534dae64 | bugfix: fix IllegalArgumentException when GET request has request body | <!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License... | diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index e3fd0e15314..ddf7b077f3a 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -35,6 +35,9 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#7956](https://github.com/apache/incubator-seata/pull/7956)] fix empty jacoco report on loc... | 12 | 12 | 5 | [{"id": "G0", "claim": "LOGGER is a private final instance field named like a constant, inconsistent with the common private static final Logger pattern; make it static final or rename it back to logger.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla... | null |
apache__iotdb-client-go__123 | apache/iotdb-client-go | 123 | defect | 033fcb8afbc0498209ea2a3667c1ce684c4e1f7a | 075fbd76f5ec31c619d98fb7a07949fef248ed79 | fix: there is no errors when sql is incorrect | fix #122 | diff --git a/client/session.go b/client/session.go
index ea2e96e..45bc472 100644
--- a/client/session.go
+++ b/client/session.go
@@ -442,26 +442,33 @@ func (s *Session) SetTimeZone(timeZone string) (r *common.TSStatus, err error) {
return r, err
}
-func (s *Session) ExecuteStatement(sql string) (*SessionDataSet, e... | 1 | 1 | 0 | [{"id": "G0", "claim": "The inline status check added in ExecuteStatementWithContext should reuse the existing VerifySuccess helper instead of hand-rolling the resp.Status code comparison.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__iotdb-client-go__151 | apache/iotdb-client-go | 151 | defect | 7f4315acf27df7ce8436ba1b137a4bd09418c9df | 580b7eb24c8f506b08b118ceb4e9564949d1b59e | Call VerifySuccess before return to user | This pull request refactors the `Session` methods in `client/session.go` to standardize error handling and simplify method signatures. The main change is that several methods which previously returned both a status and an error now return only an error, with status verification handled internally. This makes the API ea... | diff --git a/client/session.go b/client/session.go
index e62f5e6..bda3d71 100644
--- a/client/session.go
+++ b/client/session.go
@@ -228,14 +228,17 @@ func (s *Session) Close() error {
*return
*error: correctness of operation
*/
-func (s *Session) SetStorageGroup(storageGroupId string) (r *common.TSStatus, err er... | 4 | 2 | 2 | [{"id": "G0", "claim": "SetTimeZone updates s.config.TimeZone before checking the RPC error and VerifySuccess, so a failed call leaves the session with an incorrect local timezone; move the assignment to after VerifySuccess succeeds (or only update when returning nil).", "category": "correctness", "verdict": "supported... | null |
apache__iotdb__17386 | apache/iotdb | 17,386 | defect | 32f1010942e8841e9c1aefcb89e042dba18d42f7 | dcd15d4d7fdd80d1d9754f4aa13846dea1aa5580 | [AINode]: Integrate MOMENT as a builtin forecasting model | ## Description
### Integrate MOMENT Time Series Foundation Model
Integrate [MOMENT](https://arxiv.org/abs/2402.03885) (A Family of Open Time-series Foundation M... | diff --git a/LICENSE b/LICENSE
index 07a2ad8da4d4e..81000948cc4ef 100644
--- a/LICENSE
+++ b/LICENSE
@@ -360,3 +360,13 @@ Project page: https://github.com/SalesforceAIResearch/uni2ts
License: https://github.com/SalesforceAIResearch/uni2ts/blob/main/LICENSE.txt
-------------------------------------------------------... | 4 | 4 | 1 | [{"id": "G0", "claim": "The PR should employ the large version of the MOMENT model instead of MOMENT-1-small.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "AINode code should be reformatted by running `black . && isort .` under iotdb-core/ainode.", "cat... | null |
apache__iotdb__17435 | apache/iotdb | 17,435 | defect | 58f94e2fbb8609b11e8f2133c5d2e3aab6ea0693 | 754e7d9d583cb648e8b19d25da3bef1ac5f7e1ba | [To del/1.3] Fix Percentile, Quantile UDFs and update Cluster UDF | # Update 3 UDFs: Percentile, Quantile and Cluster
## Fix issues in Percentile and Quantile UDFs
### Percentile
- Fix out-of-bounds index issue
- Add according unit tests
### Quantile
- Fix incorrect type conversion
- Add according unit tests
## Update Cluster UDF
- This function takes a **single input ... | diff --git a/integration-test/src/test/java/org/apache/iotdb/libudf/it/dlearn/DLearnIT.java b/integration-test/src/test/java/org/apache/iotdb/libudf/it/dlearn/DLearnIT.java
index 480dff4e46dca..b4a1c8daa92ab 100644
--- a/integration-test/src/test/java/org/apache/iotdb/libudf/it/dlearn/DLearnIT.java
+++ b/integration-te... | 2 | 2 | 2 | [{"id": "G0", "claim": "The parent and udf-api versions in library-udf/pom.xml were bumped to 2.0.7-SNAPSHOT, but on the dev/1.3 branch they should be 1.3.x (1.3.7-SNAPSHOT).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "register-UDF.bat was change... | null |
apache__iotdb__17443 | apache/iotdb | 17,443 | defect | 79d8fa76ecccb4cd29ca4d74f5fb7cb447f835b8 | 280b679aa82451ef9d418adb7318fec055b54460 | Pipe: Refactor AirGap receiver with configurable payload size control |
<!--
In each section, please describe design decisions made, including:
- Choice of algorithms
- Behavioral aspects. What configuration values are acceptable? How are corner cases and error
conditions handled, such as when there are insufficient resources?
- Class organization and design (how the logic... | diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/airgap/IoTDBAirGapReceiver.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/airgap/IoTDBAirGapReceiver.java
index 0ff1834e8cd0f..10b1b293af832 100644
--- a/iotdb-core/datanode/src/main/java/org/a... | 2 | 2 | 1 | [{"id": "G0", "claim": "The catch block's socket.close() added by the PR is redundant with the close in the finally block that always runs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests may be added covering the new payload-size limit and... | null |
apache__iotdb__17465 | apache/iotdb | 17,465 | defect | d245edce685bede38f067afb91454fc675a03bd5 | ebcfc4ffe2af10ee40fdc5f1b37781639fb170d5 | Enhance the last query permission && Fixed the rollback version of alter view / table plans && Deleted the unnecessary mods in Tree view deletion | ## Description
As the title said.
<!--
In each section, please describe design decisions made, including:
- Choice of algorithms
- Behavioral aspects. What configuration values are acceptable? How are corner cases and error
conditions handled, such as when there are insufficient resources?
- Class orga... | diff --git a/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/impl/RestApiServiceImpl.java b/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/impl/RestApiServiceImpl.java
index f6c42533a6231..e708c9434cd63 100644
--- a/external-service-impl/rest/src/main/java/org/apac... | 2 | 2 | 2 | [{"id": "G0", "claim": "The permission check in executeFastLastQueryStatement was placed after filling the last-query map, so it appears to have no effect on the cache-hit branch of the fast last query.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In... | null |
apache__iotdb__17469 | apache/iotdb | 17,469 | defect | 55082b245298c9aeb08deebcaccb5ff2acccb893 | 09d5ac4788d4440c03ebb52447abcf2f1ed6c5b0 | Fix: send set configuration only to target nodes and harden compaction schedule interruption handling | ## Summary
- Fix `set configuration ... on <nodeId>` so ConfigNode only forwards the request to the targeted DataNode instead of all registered DataNodes
- Harden compaction/TTL schedule workers so user-triggered stop interrupts exit cleanly while unexpected interruptions are logged and tolerated
- Isolate object-fi... | diff --git a/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBSetConfigurationTableIT.java b/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBSetConfigurationTableIT.java
index 2295b88f1bc52..8a4bc388a59fd 100644
--- a/integration-test/src/test/java/org/apache/iotdb/relat... | 2 | 2 | 2 | [{"id": "G0", "claim": "The generic catch added in CompactionScheduleTaskWorker.call() should catch Throwable instead of only Exception, as the reviewer's suggestion block `} catch (Throwable e) {` requests.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
apache__iotdb__17472 | apache/iotdb | 17,472 | defect | d245edce685bede38f067afb91454fc675a03bd5 | 5afa1cfd32b27858d0bb1d39d709e3ac1a863b9d | [Pipe] Deduplicate historical tsfile events in IoTConsensusV2 pipes | ## Why
In IoTConsensusV2 batch mode, the same logical tsfile can be observed by both the realtime source and the historical source in the same consensus pipe task. When that happens, the duplicated historical tsfile event may allocate another `replicateIndex` for an already captured file and cause redundant receiver-s... | diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/source/dataregion/historical/PipeHistoricalDataRegionTsFileAndDeletionSource.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/source/dataregion/historical/PipeHistoricalDataRegionTsFileAndDeletionSource.java
index 66f8d48ce2813..18... | 5 | 4 | 3 | [{"id": "G0", "claim": "The renamed eliminateProgressIndex signature leaves call sites in PipeTsFileInsertionEvent and PipeCompactedTsFileInsertionEvent still passing pipeName, which breaks compilation and removes the wrong (unscoped) entry; all remaining callers should pass the same task-scope ID used in registerProgr... | null |
apache__iotdb__17480 | apache/iotdb | 17,480 | defect | 4559929126e6504b11d7a56236bd0039379959aa | 95eb370cdaa81c6f59f4ab24dd8628b065be812d | Subscription: support encrypted password auth in consumer builder | ## Summary
- add encrypted password support to subscription consumer builders and runtime consumer metadata
- pass encrypted auth through subscription pipe creation, with fallback from encrypted verification to raw-password hashing
- add ignored integration coverage for encrypted-password pull consumer behavior and upd... | diff --git a/integration-test/src/test/java/org/apache/iotdb/subscription/it/triple/treemodel/regression/param/IoTDBEncryptedPasswordPullConsumerIT.java b/integration-test/src/test/java/org/apache/iotdb/subscription/it/triple/treemodel/regression/param/IoTDBEncryptedPasswordPullConsumerIT.java
new file mode 100644
inde... | 3 | 2 | 1 | [{"id": "G0", "claim": "Questions why the newly added encrypted-password IT is marked unstable and disabled with @Ignore instead of being enabled.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test code should follow the project's camelCase nam... | null |
apache__iotdb__17487 | apache/iotdb | 17,487 | defect | 1aba8731e85f65d60baefabb7f7423b0ff1a9c24 | 125b762f7f17803e27f6582e839ee5961a5d8e66 | Show pipe plugin loading errors in plugin listing | ## Description
Add plugin loading exception messages to pipe plugin metadata and expose them through SHOW PIPEPLUGINS and information_schema.pipe_plugins, so users can diagnose initialization and class loading failures directly from query results.
<!--
In each section, please describe design decisions made, includ... | diff --git a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/pipe/PipePluginInfo.java b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/pipe/PipePluginInfo.java
index c7c138718f683..3faeb4fdda57e 100644
--- a/iotdb-core/confignode/src/main/java/org/apache/iotdb/co... | 2 | 2 | 2 | [{"id": "G0", "claim": "The type labels passed to checkPipePluginAvailabilityForPipeCreation should be 'source' and 'sink' instead of 'extractor' and 'connector', so pipe-creation errors name the plugin roles correctly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"... | null |
apache__iotdb__17513 | apache/iotdb | 17,513 | defect | aa4b551befb9c8fcdb880503e27a8b9f8e1550f8 | 830f0b9df4fd1620317a7fb0d3d5fa4328d336da | Fix region migration reliability regressions | ## Summary
- avoid double retry storms when deleting old region peers on DataNodes that are already `Unknown`
- allow IoTConsensus `createLocalPeer` to reuse an existing consensus directory after cluster crash recovery
- assign IoTConsensusV2 realtime replicate indexes lazily when events are actually supplied so Hybrid... | diff --git a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/env/RegionMaintainHandler.java b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/env/RegionMaintainHandler.java
index 5043becc1fad5..47105dda1c582 100644
--- a/iotdb-core/confignode/src/main/java/org/apache/... | 3 | 1 | 0 | [{"id": "G0", "claim": "createLocalPeer should reuse the path only when it is an existing directory and warn/throw (or clean up) when the path exists but is not a directory.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "shouldAssignReplicateIndex t... | null |
apache__iotdb__17530 | apache/iotdb | 17,530 | defect | 4e06946fac0cc54d47f5487b2a3b08180f46f2be | d536c937f30f82db77c8250d9eeb42aafaffc5b8 | Manually trigger repair data partition | <img width="668" height="106" alt="image" src="https://github.com/user-attachments/assets/53728ab7-5d97-4e6e-8e19-81f864695093" />
| diff --git a/iotdb-core/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IoTDBSqlParser.g4 b/iotdb-core/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IoTDBSqlParser.g4
index 31d1007867a50..c6271c134cb00 100644
--- a/iotdb-core/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IoTDBSqlParser.g4
+++ b/iotdb-core/antlr/... | 8 | 3 | 2 | [{"id": "G0", "claim": "In ClusterConfigTaskExecutor.repairDataPartitionTable() the catch block calls future.setException(e) and then falls through to the else branch which tries to set a second exception; add a `return future;` after future.setException(e) to make the flow explicit.", "category": "correctness", "verdi... | null |
apache__iotdb__17581 | apache/iotdb | 17,581 | defect | 06621d0f045a15a66e2f16434fd0724caef226db | 1b9d68e0b700fffe00e60bf7ed64a5afc3cf46f2 | Fix allocate of MemoryBlock | This PR fixes a memory concurrent allocate bug in AtomicLongMemoryBlock:
AtomicLongMemoryBlock.allocate() used AtomicLong.updateAndGet() with a lambda that had an external side effect (result.set(true)).
updateAndGet() is CAS-retry based: when CAS fails, the lambda can be executed multiple times. Under contention, ... | diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/Coordinator.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/Coordinator.java
index 9cee0e71a9702..d0c256a34c3fa 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/Coordinato... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `LOGGER.warn()` inside `release()`'s `updateAndGet` lambda is a side effect that may produce a false alarm (WARN fired on the first lambda run even though a CAS retry succeeds) or duplicate warnings for one `release()` call; rewrite `release()` as a hand-written CAS loop consistent with `all... | null |
apache__jena__3702 | apache/jena | 3,702 | defect | dcad2c982cae8f47835f41a61799639625fec9a6 | e37e1abdd3771d3e26f786c001e8f75f0aa6312f | GH-3698: Allow JSON-LD conversion outside of read/write operations | GitHub issue resolved #3698
Pull request Description: Proposal to allow conversion between Jena datasets and JSON-LD and vice versa outside of read/write operations.
This PR is mostly about extracting the existing code in dedicated classes to allow it.
In `JsonLD11Writer`, I also introduced the JSON-LD options... | diff --git a/jena-arq/src/main/java/org/apache/jena/riot/lang/LangJSONLD11.java b/jena-arq/src/main/java/org/apache/jena/riot/lang/LangJSONLD11.java
index 323889c1ff4..f9487df5e7e 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/lang/LangJSONLD11.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/lang/LangJ... | 3 | 3 | 2 | [{"id": "G0", "claim": "In JenaToTitanium.convert, the RdfConsumerException raised by consumer.quad for URI/blank objects is only printed via e.printStackTrace() instead of being converted to a JenaTitaniumException, so the failure is swallowed.", "category": "design", "verdict": "supported", "priority": "P1", "scope":... | null |
apache__jena__3703 | apache/jena | 3,703 | defect | dcad2c982cae8f47835f41a61799639625fec9a6 | f022a54ae9aedc71a6095749bdffe7c9d4965add | GH-3593: Remove SpatialIndexV1 | GitHub issue resolved #3593
Pull request Description:
This is an attempt to remove SpatialIndexV1 by deleting the class and seeing what the consequences are.
* `SpatialIndexStorage`- deprecated but not marked for removal. Reading the java comments, look like this should go.
* `SpatialIndexIo` - this is marked... | diff --git a/jena-geosparql/src/main/java/org/apache/jena/geosparql/spatial/SpatialIndexStorage.java b/jena-geosparql/src/main/java/org/apache/jena/geosparql/spatial/SpatialIndexStorage.java
deleted file mode 100644
index 08a3c8a3ff6..00000000000
--- a/jena-geosparql/src/main/java/org/apache/jena/geosparql/spatial/Spat... | 1 | 1 | 0 | [{"id": "G0", "claim": "The private two-argument load method could be removed and the public one-argument load method reduced to a direct delegation `return SpatialIndexIoKryo.load(spatialIndexFile);`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__jmeter__487 | apache/jmeter | 487 | defect | a6824ae79e09dddb6cd211fa6aa3a722ad43aeeb | d2790912eeeaa0760bfba43f7bbd993ffb4e670a | Add support for InfluxDB 2 | ## Description
This PR add support for InfluxDB 2 authentication token ([see documentation](https://v2.docs.influxdata.com/v2.0/security/)).
The `InfluxdbBackendListenerClient` has new optional property: `influxdbToken` that is used as an `Authorization` header in Http request.
## Motivation and Context
Sup... | diff --git a/src/components/src/main/java/org/apache/jmeter/visualizers/backend/influxdb/HttpMetricsSender.java b/src/components/src/main/java/org/apache/jmeter/visualizers/backend/influxdb/HttpMetricsSender.java
index 272bc5b31a3..194f3a48203 100644
--- a/src/components/src/main/java/org/apache/jmeter/visualizers/back... | 2 | 2 | 1 | [{"id": "G0", "claim": "The token check should also treat the empty string as absent, not only null.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A constant should be created for the Authorization header value instead of the inline \"Token \" lite... | null |
apache__jmeter__489 | apache/jmeter | 489 | defect | 81ba16c2213c6af78a388a7c94a11474d20348a6 | 547e6501eed7c3a323650db4bec8a10b504a8a0b | New JMESPATH extractor | ## Description
UbikLoadPack team is happy to contribute this new component that allows using JMESPATH (http://jmespath.org/) as a new technology to extract data from JSON.
Regards
Qian Qian
Philippe
## Motivation and Context
JSON-PATH is available today but has many limits:
- As seen here https://bz.a... | diff --git a/checksum.properties b/checksum.properties
index 19b5703c043..8d73f41844a 100644
--- a/checksum.properties
+++ b/checksum.properties
@@ -70,6 +70,8 @@ dnsjava/dnsjava/2.1.8=A4BCB8BBB43906F42FAF1802C504CCC9C616E49AFD5DD7DB77676D13AA
gradle.plugin.com.github.spotbugs/spotbugs-gradle-plugin/1.6.10=E7486B32EF6... | 10 | 8 | 2 | [{"id": "G0", "claim": "Do not use tabs for indentation in src/bom/build.gradle.kts.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A checkstyle verification should probably be set up so that whitespace issues like these tabs are caught automati... | null |
apache__jmeter__498 | apache/jmeter | 498 | defect | 32e677b498d4eacdd8f11cecfbc8758b7e8911be | c1c6f9c227752847253f1cd58ac9087176d88ea2 | New JMESPATH assertion (Fixes Enhancement 63763 in bugzilla) | ## Description
UbikLoadPack team is happy to contribute this new Assertion element that allows using JMESPATH (http://jmespath.org/) as a new technology to assert on JSON data.
Implementation notes:
- We have factored some code with JMESPATH Extractor (JMESPath expression caching)
- We have factored out code ... | diff --git a/bin/saveservice.properties b/bin/saveservice.properties
index d8f7a85802b..e271e265273 100644
--- a/bin/saveservice.properties
+++ b/bin/saveservice.properties
@@ -190,6 +190,8 @@ JDBCDataSource=org.apache.jmeter.protocol.jdbc.config.DataSourceElement
JDBCPostProcessor=org.apache.jmeter.protocol.jdbc.proc... | 4 | 2 | 1 | [{"id": "G0", "claim": "A new ObjectMapper is instantiated on every assertion call, and the reviewer asks to avoid instantiating it on this hot path.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The boolean-parameterized test data is extremely har... | null |
apache__jmeter__504 | apache/jmeter | 504 | defect | ce0870f60d2ff40d980a84d37267a5c73645447b | 819806053bbe642100fb69c681f940b0f7075a76 | Improved coverage for HttpMetricsSender | ## Description
Improved test coverage, JavaDoc and refactored to align with pattern in Graphite classes for `writeAndSendMetrics`.
| diff --git a/src/components/src/main/java/org/apache/jmeter/visualizers/backend/influxdb/HttpMetricsSender.java b/src/components/src/main/java/org/apache/jmeter/visualizers/backend/influxdb/HttpMetricsSender.java
index 5f1387615b4..b406e2abdd9 100644
--- a/src/components/src/main/java/org/apache/jmeter/visualizers/back... | 5 | 2 | 0 | [{"id": "G0", "claim": "The rewritten class javadoc formatting looks odd and should be corrected to match the original InfluxDB line-protocol documentation.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The sender looks like it fails to put a com... | null |
apache__jmeter__512 | apache/jmeter | 512 | defect | 8ccbfdbb69fcd3b87aa0fe83f8d46cc9fc75f5ab | 295b9d95d140013541485a93d871d9cc1b1aaf2e | Bug 63775 | Bug 63775 - Allow Boundary Extractor to accept empty boundaries
## Description
Allow Boundary Extractor to accept empty left or right boundary text
## Motivation and Context
Allow fast text extraction than regular expression
Allow to include text from the start and until the end of text
## How Has This Bee... | diff --git a/src/components/src/main/java/org/apache/jmeter/extractor/BoundaryExtractor.java b/src/components/src/main/java/org/apache/jmeter/extractor/BoundaryExtractor.java
index defe8fcd90a..07de327502f 100644
--- a/src/components/src/main/java/org/apache/jmeter/extractor/BoundaryExtractor.java
+++ b/src/components/... | 6 | 3 | 2 | [{"id": "G0", "claim": "The new code added to BoundaryExtractor.java should be indented with 4 spaces instead of tabs.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request seems to contain format/ordering issues that show up in the Tr... | null |
apache__jmeter__5812 | apache/jmeter | 5,812 | defect | 50e2015613752fbd0ceedc84440d0bea27848b91 | b982d060deb685da60b55f314377d4a5fb638faa | Bug #5807 - Fix an ArrayIndexOutOfBoundsException on HTTP parameters … | … line on special case when key and value are empty, i.e.: "k1=v1&=&k2=v2"
## Description
Fix parsing issue on special case when key and value are empty, i.e.: "k1=v1&=&k2=v2"
## Motivation and Context
Related to https://github.com/apache/jmeter/issues/5807
## How Has This Been Tested?
Run the provided test... | diff --git a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java
index feb6494cbe6..55da3de326f 100644
--- a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/vis... | 2 | 2 | 0 | [{"id": "G0", "claim": "Initializing name to \"\" instead of null when no valid key is found is wrong; use null for name and derive the noNameAndNoValue boolean from it.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new tests should assert on t... | null |
apache__jmeter__5869 | apache/jmeter | 5,869 | defect | 5d18b2ce1ea56c638666ac8b543bc7dcd66fd513 | c1edfb74259e8fc7b3a0976f9dca83e895773d12 | Add more variables to template to compute sampler names | ## Description
Add more variables to the mini template language to name samplers when recording a test via HTTPS Script recorder
The new variables are
* method - HTTP method of the request
* host - host of the URL recorded (called domain in the sampler)
* scheme - scheme of the URL recorded (called protoc... | diff --git a/src/core/src/main/resources/org/apache/jmeter/resources/messages.properties b/src/core/src/main/resources/org/apache/jmeter/resources/messages.properties
index dc93ac77c13..972baae163c 100644
--- a/src/core/src/main/resources/org/apache/jmeter/resources/messages.properties
+++ b/src/core/src/main/resources... | 3 | 1 | 1 | [{"id": "G0", "claim": "The request number should perhaps always be supplied (and only incremented when the method matches) instead of being gated behind the non-CONNECT condition, and the values.toArray(new Object[values.size() + 1]) dance looks strange.", "category": "maintainability", "verdict": "uncertain", "priori... | null |
apache__jmeter__5870 | apache/jmeter | 5,870 | defect | 0a65d7ae147aa5464bfb8dc997604f81a8d0749e | 9865565ccb54160ae125c62c8763903fe75869b3 | Deadlock in testsuite | ## Description
Place code, that acts on live AWT components into the AWT thread.
Simplify code, that used recursion to set input parameters. Saw this one, while looking at the code, that was potentially in the wrong thread.
## Motivation and Context
Try to overcome a deadlock in test suite
When runni... | diff --git a/src/core/src/main/java/org/apache/jmeter/gui/action/SelectTemplatesDialog.java b/src/core/src/main/java/org/apache/jmeter/gui/action/SelectTemplatesDialog.java
index 9f017d7c9e0..deb9a33720b 100644
--- a/src/core/src/main/java/org/apache/jmeter/gui/action/SelectTemplatesDialog.java
+++ b/src/core/src/main/... | 2 | 1 | 0 | [{"id": "G0", "claim": "populateTemplatePage seems to be a UI method called outside the invokeLater block this PR added, and the reviewer asks whether to move it inside that invokeLater.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer as... | null |
apache__jmeter__608 | apache/jmeter | 608 | defect | 637701eea585cc55c9f3cc383d5fcda267f5adf4 | 2923c32093246a32f177f72f6548a236e9e67da0 | Bug 64553 When using Transaction Controller, send Bytes and Received Bytes are displayed as 0 in the influxdb(BackendListener) | ## Description
Fix bug 64553
## Motivation and Context
https://bz.apache.org/bugzilla/show_bug.cgi?id=64553
## How Has This Been Tested?
Check sent data to Influx
## Types of changes
- Bug fix
## Checklist:
- [X] My code follows the [code style][style-guide] of this project.
- [ ] I have upd... | diff --git a/src/components/src/main/java/org/apache/jmeter/visualizers/backend/SamplerMetric.java b/src/components/src/main/java/org/apache/jmeter/visualizers/backend/SamplerMetric.java
index b41d41e6719..e6ad2f0d1e2 100644
--- a/src/components/src/main/java/org/apache/jmeter/visualizers/backend/SamplerMetric.java
+++... | 3 | 3 | 0 | [{"id": "G0", "claim": "The cumulated variant of SamplerMetric.add should be its own named method instead of taking a boolean isCumulated flag, since call sites like samplerMetric.add(sampleResult, false) are less readable than add(sampleResult) / addCumulative(sampleResult).", "category": "design", "verdict": "support... | null |
apache__jmeter__660 | apache/jmeter | 660 | defect | bbd7bbe78b4a9c760287975a7626c19fed86744c | 48902f10179b38442b47875f38132f7cb9679d87 | 65108: Support JMeter variables in GraphQL HTTP Request | ## Description
In GraphQL query/mutation variables, JMeter variables can be referenced.
A JSON String value with a JMeter variable reference (e.g, `{ "var1":"${jm.var1}"}`) has no problem as they are replaced at runtime without breaking any JSON spec, but a non-String value with JMeter variable reference (e.g, `{ "... | diff --git a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/util/GraphQLRequestParamUtils.java b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/util/GraphQLRequestParamUtils.java
index 0d3f7422079..28e286f3019 100644
--- a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http... | 1 | 1 | 1 | [{"id": "G0", "claim": "The JMETER_VARIABLE_REFERENCE_PATTERN regex mis-handles JMeter variable references (it cannot match constructs like nested or function-style references such as ${func(${var1})} or ${__log(\"Hello\\, ${__machineIP()}\")}), and since no regex approach can cover all cases, the parse/escape step sho... | null |
apache__jmeter__6658 | apache/jmeter | 6,658 | defect | bc0d8eba07c796d88a95ade4b8e1527c17ee5e2d | a3ff6300a92bbb779be5fd4ed846ab8e32c95815 | fix: preserve HTTP method on 307 and 308 redirects | ## Summary
Fixes #6080
This change fixes redirect handling in JMeter's `Follow Redirects` path for HTTP 307 and 308 responses.
At the moment, JMeter only treats 307 as a redirect for `GET` and `HEAD`, so requests such as `POST 307` are not followed. In addition, redirected requests for 307/308 can still lose t... | diff --git a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/sampler/HTTPSampleResult.java b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/sampler/HTTPSampleResult.java
index dc7918c31ec..9d12e749c16 100644
--- a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/sampler/H... | 3 | 3 | 0 | [{"id": "G0", "claim": "The always-true `shouldRedirect` local in redirectionParams' redirect loop is redundant and should be inlined into the next line; vlsi further asked whether the now-constant parameter could then be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr... | null |
apache__jmeter__677 | apache/jmeter | 677 | defect | 062190a2665fdea442e89f0e3a454c75e627b99a | f3c525a9dfedb1ccf02aee4ba29467d129f7d9be | Align ssl props / Enable setting cipher suite (WIP) | ## Description
- Use https.cipherSuites property for HC4
- Use https.cipherSuites and https.socket.protocols in Proxy
## Motivation and Context
Clarification of use.
Allow fine grain control during recording.
## How Has This Been Tested?
Manual testing and debugging.
## Types of changes
- Bug fix... | diff --git a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/Proxy.java b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/Proxy.java
index ad732efdb9d..17f01b8dfd4 100644
--- a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/Proxy.java
+++ b/src/protocol... | 2 | 2 | 1 | [{"id": "G0", "claim": "Trim the property value first and split it with the \\s+ pattern, so that multiple whitespace characters are accepted as a separator.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The field naming is misleading; rename the f... | null |
apache__jmeter__717 | apache/jmeter | 717 | defect | 7548000b1f1dc6708e2186afa721df71057b8082 | 5de2d3f14ffae9cbc7320cccf5085fea3b3696c0 | [66139] Ensure Open Model Thread Group initializes config elements only once | See
* https://github.com/apache/jmeter/issues/5682 | diff --git a/src/components/src/test/java/org/apache/jmeter/control/TestTransactionController.java b/src/components/src/test/java/org/apache/jmeter/control/TestTransactionController.java
index ac54f064793..96d35f4565e 100644
--- a/src/components/src/test/java/org/apache/jmeter/control/TestTransactionController.java
+++... | 2 | 1 | 1 | [{"id": "G0", "claim": "Consider using a Thread.UncaughtExceptionHandler instead of the ExecutorService for running the engine's management tasks like start/stop test.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The newly added config-element test keeps... | null |
apache__kafka__17015 | apache/kafka | 17,015 | defect | b9fe9f532fe11c658d07b11543e874526cb837b8 | 1463cfb8aaff2031e439e821f5bc94c00167f1bc | KAFKA-17430: Move RequestChannel.Metrics/RequestMetrics to server module |
### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
| diff --git a/checkstyle/import-control-jmh-benchmarks.xml b/checkstyle/import-control-jmh-benchmarks.xml
index ddbf22e210d7e..1612477ea00f4 100644
--- a/checkstyle/import-control-jmh-benchmarks.xml
+++ b/checkstyle/import-control-jmh-benchmarks.xml
@@ -56,6 +56,7 @@
<allow pkg="org.apache.kafka.metadata"/>
<a... | 5 | 3 | 1 | [{"id": "G0", "claim": "Add a comment to the metricsGroup field reminding readers these metrics are kept for compatibility.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "RequestChannelMetrics.apply should throw NoSuchElementException (following S... | null |
apache__kafka__17475 | apache/kafka | 17,475 | defect | 8125c3da5bb6ebb35a0cb3494624d33fad4e3187 | 024a6f18e96c6006795cba0dd3a436a795a77d9d | KAFKA-17099: Print the origin processor node in logs for processing exceptions | This PR leverages the updates brought by [KIP-1033](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1033%3A+Add+Kafka+Streams+exception+handler+for+exceptions+occurring+during+processing) to get the name of the processor node which raised a processing exception and display it in the stacktrace instead of the sour... | diff --git a/streams/src/main/java/org/apache/kafka/streams/errors/internals/FailedProcessingException.java b/streams/src/main/java/org/apache/kafka/streams/errors/internals/FailedProcessingException.java
index 03d687d2687ab..c4f85bd5f93c3 100644
--- a/streams/src/main/java/org/apache/kafka/streams/errors/internals/Fai... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the getter getFailedProcessorNodeName() to failedProcessorNodeName() because the project does not use the get-prefix with getters.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__kafka__19176 | apache/kafka | 19,176 | defect | b4cc88f6c45ff703f86fef47f52362870effaaf6 | 6509353a1b2ba6f2e283a206a9bbcac396aa2d12 | KAFKA-18651: Add Streams-specific broker configurations | This PR implements the broker-side configs proposed in [KIP-1071](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=311627992#KIP1071:StreamsRebalanceProtocol-BrokerConfigurations)
The configurations implemented by this PR are only those that were specifically aimed to be included in `AK 4.1`.
Review... | diff --git a/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfig.java b/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfig.java
index 03f0af738d209..0033a014b27ec 100644
--- a/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfig.java
+++ b... | 6 | 5 | 3 | [{"id": "G0", "claim": "GroupConfig should reference the GroupCoordinatorConfig default/doc constants instead of duplicating them, as the other group types do.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The min/max streams config doc strings... | null |
apache__kafka__19850 | apache/kafka | 19,850 | defect | f42abe6db8fb0fc1c668ab77acb8e878205fd32c | 564e60f55d61b836bb71df52b7fd07e1496aeb3a | KAFKA-19193 Support rack-aware partitioning for Kafka producer | According to
[KIP-1123](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1123%3A+Rack-aware+partitioning+for+Kafka+Producer),
this commit adds the support for rack-aware partitioning to
`BuiltInPartitioner`. It comes with two new configs for the producer:
`partitioner.rack.aware` and `client.rack`, which allows en... | diff --git a/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java b/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java
index 71d201b71f949..502b2cab9385c 100644
--- a/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java
+++ b/clients/src/main/java/org/... | 4 | 4 | 1 | [{"id": "G0", "claim": "Rename the field `partitionLoadStats` (of type `PartitionLoadStatsHolder`) to `partitionLoadStatsHolder`, because the current name is confusing when code reads `partitionLoadStats.inThisRack`, a member of the holder.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco... | null |
apache__kafka__21424 | apache/kafka | 21,424 | defect | 2df7c75fd55c28e1465e4ed8dd4a348a8caa4bd6 | a4f2ed54d79bc99b6027afa634ce303412fcfb84 | KAFKA-20119: Clarify that `Consumer#unsubscribe` does not trigger auto-commit | Document that unsubscribe() doesn't commit offsets even with auto-commit
enabled, and add test to verify this behavior
Reviewers: Lianet Magrans <lmagrans@confluent.io>, David Jacot
<djacot@confluent.io>, Chia-Ping Tsai <chia7712@gmail.com>
| diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java b/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java
index ad179f88e556d..9db7638e5338b 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java
+++ b/clients/src/main/java/org/... | 4 | 3 | 0 | [{"id": "G0", "claim": "An integration test should be added instead of the new unit test verifying that unsubscribe does not commit offsets with auto-commit enabled.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should be updated to ma... | null |
apache__kafka__21476 | apache/kafka | 21,476 | defect | dd1d31175d4198a71438a184fc815196def0cb47 | 031e3a59f8b6a233429d0306f010102f3e88c34c | KAFKA-15529: Fix race condition between isConsumed and position updates in AsyncKafkaConsumer fetch path | Previously, `isConsumed` was not volatile and `drain()` set `isConsumed
= true` before the `position` was updated. In the window between
`drain()` and the `position` update, the background thread could race
in, observe **_isConsumed == true but read a stale position_**, leading
to duplicate fetch requests with the old ... | diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/CompletedFetch.java b/clients/src/main/java/org/apache/kafka/clients/consumer/internals/CompletedFetch.java
index 5345bdcc8e9ae..f6fc3beeb8457 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/CompletedFetch.java... | 2 | 1 | 1 | [{"id": "G0", "claim": "Relying on partial thread-safety within CompletedFetch might easily lead to race conditions in the future; the reviewer asks whether a separate concurrent set to track buffered partitions has been considered, to be addressed in a follow-up.", "category": "design", "verdict": "uncertain", "priori... | null |
apache__kafka__21481 | apache/kafka | 21,481 | defect | 12eca09fb4615154b91bb84afdef768aef2866ac | 3e2d35ca42642a90c93fc98185884b6ea58001a6 | MINOR: Replace Properties with Map in ControllerConfigurationValidator validation path | Refactor `ControllerConfigurationValidator` and downstream validation
methods to use `Map` instead of `Properties`. Also adds explicit null
value validation for `CLIENT_METRICS` configs, which previously relied
on `Properties` throwing `NullPointerException` for null values.
Reviewers: Chia-Ping Tsai <chia7712@gmail.c... | diff --git a/core/src/main/scala/kafka/server/ControllerConfigurationValidator.scala b/core/src/main/scala/kafka/server/ControllerConfigurationValidator.scala
index f163a2739aea1..9e3a7997c2c82 100644
--- a/core/src/main/scala/kafka/server/ControllerConfigurationValidator.scala
+++ b/core/src/main/scala/kafka/server/Co... | 4 | 3 | 0 | [{"id": "G0", "claim": "The null-filtering-and-throw logic repeated across the TOPIC, CLIENT_METRICS and GROUP cases of ControllerConfigurationValidator should be extracted into a common helper method, as sketched in the comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
apache__kafka__21495 | apache/kafka | 21,495 | defect | d18b97702c4b5172b583851cfd4658d9b1950d50 | 4dc3701683955a69b387694d423a5e8b197078c5 | KAFKA-20106: Ensure reconciled assignment updated within poll | Fix to ensure that reconciled assignments are only updated in the
subscription state with a call to consumer.poll.
Before this PR, assignment changes occurred in the background thread
when async operations commit/callback completed : (1)commit → (2)revoke
callback → (3)assignment update → (4)assign callback), potenti... | diff --git a/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/PlaintextConsumerSubscriptionTest.java b/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/PlaintextConsumerSubscriptionTest.java
index ff840ebf2ea7a..5e50bb1b313e8 100644
--- a/clients/clients... | 7 | 5 | 3 | [{"id": "G0", "claim": "The new integration test is very slow because regex resolution has a hardcoded minimum interval of 10s, so it needs a faster way to run or should be omitted.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change may have an i... | null |
apache__kafka__21523 | apache/kafka | 21,523 | defect | 7b46af69aa495ea612e1b771e8f5b1b5b89862f8 | 268d67be141e2813884e6b5926c4ef2121754ae7 | KAFKA-19774: Cleanups for KIP-1066 | Addressing feedback from https://github.com/apache/kafka/pull/21273
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
| diff --git a/clients/src/main/java/org/apache/kafka/clients/admin/LogDirDescription.java b/clients/src/main/java/org/apache/kafka/clients/admin/LogDirDescription.java
index be1bb6e8f5bb1..a541fa7e4acbf 100644
--- a/clients/src/main/java/org/apache/kafka/clients/admin/LogDirDescription.java
+++ b/clients/src/main/java/o... | 4 | 3 | 3 | [{"id": "G0", "claim": "The pull request lacks a test for decommissioning log directories because that is tricky to do with ClusterTest, so it should be addressed in a follow-up PR and a Jira created for it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":... | null |
apache__kafka__21536 | apache/kafka | 21,536 | defect | 172aa3cbcd2236be878dfcb47d0ebc35cc77a834 | 8f948de63983a91286e9310481dd5313bc13ae5e | KAFKA-20173: Propagate headers into serde 2/N | Follow-up for https://github.com/apache/kafka/pull/21490
This PR concentrate on `WindowKeySchema` and related classes:
- `PrefixedWindowKeySchemas`
- `TimeWindowedSerializer`
- `TimeWindowedDeserializer`
Reviewers: Alieh Saeedi <asaeedi@confluent.io>, Matthias J. Sax
<matthias@confluent.io>
| diff --git a/streams/src/main/java/org/apache/kafka/streams/kstream/TimeWindowedDeserializer.java b/streams/src/main/java/org/apache/kafka/streams/kstream/TimeWindowedDeserializer.java
index 26fcbac785fb9..4725974c7da72 100644
--- a/streams/src/main/java/org/apache/kafka/streams/kstream/TimeWindowedDeserializer.java
++... | 2 | 1 | 0 | [{"id": "G0", "claim": "The cache-key deserialization calls toWindowKey with a new empty RecordHeaders, and the author asked whether headers are needed there while the reviewer later asked whether passing the cache entry's headers in would be difficult for future-proofing.", "category": "design", "verdict": "opposed", ... | null |
apache__kafka__21538 | apache/kafka | 21,538 | defect | 66cc6b6297edf67a533d0aadf3dc31cab3b59e5a | f0e191e4f3a39ebb847feea1e99520c2ecce72ae | MINOR: add test cases for dumpLogSegments | Add some test to dumpLogSegmentsTest to enhance test coverage.
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
| diff --git a/tools/src/main/java/org/apache/kafka/tools/DumpLogSegments.java b/tools/src/main/java/org/apache/kafka/tools/DumpLogSegments.java
index 69e5cf091ba05..506621d3f7b6e 100644
--- a/tools/src/main/java/org/apache/kafka/tools/DumpLogSegments.java
+++ b/tools/src/main/java/org/apache/kafka/tools/DumpLogSegments.... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error output for indexed offsets not found in the log should also log the name of the file they were looked up in.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
apache__kafka__21540 | apache/kafka | 21,540 | defect | b974ccd8d2c0371246aa227952e86f6055557e4c | a5e22fc52bb767417072fb2a817dceb65bd0ded3 | KAFKA-20264: fix overwrite in recursive parent-node matching | Description:
This change fixes a bug in recursive parent-node matching where a
previously found ancestor match could be overwritten by a later branch
returning null.
The issue occurs when traversing multiple parents. if an earlier parent
path finds a matching ancestor but a later parent path does not, the
pr... | diff --git a/streams/src/main/java/org/apache/kafka/streams/kstream/internals/InternalStreamsBuilder.java b/streams/src/main/java/org/apache/kafka/streams/kstream/internals/InternalStreamsBuilder.java
index d42f2de916714..e0bff8608f7c9 100644
--- a/streams/src/main/java/org/apache/kafka/streams/kstream/internals/Intern... | 4 | 2 | 0 | [{"id": "G0", "claim": "The test accesses findParentNodeMatching via reflection; it would be easier to make the method package-private (the test is in the same package) and leave a '// Visible for testing' comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":... | null |
apache__kafka__21566 | apache/kafka | 21,566 | defect | d9c77be2957f3f73ef07d194a4d739765a896a38 | 4db325cea2c3165bf33ee1fbb88fef682fd313ba | KAFKA-19943: Implement state store clean up on start | Implementation for KIP-1259
Adds a new property to set max directory age, and remove directories if
`current time - max age > last modify time`.
Reviewers: Matthias J. Sax <matthias@confluent.io>
| diff --git a/streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java b/streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java
index ec21a70483710..48f9a602157dc 100644
--- a/streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java
+++ b/streams/src/main/java/org/apache/kafka/streams/KafkaStre... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new startup-cleanup call in KafkaStreams.start() should get a test even though it looks simple, to guard the code against future accidental breakage.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G5", "claim": "The !lockedTasksToOwner.isEm... | null |
apache__kafka__21576 | apache/kafka | 21,576 | defect | 53032d2e4fe038cb8a6ac5c93a701e8a445ce024 | 15878623bd52ca02ebb824bcb13bc07f4f5d1988 | KAFKA-19149: Add KIP-877 support to MirrorMaker | Implements [KIP-1280](https://cwiki.apache.org/confluence/x/a4s8G)
Reviewers: Luke Chen <showuon@gmail.com>
| diff --git a/connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorCheckpointConfig.java b/connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorCheckpointConfig.java
index b7625da619ddf..b397ff742e809 100644
--- a/connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorCheckpointCo... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new unit tests testSourceTags and testCheckpointTags should also verify the `connector` tag.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Increase the waitForCondition timeout in testConnectorMetrics from 10 to 30 seconds to ... | null |
apache__kafka__21577 | apache/kafka | 21,577 | defect | e0d1d232f878aa890dbd88da7fc41bce293f5853 | 25a1108a4c81015569c0b4c6bb7ec7014cae901f | KAFKA-19562: Replace hand-written AbortedTxn with generated protocol | Replace the manually maintained AbortedTxn class with a generated
protocol message defined in AbortedTxn.json.
Also simplifies TransactionIndex buffer management since the generated
class copies field values at construction time instead of holding a
buffer reference.
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
| diff --git a/clients/src/main/resources/common/message/AbortedTxn.json b/clients/src/main/resources/common/message/AbortedTxn.json
new file mode 100644
index 0000000000000..d6b55de5cdffd
--- /dev/null
+++ b/clients/src/main/resources/common/message/AbortedTxn.json
@@ -0,0 +1,35 @@
+// Licensed to the Apache Software Fo... | 5 | 5 | 4 | [{"id": "G0", "claim": "Add a unit test ensuring the binary produced by the generated AbortedTxn protocol is totally equal to the binary of the old hand-written AbortedTxn.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The version check applied when re... | null |
apache__kafka__21639 | apache/kafka | 21,639 | defect | 8f246cc06d3dfc7e1f31aa1a80093348403f0fb2 | cedd396ccc1a3e37bc2c71ccda82d3f0c220a49b | KAFKA-20262: Changelog tombstone records drop custom headers when usi… | When utilizing headers-aware state stores in Kafka Streams, we need to
ensure that any delete operation (remove(), put(key, null), or similar)
handles headers correctly. While a delete is, well, a delete on the
state store itself, it's a tombstone in the changelog topic.
This PR ensures, that tombstones written into c... | diff --git a/streams/src/main/java/org/apache/kafka/streams/state/internals/ChangeLoggingSessionBytesStoreWithHeaders.java b/streams/src/main/java/org/apache/kafka/streams/state/internals/ChangeLoggingSessionBytesStoreWithHeaders.java
index 1f8bf204dbf8b..e380127141dfc 100644
--- a/streams/src/main/java/org/apache/kafk... | 3 | 3 | 3 | [{"id": "G0", "claim": "The put(key, null) case must be handled too — by working with the internal ProcessorContext so custom headers reach the changelog tombstone, since recordContext().headers() does not carry custom headers by default.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "... | null |
apache__kafka__21706 | apache/kafka | 21,706 | defect | 9834b5189c742b8c508551a4a7a7382f792dbc0e | 1e26a882e0141d2ec682be3ad6a37eef4bbbf372 | KAFKA-20249: Optimize raw value extraction in headers-aware deserializers | This patch implements two optimizations, and their JMH benchmarks, and
opportunistic refactoring.
1. Skipping headers
Previously the raw value extraction in headers-aware deserializers
undergoes deserialization and/or copying of headers, while only skipping
is required. This happens in one case for both empty and no... | diff --git a/checkstyle/import-control-jmh-benchmarks.xml b/checkstyle/import-control-jmh-benchmarks.xml
index 7cafa743e154f..8828e713e49f5 100644
--- a/checkstyle/import-control-jmh-benchmarks.xml
+++ b/checkstyle/import-control-jmh-benchmarks.xml
@@ -43,6 +43,7 @@
<allow pkg="org.apache.kafka.security.authorizer... | 16 | 11 | 1 | [{"id": "G0", "claim": "Extend the empty-headers fast-path optimization to the headers-reading path of AggregationWithHeadersDeserializer as well (optimize `readHeaders`, and apply the `== 0x00` check in `headers()` too).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
apache__kafka__21708 | apache/kafka | 21,708 | defect | a76e58a8720514a796aeb7eb330a8db76b85f958 | 205aba56408e1efad1810310cfc30a549afe7593 | MINOR: Remove temporary internal config group.share.enable | ### Summary
Removes the internal configuration group.share.enable that was
previously used to enable share groups (KIP-932) in integration and
system tests. Share groups are now exclusively controlled by the
`share.version` feature flag, which is the proper enablement mechanism
for production use.
### Motivation
The `... | diff --git a/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerTest.java b/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerTest.java
index eba324b130488..9457f9e1dc6cb 100644
--- a/clients/clients-integration-tests/src/test/java... | 3 | 2 | 0 | [{"id": "G0", "claim": "A couple of test failures related to the pull request's change are occurring in CI.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "claim": "Consider whether --feature share.version=0 should be set when use_share_groups is false, so ... | null |
apache__kafka__21711 | apache/kafka | 21,711 | defect | a76e58a8720514a796aeb7eb330a8db76b85f958 | bba0cf623081353f8a8e4d615347af1358180fc3 | MINOR: Share group tidying | Minor tidying up of share group code, mainly fixing compiler warnings.
Also fixed three flaky tests, all of which were failing occasionally
because of impatience.
Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
| diff --git a/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerTest.java b/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerTest.java
index eba324b130488..ebc2b68e2de23 100644
--- a/clients/clients-integration-tests/src/test/java... | 5 | 1 | 0 | [{"id": "G0", "claim": "ShareConsumerTest contains some duplication of logic that should be tidied up in a follow-on PR.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The try/catch around the config lookup inside the TestUtils.waitForConditio... | null |
apache__kafka__21721 | apache/kafka | 21,721 | defect | 8337d8368c6f2a12c1f0f6e9493c03efc735c3c0 | 7f851686d3527586c371d25b1d8b0e90048531ab | KAFKA-20291 [2/3]: Implement assignment batching for share groups | Implement target assignment batching for share groups.
Delay computing the next assignment for share groups until their
assignment interval has elapsed since their last assignment computation
finished.
Also fix a bug where we would bump the group epoch on every heartbeat
when the target assignment is delayed and ther... | diff --git a/core/src/test/scala/unit/kafka/server/ShareGroupHeartbeatRequestTest.scala b/core/src/test/scala/unit/kafka/server/ShareGroupHeartbeatRequestTest.scala
index 11bf42b3f6cab..fbb5de920692f 100644
--- a/core/src/test/scala/unit/kafka/server/ShareGroupHeartbeatRequestTest.scala
+++ b/core/src/test/scala/unit/k... | 2 | 2 | 2 | [{"id": "G0", "claim": "The epoch bump due to initializedAssignmentPending should only happen when there is no pending assignment, so that delayed assignments do not bump the group epoch on every heartbeat — the author asks the maintainer to confirm this change is reasonable.", "category": "correctness", "verdict": "su... | null |
apache__kafka__21722 | apache/kafka | 21,722 | defect | 8337d8368c6f2a12c1f0f6e9493c03efc735c3c0 | 662296755c03a8b840a21846c572ab552252c37c | KAFKA-20291 [3/3]: Implement assignment batching for streams groups | Implement target assignment batching for streams groups.
Delay computing the next assignment for streams groups until their
assignment interval has elapsed since their last assignment computation
finished.
We run request tests with assignment batching disabled, except for
heartbeat tests, which we run with and withou... | diff --git a/core/src/test/scala/unit/kafka/server/StreamsGroupHeartbeatRequestTest.scala b/core/src/test/scala/unit/kafka/server/StreamsGroupHeartbeatRequestTest.scala
index bb4f2d220d8af..0a7df8d0a9808 100644
--- a/core/src/test/scala/unit/kafka/server/StreamsGroupHeartbeatRequestTest.scala
+++ b/core/src/test/scala/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The coordinator should still set the ASSIGNMENT_DELAYED status when the target assignment is offloaded, because applications otherwise think they are already running while the assignment is still delayed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
apache__kafka__21724 | apache/kafka | 21,724 | defect | 0a7b16c501b2d4e7eb981521a0235f8fa1836753 | 76ada522c3132306400709f7269ed8561153a181 | MINOR: improve StreamsConfig client-tags verification | Reviewers: Lucas Brutschy <lbrutschy@confluent.io>
| diff --git a/streams/src/main/java/org/apache/kafka/streams/StreamsConfig.java b/streams/src/main/java/org/apache/kafka/streams/StreamsConfig.java
index 7ad19d3562cab..c3f07aaa331bc 100644
--- a/streams/src/main/java/org/apache/kafka/streams/StreamsConfig.java
+++ b/streams/src/main/java/org/apache/kafka/streams/Stream... | 4 | 2 | 0 | [{"id": "G0", "claim": "The ConfigException thrown for an empty client-tag value passes a hardcoded \"[]\" as the configured value, which is misleading since the user configured e.g. whitespace; it should pass the actual tagValue so the error message reflects what was configured.", "category": "correctness", "verdict":... | null |
apache__kafka__21725 | apache/kafka | 21,725 | defect | 0a7b16c501b2d4e7eb981521a0235f8fa1836753 | aaef31290879318d57173fbaf4673413af6a1c87 | KAFKA-20116: Send client.rack via StreamsHeartbeatRequest | This PR set the `client.rack` (if configured) in the
StreamsHeartbeatRequest `RackId` field.
Reviewers: Lucas Brutschy <lbrutschy@confluent.io>
| diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManager.java b/clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManager.java
index c45e3da1b5e42..6907e113f65c7 100644
--- a/clients/src/main/java/org/apache/kafka/clie... | 3 | 2 | 0 | [{"id": "G0", "claim": "Nit: the test method name `testBuildingHeartbeatRequesClientTagSentWhenJoining` has a typo (missing a `t` in \"Request\") and should be `testBuildingHeartbeatRequestClientTagSentWhenJoining`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
apache__kafka__21726 | apache/kafka | 21,726 | defect | cc90f0bc3b7cad9f62084e7fda2223da3ab2fd01 | e3032215be292497e8c61c028ae1c05c6ded0e60 | MINOR: replace mkMap/mkEntry with Map.of/Map.entry in clients module | see https://github.com/apache/kafka/pull/21573#discussion_r2867553866
Replace `Utils.mkMap()` calls with `Map.of()` equivalents throughout
the clients module. Use `LinkedHashMap` where iteration order matters
(toString tests, partition assignor logic).
Reviewers: Christo Lolov <lolovc@amazon.com>, Mickael Maison... | diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/Fetch.java b/clients/src/main/java/org/apache/kafka/clients/consumer/internals/Fetch.java
index fa45de7e2cb4e..e9fb953dbb524 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/Fetch.java
+++ b/clients/src/main/jav... | 8 | 8 | 2 | [{"id": "G0", "claim": "The tests should not create private orderedMap helpers that duplicate Utils.mkMap(); use the existing Utils.mkMap() instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "Fetch.forPartition should use Map.of instead of n... | null |
apache__kafka__21730 | apache/kafka | 21,730 | defect | 24202c0d9b5ed9af2efe81e832a48eebdc3cb7c5 | 1f6658ac7f55b910ad274fa1ecedb43a28969fde | KAFKA-20300: Add broker configs for assignment batching and offload | Add group.{consumer,share,streams}.assignment.interval.ms config options
to control the delay between assignment calculation. These config
options are dynamic at the broker level.
Add group.{consumer,share,streams}.{min,max}.assignment.interval.ms
config options to limit the
group.{consumer,share,streams}.assignment.i... | diff --git a/core/src/main/scala/kafka/server/DynamicBrokerConfig.scala b/core/src/main/scala/kafka/server/DynamicBrokerConfig.scala
index 80c5a1235f04e..29234391cebd6 100755
--- a/core/src/main/scala/kafka/server/DynamicBrokerConfig.scala
+++ b/core/src/main/scala/kafka/server/DynamicBrokerConfig.scala
@@ -36,6 +36,7 ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The reviewer questions why GroupCoordinatorConfig.clampDynamicConfigs needs to be called in DynamicBrokerConfig.updateCurrentDynamicConfig at all.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The clamp call should live in KafkaC... | null |
apache__kafka__21734 | apache/kafka | 21,734 | defect | c47d68ae4b5eee38082a97d85cdc0a20c771c89f | 239ef3b567f6f8045a6c9a95788a951c8be51128 | KAFKA-20158: Fix header-based key deserialization in MeteredSessionStoreWithHeaders iterator methods | Fixes a bug where MeteredSessionStoreWithHeaders iterator methods fail
when key deserializers require headers.
The class inherits iterator-returning methods from
MeteredSessionStore: - fetch(K) / backwardFetch(K) - fetch(K, K) /
backwardFetch(K, K) - findSessions(K, long, long) /
backwardFindSessions(K, lon... | diff --git a/streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredSessionStoreWithHeaders.java b/streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredSessionStoreWithHeaders.java
index 444d29834bbbe..99aa1eb97ee0a 100644
--- a/streams/src/main/java/org/apache/kafka/streams/state/intern... | 4 | 4 | 0 | [{"id": "G0", "claim": "The `next == null` check in `MeteredSessionStoreWithHeaders.MeteredIterator.next()` should be removed, as for the sibling PR #21736.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ternary null check in `MeteredSession... | null |
apache__kafka__21736 | apache/kafka | 21,736 | defect | c47d68ae4b5eee38082a97d85cdc0a20c771c89f | 1de18b42dea7a261523e90f236cbed23d7ddbef7 | KAFKA-20132: Fix header-based key deserialization in MeteredTimestampedKeyValueStoreWithHeaders iterator methods | Fixes bugs where `MeteredTimestampedKeyValueStoreWithHeaders` iterator
methods fail when key deserializers require headers.
The class inherits iterator-returning methods from
`MeteredKeyValueStore`: - `range(K, K)` / `reverseRange(K, K)` -
`all()` / `reverseAll()` - `prefixScan(P, PS)`
These methods use `... | diff --git a/streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredKeyValueStore.java b/streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredKeyValueStore.java
index 0535e2f89e95b..9f97b6863a97c 100644
--- a/streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredKeyValueS... | 3 | 3 | 2 | [{"id": "G0", "claim": "Remove the `keyValue == null` / `cachedNext == null` guards that make the iterators return null instead of crashing on a caller contract violation per the Iterator interface, and apply the same removal in MeteredTimestampedWindowStoreWithHeaders.", "category": "correctness", "verdict": "supporte... | null |
apache__kafka__21737 | apache/kafka | 21,737 | defect | 0a7b16c501b2d4e7eb981521a0235f8fa1836753 | 76b5c9a911c4b007fe1c2dc6cf14958d5d63218d | KAFKA-18652: Add `task.offset.interval.ms` config | KIP-1071 adds new broker side configs:
- task.offset.interval.ms
- min.task.offset.interval.ms
This PR adds both configs to the broker, and updates the
StreamsHeartbeatResponse to provide `task.offset.interval.ms` to the
Kafka Streams client.
Reviewers: Andrew Schofield <aschofield@confluent.io>, Lucas Brutschy
<lb... | diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManager.java b/clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManager.java
index c45e3da1b5e42..0640377346217 100644
--- a/clients/src/main/java/org/apache/kafka/clie... | 1 | 1 | 1 | [{"id": "G0", "claim": "GroupConfig.evaluateValues should be updated to make sure the group config is within the bounds of the broker config following the rules in KIP-1240 (new for 4.3).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__kafka__21738 | apache/kafka | 21,738 | defect | 77d1641673790b9831f549d3d82b22f736980018 | 7689ff19e05bf647dbb514762b6d44e5d60582ed | KAFKA-19712: ProcessorStateManager delegates offset tracking to stores | As part of KIP-1035, we want to transition away from task-specific
`.checkpoint` files, and instead delegate offset management to
`StateStore`s.
We now have a `LegacyCheckpointingStateStore` wrapper to encapsulate the
management of offsets for `StateStore` implementations that do not know
how to manage their own offse... | diff --git a/streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/EosIntegrationTest.java b/streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/EosIntegrationTest.java
index 2d7f2b2e1fa14..ca09905fdab5e 100644
--- a/streams/integration-tests/src/test/java/org/apache/kafk... | 5 | 3 | 3 | [{"id": "G0", "claim": "The taskDirIsEmpty filter should be updated because, as written, it will miss the new per-store checkpoint file names of `checkpoint_<store name>`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The removed shouldDeleteCheckP... | null |
apache__kafka__21740 | apache/kafka | 21,740 | defect | 80e681790b3e1a9d7b7f400758bcbbb46d8311a0 | 333a290babddddd5be08eff15c9ee26f4365b47c | KAFKA-20302: Receive buffers allocated from MemoryPool may not be released if request is invalid | If an exception is thrown within
kafka.network.Processor#processCompletedReceives close the receive
(return the buffer to the memory pool) if it has not been returned
already. Buffer may have been returned when successfully creating the
RequestChannel.Request if the api did not require DelayedAllocation
| diff --git a/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/producer/SocketServerMemoryPoolTest.java b/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/producer/SocketServerMemoryPoolTest.java
new file mode 100644
index 0000000000000..c89dd9ab8f5f7
--- /dev/null
+++ b/c... | 11 | 3 | 1 | [{"id": "G0", "claim": "The added receive.close() at the expired-connection site is not an invalid-request scenario, so the PR description mislabels it and should be fixed.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "An else branch in NetworkRe... | null |
apache__kafka__21744 | apache/kafka | 21,744 | defect | cae9e80343958c87df5d1486f315649f4cecb7a5 | e2b2fd9b43dc3a8a1fee60f311ce2cfbf661ba46 | KAFKA-20307: Add Interactive Queries (IQv1) support for headers-aware stores | This PR adds backward compatibility support for the new headers-aware
state stores (TimestampedKeyValueStoreWithHeaders and
TimestampedWindowStoreWithHeaders) when queried through the Interactive
Queries v1 (IQv1) API. Users can now query headers-aware stores using
the existing QueryableStoreTypes API without any code ... | diff --git a/streams/src/main/java/org/apache/kafka/streams/processor/internals/AbstractReadOnlyDecorator.java b/streams/src/main/java/org/apache/kafka/streams/processor/internals/AbstractReadOnlyDecorator.java
index 01fb9d7bf3ce8..56947f10bda6b 100644
--- a/streams/src/main/java/org/apache/kafka/streams/processor/inte... | 10 | 9 | 0 | [{"id": "G0", "claim": "mjsax asks whether converterForStore's top-level check also handles persistent stores when there are no adapters, since its comment claims it only handles in-memory stores with marker wrappers.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
apache__kafka__21750 | apache/kafka | 21,750 | defect | e64a32406889823a1a9cbf7e60d8965916086a7c | 82458eddc780e6089eb8bd4c09e7f4275cf7ecb1 | KAFKA-19713: Persist Position into offsets CF | As part of the implementation of KIP-1035, this PR adds the ability to
store the position offsets into the `Offsets` ColumnFamily.
Also, it aims to migrate any pre-existing position file into the offsets
CF.
Reviewers: Bill Bejeck <bbejeck@apache.org>
| diff --git a/streams/src/main/java/org/apache/kafka/streams/state/internals/AbstractColumnFamilyAccessor.java b/streams/src/main/java/org/apache/kafka/streams/state/internals/AbstractColumnFamilyAccessor.java
index 5a4a85df98e62..0c2e157956fba 100644
--- a/streams/src/main/java/org/apache/kafka/streams/state/internals/... | 7 | 5 | 2 | [{"id": "G0", "claim": "The segmented stores should write the position in the commit callback instead of the no-op placeholder, since on open/read positions are merged for all segments and the cost is small.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
apache__kafka__21753 | apache/kafka | 21,753 | defect | e02284998b656dfb12558274f42472f7be7319c6 | b17f21a1363530361d02399fbf5db9001261958e | KAFKA-20297: move Scheduler from client common to trogdor | **Summary** This PR refactors the Scheduler utility and its
implementations by moving them from the `clients` module to the
`trogdor` module. It also ensures that client-side tests that previously
relied on MockScheduler remain functional by implementing a local
version where needed.
**Key Changes** - Pack... | diff --git a/clients/src/test/java/org/apache/kafka/common/security/oauthbearer/internals/expiring/ExpiringCredentialRefreshingLoginTest.java b/clients/src/test/java/org/apache/kafka/common/security/oauthbearer/internals/expiring/ExpiringCredentialRefreshingLoginTest.java
index dc94181468ca2..73aa24647a0f5 100644
--- a... | 5 | 4 | 0 | [{"id": "G0", "claim": "The explicit Iterator<Map.Entry<...>> and Map.Entry<...> declarations in MockScheduler.onTimeUpdated could be replaced with var.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The waiters field could be declared as Map<Lo... | null |
apache__kafka__21755 | apache/kafka | 21,755 | defect | 9f15f269d5b67de861014e1e16b51a078274d427 | 605bf6b046673c0652bdd5a777288b9afa3d9452 | KAFKA-20173: Propagate headers into serde 4/N | This PR fixes headers propagation in `SessionWindowedSerializer` and
`TimeWindowedSerializer` so they works as expected (from headers
propagation perspective).
Reviewers: Matthias J. Sax <matthias@confluent.io>
| diff --git a/streams/src/main/java/org/apache/kafka/streams/kstream/SessionWindowedSerializer.java b/streams/src/main/java/org/apache/kafka/streams/kstream/SessionWindowedSerializer.java
index 50edd86f95d3e..dec2a2d2accf5 100644
--- a/streams/src/main/java/org/apache/kafka/streams/kstream/SessionWindowedSerializer.java... | 2 | 2 | 1 | [{"id": "G0", "claim": "The PR should consider preserving backward compatibility by adding a new overload that takes `headers` with a default implementation calling the existing serializeBaseKey without headers, and documenting the API change on the KIP.", "category": "design", "verdict": "supported", "priority": "P1",... | null |
apache__kafka__21756 | apache/kafka | 21,756 | defect | 9f15f269d5b67de861014e1e16b51a078274d427 | dd709190fce90e207f9cbfc160c57dd365ea12e3 | KAFKA-20173: Propagate headers into serde 5/N | This PR ensures that `FullChangeSerde` propagates header to the wrapped
de/serializers.
Reviewers: Matthias J. Sax <matthias@confluent.io>
| diff --git a/streams/src/main/java/org/apache/kafka/streams/kstream/internals/Change.java b/streams/src/main/java/org/apache/kafka/streams/kstream/internals/Change.java
index efed1e2b46796..1c8c1cb7e303f 100644
--- a/streams/src/main/java/org/apache/kafka/streams/kstream/internals/Change.java
+++ b/streams/src/main/jav... | 3 | 2 | 2 | [{"id": "G0", "claim": "The Change class does not need new newHeaders/oldHeaders fields (per the KAFKA-20311 discussion).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "FullChangeSerde's serializeParts and deserializeParts should take a caller-supplied H... | null |
apache__kafka__21758 | apache/kafka | 21,758 | defect | 7d53410d8febf4e39a65cba75951a941fe83c337 | 0cc009bfc3564fb70edc04d70ac4ed959206043c | KAFKA-20288: Remove orphaned groups from GroupConfigManager | # Description
`GroupConfigManager` stores the dynamic configs of groups. However, when
all dynamic configs are removed the group id is not removed from the
manager. This patch removes the orphan when the update group config is
empty.
# Test
`testGroupIsRemovedWhenDynamicConfigsAreRemoved` checks whether the
orphan gro... | diff --git a/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfigManager.java b/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfigManager.java
index 05ebecfc99ca9..eaa6c82268bd7 100644
--- a/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCon... | 4 | 4 | 1 | [{"id": "G0", "claim": "Move the empty-config check before GroupConfig.evaluate and test newGroupConfig instead of evaluatedProps, removing the group and returning early when newGroupConfig is empty.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Re... | null |
apache__kafka__21760 | apache/kafka | 21,760 | defect | 7d53410d8febf4e39a65cba75951a941fe83c337 | e1d73ea91989feda5744c19a3f2c0a1abc45f9a1 | KAFKA-20312: Handle null leader during OffsetFetcher regroup safely | Description:
This PR fixes a potential NullPointerException in
OffsetFetcherUtils.regroupPartitionMapByNode when regrouping partitions
by leader during offset reset / list-offsets.
Background
Partitions are grouped by leader via metadata.fetch().leaderFor(tp). If
metadata changes between the initial leader lookup an... | diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetFetcher.java b/clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetFetcher.java
index 446f39686de5f..f03da96e4ed88 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetFetcher.java
++... | 5 | 5 | 0 | [{"id": "G0", "claim": "regroupPartitionMapByNode should be rewritten with a forEach so the mapping logic reads as a compact block instead of a verbose entry-set loop.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test method name testFetch... | null |
apache__kafka__21762 | apache/kafka | 21,762 | defect | cae9e80343958c87df5d1486f315649f4cecb7a5 | 4f1e1832478c6599a1ae63bb43798ae7dd804058 | MINOR: perf optimization for header serialization and type conversion | This PR replaces the usage of ByteArrayOutputStreams with ByteBuffers.
Some manual benchmarks show a perf improvement for the value-ts-header
and session-header converters of 3x.
Reviewers: PoAn Yang <payang@apache.org>, Nilesh Kumar
<nileshkumar3@gmail.com>, aliehsaeedii <asaeedi@confluent.io>,
Chia-Ping Tsai <chia... | diff --git a/streams/src/main/java/org/apache/kafka/streams/state/internals/AggregationWithHeadersSerializer.java b/streams/src/main/java/org/apache/kafka/streams/state/internals/AggregationWithHeadersSerializer.java
index 1781d1fa970aa..1066ae9e5032e 100644
--- a/streams/src/main/java/org/apache/kafka/streams/state/in... | 3 | 1 | 0 | [{"id": "G0", "claim": "In RecordConverters, serializedValueSize() (the wire size of the raw value) should be replaced by the length of the converted value (0 when the converted value is null), fixing a long-standing minor bug at three call sites.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "... | null |
apache__kafka__21768 | apache/kafka | 21,768 | defect | 197e5e748aac41a6a9ced2920d2ffed7ef67d405 | 74342d648c35f0436f0590d388d996d55fd0abfb | KAFKA-20173: Ensure Metered kv-stores pass headers correctly | Ensures that all Metered KV-stores (plain, ts, headers, version) pass
headers into de/serializers.
Reviewers: Alieh Saeedi <asaeedi@confluent.io>, TengYao Chi
<frankvicky@apache.org>, Uladzislau Blok, <blokv75@gmail.com>, Bill
Bejeck <bill@confluent.io>
| diff --git a/streams/src/main/java/org/apache/kafka/streams/state/StateSerdes.java b/streams/src/main/java/org/apache/kafka/streams/state/StateSerdes.java
index 7128dfc85e2e9..8632dd37bfe84 100644
--- a/streams/src/main/java/org/apache/kafka/streams/state/StateSerdes.java
+++ b/streams/src/main/java/org/apache/kafka/st... | 4 | 3 | 2 | [{"id": "G0", "claim": "The putAll/innerEntries path must serialize values the same way put does — passing the entry's headers into serializeValue, i.e. serializeValue(value, headers) (and serializeValue(null, headers) for a null value) — instead of serializeValue(entry.value), so headers are passed correctly.", "categ... | null |
apache__kafka__21781 | apache/kafka | 21,781 | defect | 299f29ebdaf8058751265e48407a0f5cb7efb5e1 | 18705e873353a4227580a18c6a13f1858ef4bde4 | KAFKA-20321: Mark lost partitions before callbacks for Consumer and Streams | Mark partitions lost to avoid returning buffered records in the case of
a race after the callback completes (app thread moves onto polling,
while background moves onto clearing the lost assignment) Same fix
applied for Consumer and Stream managers (Share has no callbacks so this
does not apply)
Reviewers: Nilesh Kuma... | diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java b/clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java
index c93a844ff9be5..e19d3485c2763 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/interna... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new call in signalPartitionsLost should get a one-line explanatory comment like other places.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A few tests in the pull request are currently failing and need to be fixed.", ... | null |
apache__kafka__21792 | apache/kafka | 21,792 | defect | b0e3485fec61666fb8046da3ce0f32f408b1bd00 | 3d4df1c0d6b0aa97c87293bf18c160ffc4ef5106 | MINOR: Cleaning DSL ops and tests | This PR
- cleans up tests (replaces null headers with empty headers),
- removes unused classes and unnecessary identifiers,
- and removes unnecessary variable defined in KeyValueStoreWrapper
class.
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Matthias J. Sax
<matthias@confluent.io>
| diff --git a/streams/src/main/java/org/apache/kafka/streams/state/internals/KeyValueStoreWrapper.java b/streams/src/main/java/org/apache/kafka/streams/state/internals/KeyValueStoreWrapper.java
index 5d21e622ae328..dc9fb21046b33 100644
--- a/streams/src/main/java/org/apache/kafka/streams/state/internals/KeyValueStoreWra... | 3 | 3 | 0 | [{"id": "G0", "claim": "range() iterates the live subMap without the defensive copy that all() makes, so if the underlying map is modified while iterating the range it can throw ConcurrentModificationException.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1",... | null |
apache__kafka__21797 | apache/kafka | 21,797 | defect | 71449aabb6c115667045e62d2d879b2fbd6a7302 | 4a348990cf9a4c2c16e15709859a86652973ce3c | MINOR: misc improvements in consumer test & events | Minor improvements in test and events:
- fix test to create the actual event used in real life flow
- unmodifiable collections in new events, aligned with existing ones
Reviewers: Andrew Schofield <aschofield@confluent.io>, Nilesh Kumar
<nileshkumar3@gmail.com>
| diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplyAssignmentEvent.java b/clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplyAssignmentEvent.java
index b6acbb07cb3c4..20c907955d385 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/int... | 3 | 2 | 0 | [{"id": "G0", "claim": "Consider using Set.copyOf()/SortedSet.copyOf() instead of unmodifiable wrappers for a defensive copy of the partitions in PartitionsAssignedEvent and ApplyAssignmentEvent.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In the Partit... | null |
apache__kafka__21816 | apache/kafka | 21,816 | defect | 599d55cdb7298eeddc81f89af626fc9110bc194b | 2045c0f98e297def1c0ec0deac51dfeadb0cb2fc | MINOR: Use mutable maps in Fetch.forPartition to avoid potential UnsupportedOperationException | Fetch.forPartition used Map.of() which creates immutable maps. If add()
is called on a forPartition-created Fetch as the target, putAll on the
immutable nextOffsetAndMetadata would throw
UnsupportedOperationException. Replace with HashMap to ensure
mutability.
See https://github.com/apache/kafka/pull/21726#discussion_... | diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/Fetch.java b/clients/src/main/java/org/apache/kafka/clients/consumer/internals/Fetch.java
index 1c680a7ee7aad..918bd443c37e9 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/Fetch.java
+++ b/clients/src/main/jav... | 3 | 3 | 1 | [{"id": "G0", "claim": "The two private Fetch constructors should be consolidated into one, with null partition/arguments representing the empty state.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A unit test should be added to cover the forPartition m... | null |
apache__kafka__21855 | apache/kafka | 21,855 | defect | caa71a3e748f56fc3bb4f08d8ab3f07a0df79466 | 001916dbc49cab6f17ffa11b8c5c63e1e0917114 | KAFKA-20289: Fix DescribeConfigs to correctly resolve broker synonyms for group configs | `createGroupConfigEntry` used the group config name (e.g.
`consumer.session.timeout.ms`) directly to look up broker synonyms,
which could produce incorrect synonym chains.
This change introduces `ALL_GROUP_CONFIG_SYNONYMS` in `GroupConfig` , an
explicit mapping from each group config to its broker-level synonym (or
e... | diff --git a/core/src/main/scala/kafka/server/ConfigHelper.scala b/core/src/main/scala/kafka/server/ConfigHelper.scala
index 5c32c14eb2df9..33fc184c4bebd 100644
--- a/core/src/main/scala/kafka/server/ConfigHelper.scala
+++ b/core/src/main/scala/kafka/server/ConfigHelper.scala
@@ -32,7 +32,7 @@ import org.apache.kafka.c... | 8 | 7 | 0 | [{"id": "G0", "claim": "Using an implicit \"group.\" string prefix to connect group configs to broker-level configurations is error-prone and less flexible; the PR should follow the ALL_TOPIC_CONFIG_SYNONYMS pattern with an explicit ALL_GROUP_CONFIG_SYNONYMS mapping, plus a test ensuring every config has an entry.", "c... | null |
apache__kafka__21897 | apache/kafka | 21,897 | defect | a1c155ee2835b5e6a6fdd2db5da14f83af5a4da3 | ace043d4f9e8549aae1a1ad71669a2bba836d108 | KAFKA-20332: Fix to ensure app thread not collecting records for partitions being revoked | This addresses race conditions where the app thread could collect/return
records for revoked partitions.
Fix by ensuring that the app thread does not return buffered records if
it hasn't checked pending reconciliations. Once it checked pending
reconciliations, we know that partitions being revoked were marked as
non-f... | diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java b/clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java
index 34e9ffc1ecda5..5a8a061b4bb74 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/interna... | 6 | 4 | 1 | [{"id": "G0", "claim": "The backing field for isReconciliationCheckComplete() should be named isReconciliationCheckComplete to follow the convention of isValidatePositionsComplete.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new flag is s... | null |
apache__kafka__21941 | apache/kafka | 21,941 | defect | 58b56c213e03af9b473a25546f97b007cda51ffa | 0f74e0b10e08fc90ad92401ccd2ece6a8c8177d3 | KAFKA-20219: Headers store with caching enabled should reject queries | For headers-store with caching enabled, we want to keep IQv2 disabled until we implement IQv2 across the board. Thus, we need to introduce CachingKeyValueStoreWithHeaders and just forward any query to the underlying store, instead of re-using the existing query implementation on CachingKeyValueStore.
Reviewers: Matt... | diff --git a/streams/src/test/java/org/apache/kafka/streams/state/internals/TimestampedKeyValueStoreBuilderWithHeadersTest.java b/streams/src/test/java/org/apache/kafka/streams/state/internals/TimestampedKeyValueStoreBuilderWithHeadersTest.java
index 23e3c7e35d4f6..a39002ca045ce 100644
--- a/streams/src/test/java/org/a... | 1 | 1 | 0 | [{"id": "G1", "claim": "Pass the ThreadCache into the constructor of InternalMockProcessorContext instead of using a spy in the test helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__kafka__21956 | apache/kafka | 21,956 | defect | 02dca7adce42474f09583a52c50575a9a077f8e7 | c5ce1b83d0a3663d30672b97976e1dad3b964f41 | KAFKA-20194: Add sesssion-header-store support to TDD | Adds missing method TopologyTestDriver.getSessionStoreWithHeader(), and
updates TopologyTestDriverTest for all newly added header store types.
Reviewers: TengYao Chi <frankvicky@apache.org>, Alieh Saeedi
<asaeedi@confluent.io>
| diff --git a/streams/src/main/java/org/apache/kafka/streams/state/internals/GlobalStateStoreProvider.java b/streams/src/main/java/org/apache/kafka/streams/state/internals/GlobalStateStoreProvider.java
index 5285b97475918..b4ce0a01cd301 100644
--- a/streams/src/main/java/org/apache/kafka/streams/state/internals/GlobalSt... | 3 | 2 | 0 | [{"id": "G0", "claim": "Fix the misspelling in the CAUTION comment: \"each eimte\" should read \"each time\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename getSessionStoreWithHeader to getSessionStoreWithHeaders and update all the javadocs... | null |
apache__kafka__21957 | apache/kafka | 21,957 | defect | 6e989ccca21375ae6ee4ac11fb64d9379b089155 | 033a3420e5ded194c16c033c2cd3d91a74b7b7c5 | KAFKA-20173: Ensure Metered session-stores pass headers correctly | Ensures that all Metered Session-stores (plain and headers) pass headers
into de/serializers.
Reviewers: Uladzislau Blok <blokv75@gmail.com>, TengYao Chi
<frankvicky@apache.org>
| diff --git a/streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredSessionStore.java b/streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredSessionStore.java
index 70c21f8b610b1..38e0664914498 100644
--- a/streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredSessionStor... | 3 | 1 | 1 | [{"id": "G0", "claim": "The newly added methods in MeteredSessionStoreWithHeaders should be moved to the end of the class, as is typical in this codebase.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The additional private-visibility cleanups ... | null |
apache__kafka__21979 | apache/kafka | 21,979 | defect | 7b8549f3c4cc26fd2153ef024c2fb743cfe83461 | f0ae403db4c9516e0aaa80fc040e06ce75c42965 | KAFKA-20410: Add DLQ configuration parameters for Share Groups (KIP-1191) | ## Summary
This PR adds the configuration foundation for Share Groups Dead-Letter
Queue (DLQ) functionality as specified in [KIP-1191: Dead-letter queues
for share
groups](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1191%3A+Dead-letter+queues+for+share+groups).
## Changes
### New Configurations
**Cluster-le... | diff --git a/clients/src/main/java/org/apache/kafka/common/config/TopicConfig.java b/clients/src/main/java/org/apache/kafka/common/config/TopicConfig.java
index e97c39bc61911..5e63163f91c85 100755
--- a/clients/src/main/java/org/apache/kafka/common/config/TopicConfig.java
+++ b/clients/src/main/java/org/apache/kafka/co... | 7 | 6 | 6 | [{"id": "G0", "claim": "The new DLQ config keys should follow the same common prefix pattern as the other configs in ShareGroupConfig instead of using errors.deadletterqueue.*.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The DLQ topic-name validation ... | null |
apache__kafka__21983 | apache/kafka | 21,983 | defect | 8ddda49ff6447b49f96b013d4759ed5842d030e1 | 25e7aad202a90e8e338a709dc63fe349c5f8b67e | KAFKA-20393: Fix stickyNode using stale IP when broker address changes | When a broker's IP address changes (e.g., pod replacement in
Kubernetes), `TelemetrySender.stickyNode` retains a stale `Node`
object with the old address. Since `canSendRequest()` checks by node
ID only, the stale connection passes the check and telemetry data is
sent to the wrong host.
This PR refreshes `stickyN... | diff --git a/clients/src/main/java/org/apache/kafka/clients/NetworkClient.java b/clients/src/main/java/org/apache/kafka/clients/NetworkClient.java
index 692847a8b1553..1cd8e3d83f6b0 100644
--- a/clients/src/main/java/org/apache/kafka/clients/NetworkClient.java
+++ b/clients/src/main/java/org/apache/kafka/clients/Networ... | 4 | 3 | 0 | [{"id": "G0", "claim": "The freshness lookup would be more consistent with Node.equals()'s id-based identity if it compared by id() rather than idString().", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since the core issue is a stale IP, the staleness c... | null |
apache__kafka__21994 | apache/kafka | 21,994 | defect | 579a4e0e2db47f087b459bdc14268c443628d538 | f1ed6171dc87baf7c8b8862fbd425f0ebd356b4c | KAFKA-20415: Add share.version=2 for gated DLQ support. | * DLQ support for share groups KIP-1191 will be gated by a
`share.version` upgrade - slated for 4.4
* In this PR, we have added the appropriate changes and updated tests in
`FeatureCommandTest` and `ApiVersionsRequestTest`
Reviewers: Andrew Schofield <aschofield@confluent.io>
| diff --git a/server-common/src/main/java/org/apache/kafka/server/common/ShareVersion.java b/server-common/src/main/java/org/apache/kafka/server/common/ShareVersion.java
index f1335069333b5..c109219b47844 100644
--- a/server-common/src/main/java/org/apache/kafka/server/common/ShareVersion.java
+++ b/server-common/src/ma... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment in MetadataVersion indicating that IBP_4_4_IV0 enables dead-letter queue support for share groups, noting it is still an unstable feature version until 4.4 is finalized.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__kafka__22011 | apache/kafka | 22,011 | defect | 6f4b47d61c05de228d726095b7437b182f9c35ce | 95d1204155f10cfece287b375e4ddc10b13acd76 | KAFKA-20428: Fix unsubscribe failure with assignment updates | Fix to ensure that unsubscribe does not apply any pending assignment
update that may exist in the background queue (e.g, if a reconciliation
completed right before unsubscribing).
Fix by filtering out the assignment update events on unsubscribe (same
approach already done for filtering out error events that the
unsubs... | diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java b/clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java
index 685947c686490..2c7087065076d 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaC... | 6 | 3 | 1 | [{"id": "G0", "claim": "Instead of adding a boolean skipAssignmentEvents flag, the skip could be folded into the existing Predicate<Exception> parameter (filtering assignment event types), allowing isAssignmentEvent() to be deleted and generalizing the event filtering.", "category": "design", "verdict": "opposed", "pri... | null |
apache__kafka__22047 | apache/kafka | 22,047 | defect | acd37fc30c5fdbbae772144c73b4f2c7e1c21d27 | 15056b084fe2daad43db25e22694b1bf419ae226 | KAFKA-20442: Update streams group assignment epoch when last member leaves | When the last member of a streams group is fenced, the group epoch is
bumped but the assignment epoch is not updated. This leaves the empty
group with `groupEpoch > assignmentEpoch`, violating the invariant that
an empty group should have matching epochs. This patch writes a
`StreamsGroupTargetAssignmentMetadataRecord`... | diff --git a/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java b/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java
index 81a6e1b0c4ab5..1a2b996456f23 100644
--- a/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/Grou... | 2 | 2 | 2 | [{"id": "G0", "claim": "The test expectation added at GroupMetadataManagerTest.java line 19992 should use a zero timestamp (0L) for the new streams group target assignment metadata record, to match the fencing change that now emits a zero timestamp.", "category": "correctness", "verdict": "supported", "priority": "P1",... | null |
apache__kafka__22068 | apache/kafka | 22,068 | defect | 7b8549f3c4cc26fd2153ef024c2fb743cfe83461 | 621ccb977d773d3b2410cc7f4241e2d753b904a5 | MINOR: Fix ListValueStore's restoration in headers mode | Problem: ListValueStore logs raw serialized list bytes to its
changelog, but during restoration, the headers-aware converter was
incorrectly wrapping the data again, causing deserialization failures
when reading restored records (EOFException/NullPointerException in
outer join operations).
Solution: To get the right... | diff --git a/streams/src/main/java/org/apache/kafka/streams/processor/internals/StateManagerUtil.java b/streams/src/main/java/org/apache/kafka/streams/processor/internals/StateManagerUtil.java
index 6a02fba3cde32..86759f02a46aa 100644
--- a/streams/src/main/java/org/apache/kafka/streams/processor/internals/StateManager... | 2 | 2 | 1 | [{"id": "G0", "claim": "The comment saying the ListValueStore special case will be removed in AK 4.4 is wrong, since the project is already at 4.4.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author does not agree with the identity-converte... | null |
apache__kafka__22105 | apache/kafka | 22,105 | defect | e7a568863e28c1cd1d122d805b2a100d42ca513d | 96f7ae40afd2efec9fdf2be15277c6af4fd972c1 | MINOR: Move CreateTopicsRequestTest to clients-integration-tests and rewrite in Java | Rewrite `CreateTopicsRequestTest` in Java and move it from core to
`clients-integration-tests`.
Reviewers: Ken Huang <s7133700@gmail.com>, Chia-Ping Tsai
<chia7712@gmail.com>
| diff --git a/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/admin/CreateTopicsRequestTest.java b/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/admin/CreateTopicsRequestTest.java
new file mode 100644
index 0000000000000..c9a2014971531
--- /dev/null
+++ b/clients/clien... | 3 | 2 | 0 | [{"id": "G0", "claim": "The test should read the default partitions and replication factor from `serverProperties` via helper methods instead of relying on the Scala `KafkaConfig`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test class is... | null |
apache__karaf__1057 | apache/karaf | 1,057 | defect | 5f28339cf263806c0a187978fb3af6828c0d1629 | 7c3c2a15ab67fd38a5039d6e9b081d85d5371b74 | [KARAF-6579] Add Commands jaas:realm-add and jaas:module-add to manag… | …e realms and modules via shell
See the documentation added to security.adoc which describes all changes in detail. | diff --git a/jaas/command/src/main/java/org/apache/karaf/jaas/command/ModuleAddCommand.java b/jaas/command/src/main/java/org/apache/karaf/jaas/command/ModuleAddCommand.java
new file mode 100644
index 00000000000..9f715c11171
--- /dev/null
+++ b/jaas/command/src/main/java/org/apache/karaf/jaas/command/ModuleAddCommand.j... | 5 | 4 | 2 | [{"id": "G0", "claim": "The new ModuleAddCommand.java and RealmAddCommand.java files are missing the ASF license header.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error paths in ModuleAddCommand (no realm selected, realm not a Config, u... | null |
apache__karaf__2627 | apache/karaf | 2,627 | defect | d8810434f3d2ffe12ceefbf3f43be3b7e8326a67 | 0661abd4b0e06901cb82605161ddeede5dbddb81 | More static method conversions | This is another round of marking methods static.
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
| diff --git a/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundleWatcherImpl.java b/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundleWatcherImpl.java
index 77b045b187e..bebc8dff019 100644
--- a/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundleWatcherImpl.java
... | 2 | 1 | 0 | [{"id": "G0", "claim": "Asks what the rationale is for making all these methods static, questioning the purpose of the sweeping static conversions.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Requests that this PR be updated to include the remaining r... | null |
apache__kvrocks__1032 | apache/kvrocks | 1,032 | defect | 67c52be4b7f323d0c61b9e37f4d944c2b4f1ed55 | 48c5057745d21edc91ee26898d0d90173512b003 | Add command parser | Partially follows #598.
The current `CommandParser` is a prototype that adds only a few methods that are really usable at the moment (but does not affect it being merged).
To demonstrate the use of `CommandParser`, I rewrote the `Parse` implementation for a few commands in `redis_cmd.cc`. It is easy to see that t... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 96f1d0e4a77..1e073b151f9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -175,7 +175,7 @@ add_library(kvrocks_objs OBJECT ${KVROCKS_SRCS})
target_include_directories(kvrocks_objs PUBLIC src src/common ${PROJECT_BINARY_DIR})
target_compile_features(kvrocks_objs ... | 6 | 1 | 0 | [{"id": "G0", "claim": "Changing the Redis-consistent error messages (e.g. \"value is not an integer or out of range\" to \"non-integer\" / \"out of numeric range\") may be incorrect, since those messages were written that way to be consistent with the Redis protocol.", "category": "correctness", "verdict": "opposed", ... | null |
apache__kvrocks__1120 | apache/kvrocks | 1,120 | defect | 4cd34dc8e7f5182feacf50013bee0d26e315df8a | 1c9e28958bdf7c78a1aca164dd869fe79499cf14 | `HrangebyLex` supports specify intervals | This close #1118 and #1082 . | diff --git a/src/commands/redis_cmd.cc b/src/commands/redis_cmd.cc
index aaa41336163..a1b36d229ef 100644
--- a/src/commands/redis_cmd.cc
+++ b/src/commands/redis_cmd.cc
@@ -1508,25 +1508,60 @@ class CommandHGetAll : public Commander {
class CommandHRange : public Commander {
public:
Status Parse(const std::vector... | 9 | 7 | 1 | [{"id": "G0", "claim": "The BYINDEX option makes no sense for a hash, so the hash range command should support only the BYLEX range mode.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The HashSpec struct should be named so it says it is a spec for a ran... | null |
apache__kvrocks__1219 | apache/kvrocks | 1,219 | defect | 52b0a6102d83d006a0e1dfc55f9d054036cd6df4 | e79f9610cc4afb8ad3fa4abe2471d86101c19454 | Persist the cluster nodes info after applying the cluster topology | This closes #1021
Currently, the cluster nodes' info is only stored in memory and we need to re-sync the cluster topology after restarting. It's very inconvenient and confusing for most users.
## Solutoin
* Persist the cluster nodes' info in the local disk if the topology was changed. The file location is `{c... | diff --git a/src/cluster/cluster.cc b/src/cluster/cluster.cc
index f89906bc183..9921d67cef5 100644
--- a/src/cluster/cluster.cc
+++ b/src/cluster/cluster.cc
@@ -22,6 +22,7 @@
#include <algorithm>
#include <cstring>
+#include <fstream>
#include <memory>
#include "commands/redis_cmd.h"
@@ -42,6 +43,8 @@ const cha... | 15 | 8 | 1 | [{"id": "G0", "claim": "NodesFilePath should not be declared as `const std::string NodesFilePath()` — returning std::string by value with a const modifier makes no sense, so the const modifier should be removed.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "clai... | null |
apache__kvrocks__1337 | apache/kvrocks | 1,337 | defect | 303384f6f2df676ae3802d6fbde8085c71b572c6 | af519db4bc723725757e75ef27e2e9f62d0ddf55 | Add clang-tidy checking for unit tests | We expand the clang-tidy checking to C++ unit tests. | diff --git a/.clang-tidy b/.clang-tidy
index a6870e827b6..f4f8c336156 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -1,7 +1,7 @@
# refer to https://clang.llvm.org/extra/clang-tidy/checks/list.html
Checks: -*, clang-analyzer-core.*, clang-analyzer-cplusplus.*, clang-analyzer-deadcode.*, clang-analyzer-nullability.*, c... | 1 | 1 | 0 | [{"id": "G0", "claim": "Move the `&` close to the `vnode` variable (write `const auto &vnode` instead of `const auto& vnode`) in the range-based for loop in CluseterGetNodes.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
apache__kvrocks__1727 | apache/kvrocks | 1,727 | defect | b1afbe34808caae9ef6a1f8052cf00c5cd4914d9 | e3d0bd2aa410fef614ff87c48608d4f6d6c40c2e | Fix boundary check in Bitmap::BitOp | Found this issue #1714 in bitmap fuzzy CI test.
Problem issues from the boundary check in Bitmap:
```
if (frag_index == stop_index) {
frag_maxlen = max_size % kBitmapSegmentBytes;
}
```
If last fragment length = `k * kBitmapSegmentBytes`, `frag_maxlen` would
become 0, causi... | diff --git a/src/commands/cmd_bit.cc b/src/commands/cmd_bit.cc
index a56d5ac4d00..e8b8b97858d 100644
--- a/src/commands/cmd_bit.cc
+++ b/src/commands/cmd_bit.cc
@@ -203,6 +203,7 @@ class CommandBitOp : public Commander {
Status Execute(Server *svr, Connection *conn, std::string *output) override {
std::vector... | 3 | 3 | 1 | [{"id": "G0", "claim": "When max_size is an exact multiple of kBitmapSegmentBytes, the S1 expression max_size % (kBitmapSegmentBytes + 1) yields kBitmapSegmentBytes, so the code clears the last segment again and the BITOP NOT result is wrong.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.