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__beam__37954 | apache/beam | 37,954 | defect | 40951024bfec7f4196a35a7da1c58502901a9075 | dfd9e3fb16ab838bc1440960aadd6c22cc5d6afc | Moves finalize ids out of WorkItem proto and into AssembledWorkItem class. | Moves applied finalize ids out of windmill WorkItem proto since that field isn't present in the internal version of that proto. Instead, we move it to the AssembledWorkItem class. Instead of queuing the finalize ids in the call to process(), we instead do it as a separate method before calling scheduleWork().
Also a... | diff --git a/runners/google-cloud-dataflow-java/build.gradle b/runners/google-cloud-dataflow-java/build.gradle
index 647eb00fd2a8..79372fbafe28 100644
--- a/runners/google-cloud-dataflow-java/build.gradle
+++ b/runners/google-cloud-dataflow-java/build.gradle
@@ -491,8 +491,6 @@ task validatesRunnerStreaming {
descri... | 1 | 1 | 1 | [{"id": "G0", "claim": "Reserve the field number 16 of the removed applied_finalize_ids field in the WorkItem proto, in case something is already depending on it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__beam__38009 | apache/beam | 38,009 | defect | cf3d6ed3e5244b9ae6f3af3597c4e28425734579 | d9fa6082ba868b4219752841241fedd64c88ca3e | [BigQueryIO] Support reading from empty tables using Storage Read API in streaming pipelines | This PR fixes an issue where BigQueryIO.read().withMethod(Method.DIRECT_READ) fails with an UnsupportedOperationException when reading from an empty table in a streaming pipeline.
In streaming pipelines, a BoundedSource (like BigQuery Storage Read) is wrapped in UnboundedReadFromBoundedSource. When the Storage Read ... | diff --git a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryStorageSourceBase.java b/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryStorageSourceBase.java
index 45763c6ac14f..98665b1b0d07 100644
--- a/sdks/java/io/google-cloud-p... | 1 | 1 | 0 | [{"id": "G0", "claim": "The bare `catch (Exception e)` in BigQueryStorageSourceBase.createReader can obscure the actual cause of a failure (authentication errors, permission issues, or API quota limits), and the exception should be logged at DEBUG level to aid troubleshooting without being noisy.", "category": "maintai... | null |
apache__beam__38011 | apache/beam | 38,011 | defect | cf3d6ed3e5244b9ae6f3af3597c4e28425734579 | a34467d7491d59455d80f6af63d598348bd38200 | [#37994] Fix NullPointerException in Spark Runner with multiple outputs and serialization | When using Spark StorageLevels that require serialization (e.g., MEMORY_AND_DISK_SER). the Spark Runner would fail with a NullPointerException if a ParDo had unconsumed outputs. This occurred because unconsumed outputs are pruned from the coder map, leaving them without a coder during the RDD encoding phase.
Thi... | diff --git a/runners/spark/src/main/java/org/apache/beam/runners/spark/translation/TransformTranslator.java b/runners/spark/src/main/java/org/apache/beam/runners/spark/translation/TransformTranslator.java
index 5362beba09dc..72b7b9854f28 100644
--- a/runners/spark/src/main/java/org/apache/beam/runners/spark/translation... | 2 | 1 | 0 | [{"id": "G0", "claim": "The comment saying 'this step is leaf step' is slightly inaccurate; it is more precise to say that the specific output associated with the tupleTag is unconsumed, which is why its coder has been pruned.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced... | null |
apache__beam__38018 | apache/beam | 38,018 | defect | e08e9d56e5ee8ece43cc15967d0edff107651554 | 014641d6ccf5cc5aa8ed73fa79d6b40c7d93cf26 | [Iceberg AddFiles] Use thread pool to process incoming datafiles | Improve performance by processing incoming files using a thread pool, allowing a single worker to process files in parallel.
Fixes #38012 | diff --git a/.github/trigger_files/IO_Iceberg_Integration_Tests.json b/.github/trigger_files/IO_Iceberg_Integration_Tests.json
index 7ab7bcd9a9c6..b73af5e61a43 100644
--- a/.github/trigger_files/IO_Iceberg_Integration_Tests.json
+++ b/.github/trigger_files/IO_Iceberg_Integration_Tests.json
@@ -1,4 +1,4 @@
{
"comm... | 3 | 2 | 2 | [{"id": "G0", "claim": "There is a chance of OOMs because ProcessElement keeps adding a large number of pending tasks to the activeTasks list without any bound.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The hard-coded THREAD_POOL_SIZE default o... | null |
apache__beam__38039 | apache/beam | 38,039 | defect | 1c53cb26cd1e391acd204df65152d84e8a2d86ad | 23b6a4b412bb7156e582a046091feae453d10d09 | [Iceberg AddFiles] Allow very large batch import | Current implementation gathers all data files into one worker to commit. This can result in OOM when importing large amounts of files (e.g. millions).
New implementation batches data files into Manifests, then batches manifests into one worker to commit. This is much more manageable for the one committing worker
... | diff --git a/.github/trigger_files/IO_Iceberg_Integration_Tests.json b/.github/trigger_files/IO_Iceberg_Integration_Tests.json
index b73af5e61a43..7ab7bcd9a9c6 100644
--- a/.github/trigger_files/IO_Iceberg_Integration_Tests.json
+++ b/.github/trigger_files/IO_Iceberg_Integration_Tests.json
@@ -1,4 +1,4 @@
{
"comm... | 5 | 4 | 0 | [{"id": "G0", "claim": "The new manifestFileSize configuration option should be justified: how and why would an end-user customize it?", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "BeamRowWrapper is yet another place that hand-tracks the set of types su... | null |
apache__beam__38073 | apache/beam | 38,073 | defect | 211cd6662d26bf4459acc876cd45d344228b3c11 | 46f8236bf1b5aae468c276c7f59777aa07c7fefd | Changes cleanup thread to forceExecute. | Otherwise, we can deadlock if all finalization threads are running. This can happen if e.g. a worker starts up and the pipeline has already been running. It then first gets a bunch of ids to execute and then gets gets a callback to register, which starts up the cleanup thread.
This PR also moves cleanups to a separ... | diff --git a/runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/windmill/work/processing/StreamingCommitFinalizer.java b/runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/windmill/work/processing/StreamingCommitFinalizer.java
ind... | 1 | 1 | 1 | [{"id": "G0", "claim": "Move the forceExecute of the cleanup thread to after the lock is released (like finalizeCommits does) instead of queueing it while holding the lock.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__beam__38139 | apache/beam | 38,139 | defect | b296b40e3fc21389a9d0cd7b778ef65fc0bf5d5f | b24494ff8471782a98c67e429bef5ca44ea18dae | Change TriggerState finished bitset coder to a SentinelBitSetCoder | SentinelBitSetCoder is same as BitSetCoder except that it encodes empty bitset as a single element 0 byte array.
This allows checking if the finished bitset is empty or missing #37574.
SentinelBitSetCoder and BitSetCoder are state compatible. Both coders can decode encoded bytes from the other coder successfully.... | diff --git a/CHANGES.md b/CHANGES.md
index 319520f94309..58cc8d16d088 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -69,6 +69,10 @@
## New Features / Improvements
* X feature added (Java/Python) ([#X](https://github.com/apache/beam/issues/X)).
+* TriggerStateMachineRunner changes from BitSetCoder to SentinelBitSetCod... | 7 | 4 | 2 | [{"id": "G0", "claim": "It is unclear whether consistentWithEquals() should return true or false, since the documented contract only states that equal encoded bytes imply equal decoded objects and not the converse.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1",... | null |
apache__beam__38169 | apache/beam | 38,169 | defect | c6bfa84bcb6bda1be1bc433c495ebdb580fbf30a | d1697f3b3d5ea1459f70317bda49fd086bab1466 | Changes cleanup thread to forceExecute. (#38073) | Runs cleanup thread in its own executor.
Otherwise, we can deadlock if all finalization threads are running. This can happen if e.g. a worker starts up and the pipeline has already been running. It then first gets a bunch of ids to execute and then gets gets a callback to register, which starts up the cleanup thread... | diff --git a/runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/StreamingDataflowWorker.java b/runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/StreamingDataflowWorker.java
index 7f379625b733..4dbf52c644c7 100644
--- a/runners/g... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test input string built by buildInput parses the injected GetWorkResponse with the field applied_finalize_ids, which the vendored protobuf TextFormat does not know, so TextFormat.parse throws and the test fails.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": ... | null |
apache__beam__38189 | apache/beam | 38,189 | defect | 532dd85dab8a40daa42a345b6cbf9259b8d126c7 | 088b88e84f67e8d848d0669885601fcb10289249 | [Iceberg AddFiles] Attach name-mapping to table | Helps engines to read legacy parquet files that don't have schema-id mapping present. | diff --git a/sdks/java/io/iceberg/src/main/java/org/apache/beam/sdk/io/iceberg/AddFiles.java b/sdks/java/io/iceberg/src/main/java/org/apache/beam/sdk/io/iceberg/AddFiles.java
index 4aca5e989771..312d62b7def1 100644
--- a/sdks/java/io/iceberg/src/main/java/org/apache/beam/sdk/io/iceberg/AddFiles.java
+++ b/sdks/java/io/... | 3 | 2 | 2 | [{"id": "G0", "claim": "A test should be added covering the new name-mapping behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "This change likely breaks the Iceberg integration tests, as shown by the AddFilesIT test failures pasted after merge."... | null |
apache__beam__38206 | apache/beam | 38,206 | defect | 4ee32cddb4c10dcf738558e4ffcafc50255a1bd0 | a8fa6dbf6e391785a6fa5660708eaab85822a610 | Allow Python user type pass through Beam SQL | Currently Python SDK's Row can have arbitrary type and work within Python SDK, but not language boundary. There are many missing connections to make it work from Python->Java/Beam SQL->Python end-to-end.
After this change, Beam Row with Python user type (backed by FastPrimitiveCoder and with pythonsdk_any logical ty... | diff --git a/.github/trigger_files/beam_PostCommit_SQL.json b/.github/trigger_files/beam_PostCommit_SQL.json
index 6cc79a7a0325..833fd9b0d174 100644
--- a/.github/trigger_files/beam_PostCommit_SQL.json
+++ b/.github/trigger_files/beam_PostCommit_SQL.json
@@ -1,4 +1,4 @@
{
"comment": "Modify this file in a trivial w... | 6 | 5 | 1 | [{"id": "G0", "claim": "The new test in CalciteUtilsTest should import PassThroughLogicalType and Row instead of using fully qualified names.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new ByteCoderImpl carries copy-paste leftovers from ... | null |
apache__beam__38249 | apache/beam | 38,249 | defect | 79fb3600f9712e2eea962941c65d4812b3121445 | a1434f238db2f4e5bf4db7d2b6d47ffd89914a71 | Add connectivity type tracking to endpoint consumption logic | This PR updates the endpoint consumption logic in FanOutStreamingEngineWorkerHarness to trigger refreshes whenever the connectivity type changes, even if the metadata version remains the same.
Previously, the harness only refreshed endpoints if the metadata version increased. This change ensures the client immediate... | diff --git a/runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/streaming/harness/FanOutStreamingEngineWorkerHarness.java b/runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/streaming/harness/FanOutStreamingEngineWorkerHarness.ja... | 7 | 7 | 1 | [{"id": "G0", "claim": "consumeWorkerMetadata should compare against a pendingMetadataType instead of activeMetadataType, because a config received while the previous one is still being consumed would otherwise be dropped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
apache__beam__38269 | apache/beam | 38,269 | defect | a615657d5a41a0baa5b653abe072fc4c1c9dcd6c | 3ee379a5686d0bfb0b0f67951b93e03d2b773202 | [IcebergIO] Support sort order on dynamic table creation | ## Summary
- Adds a `sort_fields` option to `IcebergWriteSchemaTransformProvider` and `AddFilesSchemaTransformProvider`, applied when a table is dynamically created.
- Grammar: `<term> [asc|desc] [nulls first|nulls last]`, where `<term>` reuses the partition-transform parser (identity, bucket, truncate, year/month/da... | diff --git a/.github/trigger_files/IO_Iceberg_Integration_Tests.json b/.github/trigger_files/IO_Iceberg_Integration_Tests.json
index 34a6e02150e7..5d04b2c0a8c7 100644
--- a/.github/trigger_files/IO_Iceberg_Integration_Tests.json
+++ b/.github/trigger_files/IO_Iceberg_Integration_Tests.json
@@ -1,4 +1,4 @@
{
"comm... | 4 | 4 | 2 | [{"id": "G0", "claim": "SortOrderUtils lacks a class-level javadoc.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A sort field string with leading whitespace fails to parse, and extra-whitespace handling has no test coverage.", "category": "corre... | null |
apache__bifromq__120 | apache/bifromq | 120 | defect | eb63c2ed73e50844d649cd43581ec538b569bb42 | 8127c6d4f3e634989a7b99dc77695c90b1534487 | Exception mapping for shared subscription | 1. map ServerUnreachableException and ServerNotFoundException to NO_SUB | diff --git a/bifromq-mqtt/bifromq-mqtt-broker-client/pom.xml b/bifromq-mqtt/bifromq-mqtt-broker-client/pom.xml
index a3541e6bd..4a2c2c031 100644
--- a/bifromq-mqtt/bifromq-mqtt-broker-client/pom.xml
+++ b/bifromq-mqtt/bifromq-mqtt-broker-client/pom.xml
@@ -41,5 +41,10 @@
<groupId>org.slf4j</groupId>
... | 1 | 1 | 1 | [{"id": "G0", "claim": "matchInfos need to be deduplicated before adding to deliveryResults, since the same matchInfo may appear multiple times in the DeliveryRequest.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__bifromq__237 | apache/bifromq | 237 | defect | 2a9feb5b86a39c2dd0df471415e4410e7358a3ee | 6f82e3e5107f216161621a8f29c01c27a42c8ac5 | feat: make plugin FQN configs optional with strict-or-graceful loading | Make authProviderFQN, resourceThrottlerFQN, and settingProviderFQN in standalone.yml optional to improve local dev/test ergonomics.
- If a *FQN field is explicitly set, treat it as a hard requirement: BifroMQ will fail fast on startup if the plugin class is missing or fails to initialize.
- If the field is omitted,... | diff --git a/bifromq-plugin/bifromq-plugin-auth-provider-helper/src/main/java/org/apache/bifromq/plugin/authprovider/AuthProviderManager.java b/bifromq-plugin/bifromq-plugin-auth-provider-helper/src/main/java/org/apache/bifromq/plugin/authprovider/AuthProviderManager.java
index a22f15066..84687b5e4 100644
--- a/bifromq... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test's comment saying provider selection order depends on HashMap keySet iteration is inaccurate, since the order should be deterministic.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__bifromq__26 | apache/bifromq | 26 | defect | e03ecc3ba87d7ad0d7b2642406c1efcdc1611ae6 | 47aaaddc8022cf7dbb3e0da9fa9ef87478b60d63 | 1. Add RangeLeaderBalancer for inbox store. | 2. Remove some capacities from RecoveryBalancer to ReplicaCntBalancer and make RecoveryBalancer not default active.
3. Fix that InstallSnapshotRequest may not complete correctly when prev InstallSnapshotRequest time out and been cancelled.
4. Fix that TransferLeadership command would not complete correctly when excep... | diff --git a/base-kv/base-kv-raft/src/main/java/com/baidu/bifromq/basekv/raft/RaftConfigChanger.java b/base-kv/base-kv-raft/src/main/java/com/baidu/bifromq/basekv/raft/RaftConfigChanger.java
index 3a07c4b9a..03b4184bc 100644
--- a/base-kv/base-kv-raft/src/main/java/com/baidu/bifromq/basekv/raft/RaftConfigChanger.java
+... | 3 | 2 | 0 | [{"id": "G0", "claim": "The new completion callback should not treat CommandType.RECOVERY as a special case when scheduling the next run.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The completion callback should follow the codebase's whenComplete style... | null |
apache__bifromq__32 | apache/bifromq | 32 | defect | d96ea0091f4a63fb0bf0c7ccc2ab753c79c39545 | 5e5db9bcdf5c7439edfe66642828015531ef394a | Fix that server side FetchState did not be removed when mqtt sesion close | 1. Fix that server side FetchState did not be removed when mqtt sesion close.
2. Fix that client side Pipeline in weakValues Cache could not be gc. | diff --git a/bifromq-inbox/bifromq-inbox-client/src/main/java/com/baidu/bifromq/inbox/client/InboxClient.java b/bifromq-inbox/bifromq-inbox-client/src/main/java/com/baidu/bifromq/inbox/client/InboxClient.java
index 35e27697b..762e8fab1 100644
--- a/bifromq-inbox/bifromq-inbox-client/src/main/java/com/baidu/bifromq/inbo... | 2 | 2 | 2 | [{"id": "G0", "claim": "The cleaner (CLEANER.register/PipelineCloseAction) should not be coupled with the cache-building logic in SessionDictClient and InboxClient.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add unit tests asserting the cleaner actua... | null |
apache__bifromq__5 | apache/bifromq | 5 | defect | 8b67b550e3f78c328a9191d824c692d17295c9f6 | afdb25acdd9b3910f67dd90db017762a56780d4c | Add qos2 seq and clientInfo for creating inboxes | if the inbox is not existed, complete the missing part of the metadata. | diff --git a/bifromq-inbox/bifromq-inbox-store/src/main/java/com/baidu/bifromq/inbox/store/InboxStoreCoProc.java b/bifromq-inbox/bifromq-inbox-store/src/main/java/com/baidu/bifromq/inbox/store/InboxStoreCoProc.java
index 2564b3ff4..6ba13eee6 100644
--- a/bifromq-inbox/bifromq-inbox-store/src/main/java/com/baidu/bifromq... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add a unit test covering the changed inbox-creation code branch and its fixed logic.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Using Mockito ArgumentCaptor is better than the adhoc TestWriter stub in this test.", "category":... | null |
apache__bifromq__76 | apache/bifromq | 76 | defect | b2c296fe582ec52d118daf79185277eaef9510cf | 7fd75e3b64a2b847953b21fa07bf54a3d84db60c | Bugfix for issue75 | Bugfix for https://github.com/bifromqio/bifromq/issues/75 | diff --git a/bifromq-apiserver/src/main/java/com/baidu/bifromq/apiserver/NonTLSServerInitializer.java b/bifromq-apiserver/src/main/java/com/baidu/bifromq/apiserver/NonTLSServerInitializer.java
index e56919834..9f57ac930 100644
--- a/bifromq-apiserver/src/main/java/com/baidu/bifromq/apiserver/NonTLSServerInitializer.jav... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hardcoded 1MB HttpObjectAggregator size added to the server initializers should be made configurable via APIServerConfig, defaulting to the same value as MQTTServerConfig.maxMsgByteSize.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__bookkeeper__3793 | apache/bookkeeper | 3,793 | defect | e0fd93a4bc248e438fabcc06255d885b8a21e4f2 | 558ae300f43903c514d84027ade19f69239ba7ad | Make RrocksDB checksum type configurable | ### Motivation
Fix https://github.com/apache/bookkeeper/issues/3734#issuecomment-1407626941
We have two rocksDB tables, one for the ledger index, and another for the entry log location.
- ledger index RocksDB table: Use the default table option, and the checksum is `kCRC32c`
- entry log location RocksDb table: ... | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/KeyValueStorageRocksDB.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/KeyValueStorageRocksDB.java
index deaed391464..d402e66e118 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/booki... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test should drop the explicit configuration.setProperty(\"dbStorage_rocksDB_checksum_type\", \"kxxHash\") line so it verifies that the default checksum type is kxxHash.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__bookkeeper__3876 | apache/bookkeeper | 3,876 | defect | 2381d9b65a37b6e58ffc9c7be2aba35fd37874b7 | 1cd468966f7fc68cabea115925ee66442a5785e9 | Try to use jdk api to create hardlink when rename file when compaction. | ### Motivation
Current HardLink will create a process to execute mv like command to rename file in compaction logic.
maybe we can just use jdk api to do this with lower overhead.
see javadoc: https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#createLink(java.nio.file.Path,%20java.nio.file.Path)... | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/DefaultEntryLogger.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/DefaultEntryLogger.java
index 12149dcd565..12e366abe4e 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/DefaultEntryLogger.java
+++ b/... | 3 | 2 | 1 | [{"id": "G0", "claim": "Remove the static self-test code and make CREATE_LINK_SUPPORTED default to true, flipping it to false only when a createLink call fails.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test to cover this change.", "category":... | null |
apache__bookkeeper__4300 | apache/bookkeeper | 4,300 | defect | f3800f11b007e2e17be6ee3bedde37c7406f05b7 | 432c3cec93d81a28980e46d9bcf779bccb0a8b41 | Fix ThreadRegistry#register behavior to ensure correct Prom metrics | Descriptions of the changes in this PR:
There is an issue in the `ThreadRegistry` that causes incomplete Prometheus metrics reporting. It is trivial to reproduce:
1. Start bookies with multiple journal directories.
2. Start multiple clients writing to the bookies.
3. Observe that the `bookkeeper_server_ADD_ENTR... | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieImpl.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieImpl.java
index 1514a74ad80..c3af234d78c 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieImpl.java
+++ b/bookkeeper-server/src/ma... | 3 | 3 | 3 | [{"id": "G0", "claim": "The duplicate-registration check should use an explicit exception (e.g. IllegalStateException) instead of an assert, because assertions may not be enabled in BookKeeper.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newl... | null |
apache__bookkeeper__4342 | apache/bookkeeper | 4,342 | defect | b38b1717a7431d35f30439d2f47e4751be342357 | b4a7b4440dc57db04e646404c806bf5b868d2d01 | [client] new API to check if Bookkeeper client is connected to metadata service | # Motivation
when zookeeper disconnect, use bookkeeper api to create new ledger will fail. add a new api to check metadata driver is available, if not available, use current ledger continue and don't rollover ledger
## ** tip **
Although it may not solve all issues since it's not atomic, it will reduce the losses ... | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/BookKeeper.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/BookKeeper.java
index d7043dc8c9a..9b77260fa12 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/BookKeeper.java
+++ b/bookkeeper-server/src/ma... | 8 | 7 | 1 | [{"id": "G0", "claim": "The watcher logs every ZK session watch event at info level, which probably just adds noise; it should be moved to debug level.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The blank line inside the handleState switch, ... | null |
apache__bookkeeper__4426 | apache/bookkeeper | 4,426 | defect | 43b5ccc5adb3ac2a0f96f22740e745c799095281 | d2f33b1576e1fb2f2bcf6f0e4e848f915c5ccc70 | Upgrade to Netty 4.1.111.Final and switch to use grpc-netty-shaded | ### Motivation
[Netty 4.1.111.Final](https://netty.io/news/2024/06/11/4-1-111-Final.html) contains important fixes:
- https://github.com/netty/netty/pull/14086
- https://github.com/netty/netty/pull/14093
On the Pulsar side these address Broker stability when TLS with Bookkeeper V2 protocol is used between Broke... | diff --git a/bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt b/bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt
index 8d0433f0028..da34cdf2a07 100644
--- a/bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt
+++ b/bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt
@@ -217,17 +217,17 @@ Apache Softwa... | 1 | 1 | 0 | [{"id": "G0", "claim": "The bcpkix-jdk15on exclusion on grpc-all is obsolete (bcpkix-jdk15on is no longer a grpc-all/grpc-java dependency) and should be checked and removed from this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__bookkeeper__4462 | apache/bookkeeper | 4,462 | defect | a164bcae6462f0f7078372cae3549d91989f7383 | 45ad30959f98380655c67fdfae1337a7a6672995 | [fix] Fix data lost after when writing ledger and deleting legder execute concurrency | ### Motivation
| step | `BK client 1` | `BK client 2` |
| --- | --- | --- |
| 1 | create ledger `1` |
| 2 | | open ledger `1` |
| 3 | | delete ledger `1` |
| 4 | write data to ledger `1` |
At the step `4`, the write should fail, but it succeeds. It leads users to assume the data has been written, but it can... | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieImpl.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieImpl.java
index a69df4a1768..a37d559c7c7 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieImpl.java
+++ b/bookkeeper-server/src/ma... | 7 | 2 | 1 | [{"id": "G0", "claim": "The fix only forbids writes to a ledger that was fenced before deletion, and the reviewer asked whether writes to a deleted ledger that was never fenced should also be forbidden.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A writ... | null |
apache__bookkeeper__4520 | apache/bookkeeper | 4,520 | defect | 4d50a445553a3a5d4af3aed973ac64bcd4132789 | f182a55ad584939a40146192380bc4510dee0e1e | [improve][conf] Change the default value of readOnlyModeOnAnyDiskFullEnabled to true | ### Motivation
The https://github.com/apache/bookkeeper/pull/3212 import a feature: convert bookie to read-only mode when any ledger disks is full.
In our practice, we found that when the bookie disk is full, if it is not changed to Read Only mode, a large number of messages will fail to be written to the ledger di... | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java
index cb731060c4c..01848882c55 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java
+++ b/boo... | 3 | 3 | 1 | [{"id": "G0", "claim": "The mailing-list discussion backing this change cannot be found, so one should be started and linked.", "category": "process", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "CI on this pull request fails and the testcase org.apache.bookkeeper.bookie.Ledg... | null |
apache__bookkeeper__4525 | apache/bookkeeper | 4,525 | defect | af8baa18ad9f5d079400f65d8f686a78bf93c393 | 495513d95699a2f80cc4ebefb3e56e2bb4552244 | fix pendingDeletedLedgers do not remove ledger error | ### Motivation
fix this pr https://github.com/apache/bookkeeper/pull/3989 cause ledger not remove in pendingDeletedLedgers.
Previous would do poll(), but later just do forEach()
### Changes
keep the same logic before pr-3989.
Alternative fix is revert previous pr.
| diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/LedgerMetadataIndex.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/LedgerMetadataIndex.java
index 73b0fd02dae..186bef4c97f 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/stor... | 2 | 2 | 2 | [{"id": "G0", "claim": "pendingDeletedLedgers should be pruned per ledger (pendingDeletedLedgers.remove(ledgerId) right after the ledgersDb delete) instead of clear(), because entries added while removeDeletedLedgers runs would be cleared from the pending set without their ledgers ever being deleted from ledgersDB.", "... | null |
apache__bookkeeper__4543 | apache/bookkeeper | 4,543 | defect | edb06724d2a30ed44edacabaa8f27ac903097814 | 75c317b1ca29c17eeb4deb3fe5d361ff394f5815 | improve: allow flaky tests run with specify parameters | Fix #3249
### Motivation
This PR addresses the issue where tests annotated with @FlakyTest were not being executed by JUnit unless they were also annotated with @Test.
To resolve this, we have updated our Maven Surefire plugin configuration to exclude tests tagged with flaky during regular CI runs, allowing t... | diff --git a/bookkeeper-common/src/test/java/org/apache/bookkeeper/common/testing/annotations/FlakyTest.java b/bookkeeper-common/src/test/java/org/apache/bookkeeper/common/testing/annotations/FlakyTest.java
index 27c26b123d6..e0a9db07d38 100644
--- a/bookkeeper-common/src/test/java/org/apache/bookkeeper/common/testing/... | 2 | 2 | 0 | [{"id": "G0", "claim": "The added surefire excludedGroups configuration excludes the flaky group by default, contradicting the PR description's statement that all tests including flaky ones are executed unless explicitly excluded, and this exclusion semantics should be documented in the FlakyTest annotation and clearly... | null |
apache__bookkeeper__4555 | apache/bookkeeper | 4,555 | defect | 606db747eae9856fed0aeb3f16ef01e7c9254e26 | 97a38dadd0163177bf5f6076f4cdc018964140eb | Fix SST files not being cleaned up in the locations folder | Descriptions of the changes in this PR:
<!-- Either this PR fixes an issue, -->
Fix #4554
### Motivation
Resolve issue with SST files remaining uncleared in the locations folder.
### Changes
1. Reuse the cleanup logic of `GarbageCollectorThread` to trigger entryLocationCompact() when a major compactio... | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/GarbageCollectorThread.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/GarbageCollectorThread.java
index f9bdef9d565..16f2080240c 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/GarbageCollectorThread... | 2 | 2 | 1 | [{"id": "G0", "claim": "Entry location compaction should be moved out of the major/minor compaction scope and controlled by its own interval, with the entryLocationCompaction flag removed in favor of entryLocationCompactionInterval (default -1, i.e. disabled), because coupling it to major/minor compaction factors (susp... | null |
apache__bookkeeper__4581 | apache/bookkeeper | 4,581 | defect | 3fea440a94d502420caa2114a26eafef64cab3eb | 2a7359697d8b8f1066985f95395ad6cd3be5e038 | Fix the coredump that occurs when calling KeyValueStorageRocksDB.count after rocksdb has been closed | Descriptions of the changes in this PR:
### Motivation
Fix https://github.com/apache/bookkeeper/issues/4238
### Changes
Add a boolean status check before KeyValueStorageRocksDB.count()
| diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/KeyValueStorageRocksDB.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/KeyValueStorageRocksDB.java
index c9e72847fbc..88c7e1170b7 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/booki... | 2 | 2 | 2 | [{"id": "G0", "claim": "The closed flag alone still allows the count operation to race with the database being closed, which would most likely result in a core dump, so close and count need an exclusive lock (e.g. a StampedLock with a read lock in count and a write lock in close); it also asks whether all operations or... | null |
apache__bookkeeper__4592 | apache/bookkeeper | 4,592 | defect | f148f6334d8810f0fd0fe76cb9541d126a770fb1 | 4798852026190cc3a854e4c3450df923b8fc144a | Delete cookie as part of decommission API | Implement the logic in [BP-68:](https://github.com/apache/bookkeeper/pull/4500) Delete cookie as part of decommission API. | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/server/http/service/DecommissionService.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/server/http/service/DecommissionService.java
index 225afd346cd..43b890c2301 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/server/ht... | 3 | 1 | 0 | [{"id": "G0", "claim": "Adding the delete-cookie decommission HTTP function is quite high risk (as historical PR #4541 showed) and there is no need to add this function.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tests should use Awaitility to veri... | null |
apache__bookkeeper__4613 | apache/bookkeeper | 4,613 | defect | 87ca7f33721592a12e86e0bb7151980249aeceaa | f8e8150ef7ec971fe70d1cb9897ee461ee408e12 | [fix] Failed read entries after multiple decommissioning | ### Motivation
**Background**
- `ReadOnlyLedgerHandle` opened without `doRecovery`, in other words, it has not been closed yet, its metadata in memory will be updated once modified.
- `ReadOnlyLedgerHandle` opened with `doRecovery`, in other words, it has been closed or it will be closed; its metadata in memory wi... | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerOpenOp.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerOpenOp.java
index 943aa8cd2a9..2dbb11665c4 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerOpenOp.java
+++ b/bookkeeper-server/... | 2 | 2 | 1 | [{"id": "G0", "claim": "It is unclear whether there are cases where the ReadOnlyLedgerHandle cannot accept metadata-server updates; as understood it should always accept metadata updates no matter doRecovery or not, and if the ledger metadata updates are not as expected the update part should be fixed.", "category": "d... | null |
apache__bookkeeper__4640 | apache/bookkeeper | 4,640 | defect | 45f7a9202450d7c2093e3dd47fd51ff1519c20e8 | 717ec525c41c0f0b55aadc840a23a2b3097ed91c | [fix]BK stays at read_only state even if the disk is empty | ### Motivation
Issue: BK stays at `readOnly` state even if the disk is empty
Reproduce steps
- Configurations
- `diskUsageLwmThreshold`: `0.85`
- `diskUsageWarnThreshold`: `0.85`
- `diskUsageThreshold`: `0.90`
- `persistBookieStatusEnabled`: `true`
- The state of BK switches to `read-only` because t... | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieStateManager.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieStateManager.java
index 9800d9e0636..38f8d026cae 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieStateManager.java
+++ b/... | 4 | 2 | 0 | [{"id": "G0", "claim": "The old 3-part status format indicates the read-only state was set by disk monitoring rather than manually, so parse() should set isManuallyModifiedToReadOnly to false, not true.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Thread... | null |
apache__bookkeeper__4710 | apache/bookkeeper | 4,710 | defect | 07d18be73cd59993d69a3619790445807740e35c | c6b10b8a1b09180f28b88e1db19a8c4b3a251888 | Upgrade Jetty from 9.4.57 to 12.1.7 | ### Motivation
This upgrades Jetty to the latest stable 12.x release, which brings improved performance, HTTP/2 and HTTP/3 support, and ongoing security updates (Jetty 9.x is EOL).
Key changes:
- Update jetty.version from 9.4.57.v20241219 to 12.1.6
- Use jetty-ee8-* artifacts to maintain javax.servlet compatibi... | diff --git a/bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt b/bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt
index 799cb6bb3db..bde2f59f262 100644
--- a/bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt
+++ b/bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt
@@ -265,13 +265,13 @@ Apache Softwa... | 1 | 1 | 0 | [{"id": "G0", "claim": "Reference [22] in bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt still points at the Jetty 12.1.6 source URL and should be updated to jetty-12.1.7.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__bookkeeper__4713 | apache/bookkeeper | 4,713 | defect | 3a5cf9d2fb35c758e804855ac30ad0044ee983a4 | 13bf1054ce19cf642b81237e8ccdff117c297e20 | [client] fix writeLac memory leak and thread safety issue | ### Motivation
When I set `explicitLacInterval` and enable netty memory leak detection, I find that `PendingWriteLacOp` has a memory leak, as shown below:
<img width="2946" height="1946" alt="Clipboard_Screenshot_1770968282" src="https://github.com/user-attachments/assets/17064b0e-c9fc-4fc0-9bdd-315a205d838f" />
... | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingWriteLacOp.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingWriteLacOp.java
index f9a5397daf0..ed3748850e3 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingWriteLacOp.java
+++ b/boo... | 2 | 2 | 2 | [{"id": "G0", "claim": "writeLacComplete should check `completed` and only trigger the addLacComplete callback when it was false, releasing and nulling `toSend` on the response path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Cross-thread visibi... | null |
apache__bookkeeper__4738 | apache/bookkeeper | 4,738 | defect | 6dc59255dc99745c0645374cd3b69d8d26de17ce | a7b49c83411f2cc52b9925886a3172522ae7c75e | feat: migrate native-io implementation from C to Rust | ## Motivation
The existing `native-io` module is implemented in C and built using the NAR (Native ARchive) toolchain. This approach has several limitations:
* Cross-compilation across architectures (especially Linux amd64 and arm64) is complex and hard to maintain
* The build pipeline relies on legacy tooling (N... | diff --git a/.github/workflows/bk-ci.yml b/.github/workflows/bk-ci.yml
index 64116a3fe61..f0889908af4 100644
--- a/.github/workflows/bk-ci.yml
+++ b/.github/workflows/bk-ci.yml
@@ -82,6 +82,14 @@ jobs:
distribution: 'temurin'
java-version: 17
+ - name: Set up Rust
+ uses: dtolnay/rus... | 9 | 8 | 7 | [{"id": "G0", "claim": "libraryCandidates(osName, osArch) ignores the osName argument and instead uses SystemUtils.IS_OS_LINUX from the running JVM, making the method non-deterministic across environments and able to return Linux paths for non-Linux osName values; determine the OS from the osName argument so the method... | null |
apache__bookkeeper__4739 | apache/bookkeeper | 4,739 | defect | 6dc59255dc99745c0645374cd3b69d8d26de17ce | bf737fa1bb604f3cd98f65d566bbaa0509036ee8 | [[BP-62] Expose batchReadUnconfirmedAsync to ReadHandle | This is a supplement to [BP62](https://github.com/apache/bookkeeper/pull/4051)
### Motivation
`batchReadUnconfirmedAsync` doesn't exposed to ReadHandle now, downstream projects maybe depend on the method.
### Changes
1. Expose batchReadUnconfirmedAsync to ReadHandle
2. Add tests
> ---
> In order to up... | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
index 7d1f67a2e4b..6c88ccfd9d2 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/LedgerHandle.java
+++ b/bookkeeper-server/... | 3 | 2 | 2 | [{"id": "G0", "claim": "Add unit tests for error scenarios (input validations, internal errors) verifying that errors are reported accurately in the returned CompletableFuture.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Also test the fallback case w... | null |
apache__bookkeeper__4760 | apache/bookkeeper | 4,760 | defect | 74109879801cb8966503a4ea7b822b37a8e91105 | dbdf559a2f6892d511735621e7c45057416c54c3 | Fix NPE in PendingAddOp.maybeTimeout() when clientCtx is null after recycling | ## Motivation
`monitorPendingAddOps()` iterates over the `pendingAddOps` queue and calls
`maybeTimeout()` on each op. Concurrently, `sendAddSuccessCallbacks()` can
remove a completed op from the queue, call `submitCallback()` on it, and
ultimately trigger `recyclePendAddOpObject()` which sets `clientCtx = null`
... | diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingAddOp.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingAddOp.java
index 6b82200b3fa..2111f7c6889 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingAddOp.java
+++ b/bookkeeper-server/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The null-check guard in maybeTimeout() does not fully solve the recycle race, since clientCtx could still be nulled between the guard and the next read on line 163; a better approach (even without volatile) is to snapshot it into a local variable and check that, and it would still not address wh... | null |
apache__brpc__2225 | apache/brpc | 2,225 | defect | ec11bb39400c2c48455c5f1647a8e651efbe1676 | 5cc5cecd76e3943000d8d22d4bd4565f18cf2966 | New DoublyBufferedData for suspended bthread | ### What problem does this PR solve?
Issue Number: resolve #2209
Problem Summary:
### What is changed and the side effects?
Changed:
Side effects:
- Performance effects(性能影响):
- Breaking backward compatibility(向后兼容性):
---
### Check List:
- Please make sure your changes are compilable(请确保你的更改可以通... | diff --git a/src/butil/containers/doubly_buffered_data.h b/src/butil/containers/doubly_buffered_data.h
index c928037bc5..315671f4dd 100644
--- a/src/butil/containers/doubly_buffered_data.h
+++ b/src/butil/containers/doubly_buffered_data.h
@@ -23,6 +23,7 @@
#include <deque>
#include <vector> ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new class doc comment \"DoublyBufferedDataBthread allows to / bthread is suspended when executing query logic\" is ungrammatical and should say that a bthread may be suspended while executing the query logic.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "... | null |
apache__brpc__2393 | apache/brpc | 2,393 | defect | 09f0916f36cde9cc2637cd01a021895ba0981e27 | be19c28e502579a508bdd47f2b2c9c1f00cefa54 | Fix HTTP no content of 1xx and 204 | ### What problem does this PR solve?
Issue Number: Fix #1610
Problem Summary:
### What is changed and the side effects?
Changed:
Side effects:
- Performance effects(性能影响):
- Breaking backward compatibility(向后兼容性):
---
### Check List:
- Please make sure your changes are compilable(请确保你的更改可以通过编译... | diff --git a/src/brpc/details/http_message.cpp b/src/brpc/details/http_message.cpp
index bb6116d498..b49bd2b71b 100644
--- a/src/brpc/details/http_message.cpp
+++ b/src/brpc/details/http_message.cpp
@@ -630,7 +630,19 @@ void MakeRawHttpResponse(butil::IOBuf* response,
os << "HTTP/" << h->major_version() << '.'
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new bool variable no_content is easily confused by name with the butil::IOBuf* variable content, so no_content should be renamed to a clearer name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__brpc__2565 | apache/brpc | 2,565 | defect | 24fc31eaa56d8b522975ca41ed012faf6cf77438 | dad8e92034f3e00d5354d765b4ef74155b8c0b65 | Support on_failed callback for streaming rpc | ### What problem does this PR solve?
Issue Number: resolve #2285
Problem Summary:
### What is changed and the side effects?
Changed:
Side effects:
- Performance effects(性能影响):
- Breaking backward compatibility(向后兼容性):
---
### Check List:
- Please make sure your changes are compilable(请确保你的更改可以... | diff --git a/.gitignore b/.gitignore
index bdd210096b..9a60889afa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,3 +44,6 @@ CTestTestfile.cmake
/test/curl.out
/test/out.txt
/test/recordio_ref.io
+
+# Ignore protoc-gen-mcpack files
+/protoc-gen-mcpack*/
\ No newline at end of file
diff --git a/src/brpc/controller.cp... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `split_closed_and_failed` parameter could be dropped: on failure the handler should simply have `on_failed` called and then `on_closed`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__brpc__2734 | apache/brpc | 2,734 | defect | c709c96a61e85998d177e210314f58581e61ade3 | e664e62ce6c84e61609f073be836cf31ce653333 | Support backup request policy | ### What problem does this PR solve?
Issue Number: resolve #2668 , resolve #2695
Problem Summary:
### What is changed and the side effects?
Changed:
Side effects:
- Performance effects(性能影响):
- Breaking backward compatibility(向后兼容性):
---
### Check List:
- Please make sure your changes are compi... | diff --git a/src/brpc/backup_request_policy.h b/src/brpc/backup_request_policy.h
new file mode 100644
index 0000000000..c8d04fbf82
--- /dev/null
+++ b/src/brpc/backup_request_policy.h
@@ -0,0 +1,40 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOT... | 5 | 4 | 2 | [{"id": "G0", "claim": "Because the backup request policy can only be set on the channel, once a policy is set Controller::backup_request_ms() always returns the policy's backup_request_ms, so the backup_request_ms set on a cntl (per-request granularity) no longer takes effect — unreasonable for a channel used by multi... | null |
apache__brpc__2744 | apache/brpc | 2,744 | defect | c709c96a61e85998d177e210314f58581e61ade3 | 3245d0aaf34ba0138da0a6ff2f662d1caae7db59 | Send unauthorized response to client when authentication fails | ### What problem does this PR solve?
Issue Number:
Problem Summary:
当前server鉴权失败时,会直接关闭连接。client只有`EEOF`的错误,没法快速定位问题。
### What is changed and the side effects?
Changed:
在`Authenticator`增加一个接口,支持返回一个错误响应给client再关闭连接。
Side effects:
- Performance effects(性能影响):
- Breaking backward compatibility(向后... | diff --git a/src/brpc/authenticator.h b/src/brpc/authenticator.h
index 501e427e7f..a778191b06 100644
--- a/src/brpc/authenticator.h
+++ b/src/brpc/authenticator.h
@@ -57,7 +57,7 @@ class AuthContext {
class Authenticator {
public:
- virtual ~Authenticator() {}
+ virtual ~Authenticator() = default;
// I... | 2 | 2 | 2 | [{"id": "G0", "claim": "Sending WWW-Authenticate content whose format is guaranteed by nobody could violate HTTP requirements, and the standard-way follow-up authentication flow the response would trigger is unsupported, so the standard approach may introduce incompatibility; the author is asked for a suggestion (e.g. ... | null |
apache__brpc__2842 | apache/brpc | 2,842 | defect | 1a02745e45ca519c8da668882b87b766f53e3150 | e89feec78b8942343af77f9ff589cdb9001864b6 | Support success limit of ParallelChannel | ### What problem does this PR solve?
Issue Number:
Problem Summary:
### What is changed and the side effects?
Changed:
支持设置阈值,使rpc成功数达到阈值时,Parallel RPC成功。
Side effects:
- Performance effects(性能影响):
- Breaking backward compatibility(向后兼容性):
---
### Check List:
- Please make sure your changes ... | diff --git a/docs/cn/combo_channel.md b/docs/cn/combo_channel.md
index 76c0b23c98..e11c79b46b 100644
--- a/docs/cn/combo_channel.md
+++ b/docs/cn/combo_channel.md
@@ -19,7 +19,11 @@ ParallelChannel (有时被称为“pchan”)同时访问其包含的sub channel
示例代码见[example/parallel_echo_c++](https://github.com/apache/brpc/tree/master/example/p... | 4 | 1 | 0 | [{"id": "G0", "claim": "Update the documentation to cover the new ParallelChannelOptions.success_limit option as well.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "success_limit appears not to take effect, possibly when fail_limit is -1.", "cate... | null |
apache__brpc__2872 | apache/brpc | 2,872 | defect | 4c33f886756689d6ae90905c5f0cc6fef97e90cf | 001bea234ec4c53dbccc7210ecd81ce4c6779a3c | fix memory leak issue #2871 | ### What problem does this PR solve?
Issue Number: #2871
Problem Summary:
### What is changed and the side effects?
Changed:
Side effects:
- Performance effects(性能影响):
- Breaking backward compatibility(向后兼容性):
---
### Check List:
- Please make sure your changes are compilable(请确保你的更改可以通过编译).
-... | diff --git a/src/brpc/server.cpp b/src/brpc/server.cpp
index ade8e274d5..ada8d1c93b 100644
--- a/src/brpc/server.cpp
+++ b/src/brpc/server.cpp
@@ -151,7 +151,7 @@ ServerOptions::ServerOptions()
, rtmp_service(NULL)
, redis_service(NULL)
, bthread_tag(BTHREAD_TAG_DEFAULT)
- , rpc_pb_message_factory(new... | 3 | 1 | 1 | [{"id": "G0", "claim": "The PR's factory-swap logic only handles rpc_pb_message_factory, and the same delete-before-overwrite problem exists with the other owned pointers in ServerOptions (redis_service, http_master_service, etc.); a shared function could handle them all.", "category": "correctness", "verdict": "suppor... | null |
apache__brpc__2889 | apache/brpc | 2,889 | defect | cfe2537104de968398786aad6521615a798f5d61 | 4f986a51a98f5715e4e57a5514b4bb7464a0f5db | Support segment large brpc stream messages automatically | ### What problem does this PR solve?
https://github.com/apache/incubator-brpc/blob/master/docs/cn/streaming_rpc.md
"目前的实现还没有自动切割过大的消息,同一个tcp连接上的多个Stream之间可能有[Head-of-line blocking](https://en.wikipedia.org/wiki/Head-of-line_blocking)问题,请尽量避免过大的单个消息,实现自动切割后我们会告知并更新文档"
尝试解决这个 TODO。
之前#1947 这个MR存在一点问题(见 讨论和com... | diff --git a/docs/cn/streaming_rpc.md b/docs/cn/streaming_rpc.md
index c9f9ab3673..6bdb2f2913 100644
--- a/docs/cn/streaming_rpc.md
+++ b/docs/cn/streaming_rpc.md
@@ -16,8 +16,7 @@ Streaming RPC保证:
- 全双工。
- 支持流控。
- 提供超时提醒
-
-目前的实现还没有自动切割过大的消息,同一个tcp连接上的多个Stream之间可能有[Head-of-line blocking](https://en.wikipedia.org/wi... | 3 | 2 | 0 | [{"id": "G0", "claim": "Use brpc::PositiveInteger directly instead of the hand-written validator for the new gflag.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a space after the if keyword, and likewise in the rest of the code.", "categor... | null |
apache__brpc__2902 | apache/brpc | 2,902 | defect | f642491996b675496330cdd611fc764bd4b80ac7 | fbe3fe96e9191149a3e2440390125b9afca0d368 | keep session info in RedisConnContext | ### What problem does this PR solve?
Issue Number: https://github.com/apache/brpc/issues/2901
Problem Summary: RedisConnContext 添加auth信息支持多租户场景
### What is changed and the side effects?
Changed:
Side effects:
- Performance effects(性能影响): 无
- Breaking backward compatibility(向后兼容性): 兼容
---
### Ch... | diff --git a/example/BUILD.bazel b/example/BUILD.bazel
index b38cd5a156..df2722a4f6 100644
--- a/example/BUILD.bazel
+++ b/example/BUILD.bazel
@@ -123,3 +123,14 @@ cc_binary(
"//:brpc",
],
)
+
+cc_binary(
+ name = "redis_c++_server",
+ srcs = [
+ "redis_c++/redis_server.cpp",
+ ],
+ co... | 7 | 6 | 2 | [{"id": "G0", "claim": "The leftover '// ========== impl of RedisConnContext ==========' banner left in redis_protocol.cpp can be deleted too.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a blank line between class definitions in src/brpc/... | null |
apache__brpc__2942 | apache/brpc | 2,942 | defect | 062594587f5108c930642b12e1b49e47166688e1 | ea60451c1456d94dab2fa36e4bf4f152d52650b9 | iobuf support reserve_aligned | ### What problem does this PR solve?
IOBuf通过reserve_aligned(size_t n, size_t alignment)函数在IOBuf内部预分配一些符合对齐规则的内存,后续可以通过unsafe_assign函数或者IOBufAsZeroCopyInputStream等函数把这些内存段解析出来,让用户填充数据。
这样做的好处是,统一使用IOBuf的内存管理机制,典型的如RDMA这种内存需要注册的场景,用户自己去注册会比较麻烦,RDMA已经提供给IOBuf内存分配器,直接使用非常方便。
Issue Number:
#993
Problem Summary:... | diff --git a/src/butil/iobuf.cpp b/src/butil/iobuf.cpp
index 8895fb164c..66babaac17 100644
--- a/src/butil/iobuf.cpp
+++ b/src/butil/iobuf.cpp
@@ -1371,6 +1371,41 @@ IOBuf::Area IOBuf::reserve(size_t count) {
return result;
}
+IOBuf::Area IOBuf::reserve_aligned(size_t n, size_t alignment) {
+ size_t count = ... | 4 | 4 | 4 | [{"id": "G0", "claim": "reserve_aligned should check that alignment is a power of two and report an error otherwise.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The block b obtained from share_tls_block leaks when reserve_aligned skips it (marks ... | null |
apache__brpc__3002 | apache/brpc | 3,002 | defect | d4e46bddc1771daf7f65c5643c60118651eb7b5b | 2674c1527ad5b70356450212be634d444cb0a740 | Fix the bug that the grpc protocol is incompatible with authentication(issue:#3001) | …y could not be parsed by the client to get the correct error code after authentication failed
### What problem does this PR solve?
Issue Number: #3001
Problem Summary:
### What is changed and the side effects?
Changed:
- grpc协议和http协议当前共用同一个鉴权函数,所以在鉴权函数中增加了对http协议类型的判断,如果是http2.0版本,按grpc格式返回错误
Si... | diff --git a/src/brpc/policy/http_rpc_protocol.cpp b/src/brpc/policy/http_rpc_protocol.cpp
index 374b1df9fb..a16dd3d7e9 100644
--- a/src/brpc/policy/http_rpc_protocol.cpp
+++ b/src/brpc/policy/http_rpc_protocol.cpp
@@ -1331,7 +1331,26 @@ ParseResult ParseHttpMessage(butil::IOBuf *source, Socket *socket,
}
}
-st... | 2 | 2 | 1 | [{"id": "G0", "claim": "A unit test should be added for this gRPC authentication-failure case.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "SendUnauthorizedResponse need not new a Controller; a stack-allocated Controller already meets the need.", "cat... | null |
apache__brpc__3010 | apache/brpc | 3,010 | defect | d5cdbe69a653684f6593b3448a685a27eb2621a1 | 7e92952aaab0d0b388301a168fcb144f83f95805 | Bugfix: Socket without health check was abnormally recycled | ### What problem does this PR solve?
Issue Number: resolve #2998
Problem Summary:
When the health check is turned off, the SocketMap does not hold a reference to the Socket, so the Socket will be abnormally recycled when the connection is closed.
### What is changed and the side effects?
Changed:
Rega... | diff --git a/src/brpc/selective_channel.cpp b/src/brpc/selective_channel.cpp
index 8877994369..b95fc382b0 100644
--- a/src/brpc/selective_channel.cpp
+++ b/src/brpc/selective_channel.cpp
@@ -197,10 +197,14 @@ int ChannelBalancer::AddChannel(ChannelBase* sub_channel,
}
SocketUniquePtr ptr;
int rc = Socket... | 2 | 1 | 0 | [{"id": "G0", "claim": "The HC-disabled fatal message in ChannelBalancer::AddChannel is grammatically incorrect and should read \"is disabled\" instead of \"is disable\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The disable_health_check test... | null |
apache__brpc__3019 | apache/brpc | 3,019 | defect | 5bc6da6fe61268c9f168b9f5e31ee371403c4eec | 9e8e47a39aaa832efab8c56cc81b20b27c871f19 | Bugfix: SignalTrace mode has memory and deadlock issues | ### What problem does this PR solve?
Issue Number: resolve #3015
Problem Summary:
1. After the signal handler times out, the context may become invalid.
2. SignalSync destructor in signal handler may cause deadlock.
### What is changed and the side effects?
Changed:
1. Use async-signal-safe absl ins... | diff --git a/.github/actions/init-ut-make-config/action.yml b/.github/actions/init-ut-make-config/action.yml
index 891e45b210..9df8103652 100644
--- a/.github/actions/init-ut-make-config/action.yml
+++ b/.github/actions/init-ut-make-config/action.yml
@@ -7,6 +7,8 @@ runs:
steps:
- run: |
sudo apt-get updat... | 5 | 2 | 2 | [{"id": "G0", "claim": "In spin_and_log_trace the `ok` variable only checks `st1` but never includes `st2`; consider updating `ok` to require both traces succeed before breaking.", "category": "testing", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In SignalHandler the code d... | null |
apache__brpc__3024 | apache/brpc | 3,024 | defect | e0fe40e4e42fe27167771e678ee7760d20ea0d62 | f5b7bd2d13657a4b203407362c83f33ac09a2245 | add inline redis protocol support | ### What problem does this PR solve?
Issue Number:
Problem Summary:
Add inline redis protocol support. Many redis benchmark tools use inline protocol, such as `redis_benchmark`, `dfly_bench`, although inline protocol is not guaranteed to be support for a redis-compatible database.
### What is changed and th... | diff --git a/src/brpc/redis_command.cpp b/src/brpc/redis_command.cpp
index 81b734befd..6e2c841d3d 100644
--- a/src/brpc/redis_command.cpp
+++ b/src/brpc/redis_command.cpp
@@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.
+#include <cctype>
#include <limits>
#incl... | 2 | 2 | 1 | [{"id": "G0", "claim": "The PR author should add some unit tests for the inline redis protocol feature.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The inline-command parsing should use butil::StringPiece::find instead of the hand-rolled find_crlf he... | null |
apache__brpc__3096 | apache/brpc | 3,096 | defect | 7229c3608f8cb98b24a0a2e7f99bc01d357d9312 | db7e37b0354a6564cdb7ffad0fb4e4fa7f4aed25 | Add support for checking all living bthreads | User can check all living bthreads by `curl ip:port/bthreads/all` or `curl ip:port/bthreads/all?st=1` to show bthread stack trace. This is an enhancement of the original /bthreads service which provides a method to check a specified bthread by designated bthread id, as user has no idea what the bthread id is.
~~Cond... | diff --git a/src/brpc/builtin/bthreads_service.cpp b/src/brpc/builtin/bthreads_service.cpp
index 7676f65600..00e45c79bb 100644
--- a/src/brpc/builtin/bthreads_service.cpp
+++ b/src/brpc/builtin/bthreads_service.cpp
@@ -23,7 +23,10 @@
#include "brpc/builtin/bthreads_service.h"
namespace bthread {
-extern void print_... | 6 | 5 | 0 | [{"id": "G0", "claim": "Get all bthread ids by traversing the butil::ResourcePool<TaskMeta> block groups (adding an interface to ResourcePool) instead of maintaining the separate tracked set of living bthreads.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
apache__brpc__3116 | apache/brpc | 3,116 | defect | 4eeb5e260af165291f95f30f0fa64f9ff67ba192 | 46392ac0735d4cb8b0413a4196a1238fc3cd87f5 | Support higher performance bvar with babylon counter | ### What problem does this PR solve?
Issue Number: resolve #2675
Problem Summary:
bvar::detail::AgentCombiner use LOCK or CAS operation as a general implementation for counter, but the LOCK or CAS operation may be avoidable.
### What is changed and the side effects?
Changed:
Refer to [Use concurrent ... | diff --git a/.bazelrc b/.bazelrc
index 3ffec2dcf6..2ee10ddac7 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -20,6 +20,7 @@ common --registry=https://bcr.bazel.build
common --registry=https://baidu.github.io/babylon/registry
build --cxxopt="-std=c++17"
+build --copt="-fno-omit-frame-pointer"
# Use gnu17 for asm keyword.
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The document should be updated to describe the new babylon counter bvar feature.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a missing space between 'NULL' and the '!=' operator in the BabylonVariable destructor cond... | null |
apache__brpc__3129 | apache/brpc | 3,129 | defect | 1d3bded92a8de6db7d76e53901afec205501952d | c4d16f5cbeaf1807b4021b43dd36d480935a1f0a | Support shared mbvar | ### What problem does this PR solve?
Issue Number: resolve #3069
Problem Summary:
MultiDimension get_stats returns a raw pointer, making it unsafe to delete bvar via delete_stats.
### What is changed and the side effects?
Changed:
MultiDimension<BvarType, KeyType, true> get_stats supports returning sh... | diff --git a/src/bvar/multi_dimension.h b/src/bvar/multi_dimension.h
index 9163e3462e..a5bddc89b3 100644
--- a/src/bvar/multi_dimension.h
+++ b/src/bvar/multi_dimension.h
@@ -20,6 +20,8 @@
#ifndef BVAR_MULTI_DIMENSION_H
#define BVAR_MULTI_DIMENSION_H
+#include <memory>
+#include <type_traits>
#include "butil/loggi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The shared mbvar may be less performant than the non-shared version.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__brpc__3136 | apache/brpc | 3,136 | defect | ef82950d172346209db728d8e68522bb5fa489ed | 571ead76b3737159454b8528786872a2cc3907c3 | Fix: Remove recursion of redis command parser | ### What problem does this PR solve?
Issue Number: NULL
Problem Summary: Remove recursion of redis command parser
### What is changed and the side effects?
Changed: Convert RedisCommandParser::Consume to iterative state machine (remove recursion)
Side effects:
- Performance effects:
- Breaking back... | diff --git a/src/brpc/redis_command.cpp b/src/brpc/redis_command.cpp
index 5803aaa8b9..0f4f2f82bc 100644
--- a/src/brpc/redis_command.cpp
+++ b/src/brpc/redis_command.cpp
@@ -377,136 +377,138 @@ size_t RedisCommandParser::ParsedArgsSize() {
ParseError RedisCommandParser::Consume(butil::IOBuf& buf,
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The do-while loop in Consume is too long and hard to read; the actual parsing code should be moved to a ConsumeImpl function with the do-while structure left in Consume.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__brpc__3145 | apache/brpc | 3,145 | defect | 9934c39be00806669741eebba38f6ca32ba11956 | f17d59791bb6e0214d78bbbf7a409a1ccb905e84 | Bugfix: SQ overflow | ### What problem does this PR solve?
Issue Number: resolve #3132
Problem Summary:
### What is changed and the side effects?
Changed:
Side effects:
- Performance effects:
- Breaking backward compatibility:
---
### Check List:
- Please make sure your changes are compilable.
- When providing us w... | diff --git a/src/brpc/rdma/rdma_endpoint.cpp b/src/brpc/rdma/rdma_endpoint.cpp
index 1d502a98f7..5f308ae6ec 100644
--- a/src/brpc/rdma/rdma_endpoint.cpp
+++ b/src/brpc/rdma/rdma_endpoint.cpp
@@ -102,6 +102,12 @@ static const uint32_t ACK_MSG_RDMA_OK = 0x1;
static butil::Mutex* g_rdma_resource_mutex = NULL;
static Rdm... | 21 | 15 | 3 | [{"id": "G0", "claim": "The newly introduced `_sq_window_size` atomic is not reset to 0 in `Reset()`, so it should be reset there alongside `_remote_rq_window_size` to avoid stale values when the endpoint is reused.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
apache__brpc__3179 | apache/brpc | 3,179 | defect | c7ae57aa310b9618911ef75c6361ba80a8e082f2 | 2578b05daae6c56e38244b4658c25b3e0c0fc932 | support SO_BINDTODEVICE and bind client_host | ### What problem does this PR solve?
Issue Number: [#3157](https://github.com/apache/brpc/issues/3157), [#3178](https://github.com/apache/brpc/issues/3178)
Problem Summary:
### What is changed and the side effects?
Changed:
1.在ChannelOptions中添加client_host和device_name,让用户设置client的ip或hostname和网卡名称
2.在Socket... | diff --git a/src/brpc/channel.cpp b/src/brpc/channel.cpp
index 0252e97d74..b57a6f95b0 100644
--- a/src/brpc/channel.cpp
+++ b/src/brpc/channel.cpp
@@ -77,6 +77,7 @@ ChannelSSLOptions* ChannelOptions::mutable_ssl_options() {
static ChannelSignature ComputeChannelSignature(const ChannelOptions& opt) {
if (opt.auth ... | 11 | 9 | 5 | [{"id": "G0", "claim": "The unit test is broken and must be fixed.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Connect() converts local_side() to a sockaddr and calls bind() unconditionally, so every connection is bound even when options.local_side (... | null |
apache__brpc__3193 | apache/brpc | 3,193 | defect | c7973d0a4717412c33ddb73c668c9c0ad0d06a4c | d2c331cd47d106651dae9aa3cac4dd0012b279f5 | Fix port parsing validation in str2endpoint | Issue Number: resolves #3192
Problem Summary:
`str2endpoint(const char* str, EndPoint* point)` incorrectly accepts invalid
endpoint strings where the port number is followed by non-whitespace
characters (e.g. "127.0.0.1:8000a").
This happens because the current validation logic skips the first non-digit
chara... | diff --git a/src/butil/endpoint.cpp b/src/butil/endpoint.cpp
index d243252d6d..a8d8936c63 100644
--- a/src/butil/endpoint.cpp
+++ b/src/butil/endpoint.cpp
@@ -288,7 +288,7 @@ int str2endpoint(const char* str, EndPoint* point) {
if (end == str + i) {
return -1;
} else if (*end) {
- for (++end; ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Please add a unit test in endpoint_unittest.cpp covering the str2endpoint port-parsing behavior changed by this pull request.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__brpc__3215 | apache/brpc | 3,215 | defect | b7dfab05612ad666c3c4be1a26e4049990f48f83 | d37798a75a1661261ec5aa20ae3a4c78e5dde923 | Make batch create stream SendFeedback thread safe | ### What problem does this PR solve?
Issue Number: resolve
Fixes https://github.com/apache/brpc/pull/2754
Problem Summary:
批量创建stream场景下,解决 Stream SetConnected() 与 Consume() 并发导致的 SendFeedback
发送与已消费字节统计的竞态问题,使得反馈的已消费字节数准确,避免发送端错误反压。
### What is... | diff --git a/src/brpc/stream.cpp b/src/brpc/stream.cpp
index 2a4430548f..a2a106a8b1 100644
--- a/src/brpc/stream.cpp
+++ b/src/brpc/stream.cpp
@@ -52,6 +52,7 @@ Stream::Stream()
, _remote_consumed(0)
, _cur_buf_size(0)
, _local_consumed(0)
+ , _atomic_local_consumed(0)
, _parse_rpc_response(false... | 3 | 3 | 1 | [{"id": "G0", "claim": "Add a unit test to verify the batch-create-stream SendFeedback race scenario that this PR fixes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the unused bthread/countdown_event.h include from the test file (or add its in... | null |
apache__bval__175 | apache/bval | 175 | defect | 760a6b4769f3dbdb20e9771dbaa647bc060170ea | 445cff17121d09a75f010244aba68a8590825d01 | BVAL-222 - enable BValInterceptor when constraints are only placed on parent classes | Fixes [BVAL-222](https://issues.apache.org/jira/browse/BVAL-222) | diff --git a/bval-jsr/pom.xml b/bval-jsr/pom.xml
index 36dce3569e..1e37d26f68 100644
--- a/bval-jsr/pom.xml
+++ b/bval-jsr/pom.xml
@@ -218,6 +218,25 @@
</exclusion>
</exclusions>
</dependency>
+
+ <dependency>
+ <groupId>org.jboss.arquillian.junit</groupId>
+ ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The newly added validation-scanning methods should iterate with for-each loops instead of index-based for loops.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "DEFAULT_ANNOTATED_TYPE_FILTER should stay private and the tes... | null |
apache__bval__8 | apache/bval | 8 | defect | dd3f12e734f52c7ab741746b832cc31d6396e4a2 | 718ff549e5965b56a4463cfc150233b150b57d92 | BVAL-183 Avoid memory leaks in child (ValueExtractors) | Avoid non needed work when no validation constraints are found
Small micro-benchmarks
Fix Java 11 compilation with Java FX as an external library | diff --git a/bval-jsr/pom.xml b/bval-jsr/pom.xml
index 4efe51daa1..4bc0bde0be 100644
--- a/bval-jsr/pom.xml
+++ b/bval-jsr/pom.xml
@@ -44,6 +44,11 @@
<jdk>11</jdk>
</activation>
<dependencies>
+ <dependency>
+ <groupId>org.apache.geronimo.spec... | 1 | 1 | 1 | [{"id": "G0", "claim": "The dependencies added to bval-jsr/pom.xml need scope fixes — the new hibernate-validator and JMH benchmark dependencies should be test-scoped, and the geronimo-activation_1.1_spec dependency should maybe be put in provided scope.", "category": "correctness", "verdict": "supported", "priority": ... | null |
apache__calcite-avatica__126 | apache/calcite-avatica | 126 | defect | 8618b05b566bce37580f89499ae9fc702b543c0e | e4a7a6a7ffe50a9bb81a727c4ad282439679ae68 | [CALCITE-4181] Fix exception when selecting List<Object> | Currently Calcite supports array columns from both ArrayImpl or List input.
It also supports both struct and plain java object data format.
The issue is that an exception is thrown when data is a list of plain java objects, while it works fine when data is a list of struct or an array of plain java objects.
I ... | diff --git a/core/src/main/java/org/apache/calcite/avatica/util/AbstractCursor.java b/core/src/main/java/org/apache/calcite/avatica/util/AbstractCursor.java
index 5559f60bf7..ce810492e3 100644
--- a/core/src/main/java/org/apache/calcite/avatica/util/AbstractCursor.java
+++ b/core/src/main/java/org/apache/calcite/avatic... | 13 | 12 | 0 | [{"id": "G0", "claim": "Trim the listOfStructs javadoc to its first line, referring to the JIRA ticket if more context is needed.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the narrating comments like 'Define the struct type we're creat... | null |
apache__calcite-avatica__149 | apache/calcite-avatica | 149 | defect | e4f22c33c5a67257056ee4428486b900cc139038 | 11f66fd0861414aafe7a1606da31148e544a18b9 | [CALCITE-4676] Avatica client leaks TCP connections | Refactor the default client implemntation to use global HTTP Connection
Pools instead of one per JDBC connection. | diff --git a/core/src/main/java/org/apache/calcite/avatica/remote/AvaticaCommonsHttpClientImpl.java b/core/src/main/java/org/apache/calcite/avatica/remote/AvaticaCommonsHttpClientImpl.java
index b30b573461..d44682e8bd 100644
--- a/core/src/main/java/org/apache/calcite/avatica/remote/AvaticaCommonsHttpClientImpl.java
++... | 6 | 5 | 1 | [{"id": "G0", "claim": "The new HttpClientPoolConfigurable javadoc has an extra \"MUST\" and should read \"On clients with this interface, setHttpClientPool() MUST be called before using them\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Trust... | null |
apache__calcite__3274 | apache/calcite | 3,274 | defect | 3f2ae2f4dd2d6b1fab7c3a91e67a6a6d28523298 | bf59142246cdfa9d7a33fad41a42bc29bf6fd89b | [CALCITE-5688] Support TRUNCATE TABLE DDL statement in server module | Close #3188 | diff --git a/babel/src/main/codegen/config.fmpp b/babel/src/main/codegen/config.fmpp
index cc96b248b31e..3ac6e7b6ca9a 100644
--- a/babel/src/main/codegen/config.fmpp
+++ b/babel/src/main/codegen/config.fmpp
@@ -29,6 +29,7 @@ data: {
imports: [
"org.apache.calcite.sql.SqlCreate",
"org.apache.calcite.s... | 1 | 1 | 1 | [{"id": "G0", "claim": "The TRUNCATE TABLE operator should use a dedicated SqlKind such as TRUNCATE_TABLE instead of OTHER_DDL, whose javadoc says it is for short-term usage.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__calcite__4761 | apache/calcite | 4,761 | defect | 84e35bafd42784138a2c63cf0c70e1f9744d34d7 | 04538b2bf29716e7cccfbdd771089a8e91d43d0b | [CALCITE-7393] Support RelDataTypeDigest | Use RelDataTypeDigest to reduce composite type's digest memory and digest relative operation's latency.
test case: HepPlannerTest.testLargeTypeDigest
This is the first part of latency/memory optimization of large plan. | diff --git a/core/src/main/java/org/apache/calcite/jdbc/JavaRecordType.java b/core/src/main/java/org/apache/calcite/jdbc/JavaRecordType.java
index 72242d3934cf..51df9f99b51a 100644
--- a/core/src/main/java/org/apache/calcite/jdbc/JavaRecordType.java
+++ b/core/src/main/java/org/apache/calcite/jdbc/JavaRecordType.java
@... | 5 | 5 | 3 | [{"id": "G0", "claim": "RelDataTypeDigest could be split into two interfaces, so that other classes can implement a digest-string interface without needing getType().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Old public equals/hashCode implementatio... | null |
apache__calcite__4788 | apache/calcite | 4,788 | defect | 3b5fcf50d94ac25c6378d18fad1bd7abbd0a8f31 | fc8b95d69bf67a027c0a3f1a7b452a4991134775 | [CALCITE-7411] When a SCALAR_QUERY in PROJECT contains correlated variables execution fails using TopDownGeneralDecorrelator | See [CALCITE-7411](https://issues.apache.org/jira/browse/CALCITE-7411) | diff --git a/core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java b/core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java
index 8fc83104c1d1..0d1c29aca587 100644
--- a/core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java
+++ b/core/src/main/java/org/apache/calcite/sql2rel/... | 1 | 1 | 1 | [{"id": "G0", "claim": "Using bb.root() as the push input for the rebuilt project in createAggImpl would lose the Filter (relBuilder.filter(variableSet, havingExpr)) applied just above, dropping the HAVING condition when correlation variables are used in the SELECT list.", "category": "correctness", "verdict": "support... | null |
apache__calcite__4794 | apache/calcite | 4,794 | defect | dd34021fbc30381e8f20fb51666cef9e6c69d3e6 | 9e9a8f4d8095e6151e67728bd0d0a261b3481048 | [CALCITE-7415] CalciteCatalogReader.lookupOperatorOverloads keeps original function identifier casing instead of resolved schema-path casing | see https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-7415 | diff --git a/core/src/main/java/org/apache/calcite/prepare/CalciteCatalogReader.java b/core/src/main/java/org/apache/calcite/prepare/CalciteCatalogReader.java
index 38f6f8e77865..451511f61bdd 100644
--- a/core/src/main/java/org/apache/calcite/prepare/CalciteCatalogReader.java
+++ b/core/src/main/java/org/apache/calcite... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new helper's name suggests it is function-specific, so it should be renamed to the generic \"createResolvedIdentifier\" since it works for all identifiers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper sho... | null |
apache__calcite__4795 | apache/calcite | 4,795 | defect | 8a286c50769b309252c0ad9917002b390ee0b225 | f2fc72258e8b31b71df91cc1c7a46c349e0485a5 | [CALCITE-7416] Add firedRulesCache for HepPlanner | Fire rule cache prevents fire same Rule on same RelNode list to reduce HepPlanner's latency.
If this cache enabled, every match order can benefit from less fire rules.
Test result:
```java
@Test void testRuleApplyCount() {
// disable fireRuleCache
long applyTimes = checkRuleApplyCount(HepMatchOrder.AR... | diff --git a/core/src/main/java/org/apache/calcite/plan/hep/HepPlanner.java b/core/src/main/java/org/apache/calcite/plan/hep/HepPlanner.java
index e9cb6da02adc..31d1ca0f86ad 100644
--- a/core/src/main/java/org/apache/calcite/plan/hep/HepPlanner.java
+++ b/core/src/main/java/org/apache/calcite/plan/hep/HepPlanner.java
@... | 3 | 3 | 0 | [{"id": "G0", "claim": "The javadoc for the fireRuleCache field should describe more clearly what the integers in its List<Integer> key represent.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The javadoc for the fireRuleCacheIndex field should d... | null |
apache__calcite__4797 | apache/calcite | 4,797 | defect | dd34021fbc30381e8f20fb51666cef9e6c69d3e6 | f06ea619644c201c925aeda3df6934f6f96b8f9a | [CALCITE-7418] SqlOverlapsOperator does not reject some illegal comparisons (e.g., TIME vs DATE) | https://issues.apache.org/jira/browse/CALCITE-7418 | diff --git a/core/src/main/java/org/apache/calcite/sql/fun/SqlOverlapsOperator.java b/core/src/main/java/org/apache/calcite/sql/fun/SqlOverlapsOperator.java
index 355f5c2ad5ca..b42bc41c6935 100644
--- a/core/src/main/java/org/apache/calcite/sql/fun/SqlOverlapsOperator.java
+++ b/core/src/main/java/org/apache/calcite/sq... | 5 | 4 | 1 | [{"id": "G0", "claim": "The 'Supported form(s):' hints in the error message are unclear — e.g. (d1, d2) contains (d3, d4) reads as if d1 and d2 may each independently be DATE, TIME, or TIMESTAMP, which seems to be exactly what this PR prohibits — and a single placeholder name (e.g. DATETIME_TYPE) representing one of DA... | null |
apache__calcite__4814 | apache/calcite | 4,814 | defect | 80e717ab2e5f9f6fb23995ab995264f2ec940882 | f0fc19c6eb1e491b903f28a665c32772b3453849 | [CALCITE-5132] Scalar IN subquery returns UNKNOWN instead of FALSE when key is partially NULL | See [CALCITE-5132](https://issues.apache.org/jira/browse/CALCITE-5132) | diff --git a/core/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java b/core/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java
index 9fa5f612ead8..09ad37f801de 100644
--- a/core/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java
+++ b/core/src/main/java/org/apache/calcite... | 9 | 7 | 2 | [{"id": "G0", "claim": "The new comment lacks context - the actual ck < c comparison sits much lower - and should first explain how the expansion is handled for scalar values.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment's use of AND... | null |
apache__calcite__4816 | apache/calcite | 4,816 | defect | 47fea322864504cf780f457092db6e7fa4b6324b | 3d2cd4fef911b076c92df2c302be700487becc2b | [CALCITE-7425] Correct the logical inverse of SqlBetweenOperator | While reading the `SqlBetweenOperator` code, I found that the logic of the `SqlBetweenOperator#not` method is incorrect.
[CALCITE-7425](https://issues.apache.org/jira/browse/CALCITE-7425) | diff --git a/core/src/main/java/org/apache/calcite/sql/fun/SqlBetweenOperator.java b/core/src/main/java/org/apache/calcite/sql/fun/SqlBetweenOperator.java
index 6f6234c3ed5b..2ea28653eb14 100644
--- a/core/src/main/java/org/apache/calcite/sql/fun/SqlBetweenOperator.java
+++ b/core/src/main/java/org/apache/calcite/sql/f... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request should include a test that avoids the use of the StandardConvertletTable (e.g. an end-to-end SqlToRelConverter test whose convertlet table leaves BETWEEN unconverted), instead of only the parser-level shuttle test.", "category": "testing", "verdict": "supported", "priority": "P2... | null |
apache__calcite__4822 | apache/calcite | 4,822 | defect | d59c7f34936ef3cc0801812963686f4bd2c1f9e0 | e12d7ffc67860a9f0df7f9f33eeb5c1a0a3c3024 | [CALCITE-7433] Invalid unparse for cast to map type in Spark | jira: https://issues.apache.org/jira/browse/CALCITE-7433 | diff --git a/core/src/main/java/org/apache/calcite/sql/dialect/SparkSqlDialect.java b/core/src/main/java/org/apache/calcite/sql/dialect/SparkSqlDialect.java
index 42cd259e5154..6f6e3d3917b6 100644
--- a/core/src/main/java/org/apache/calcite/sql/dialect/SparkSqlDialect.java
+++ b/core/src/main/java/org/apache/calcite/sq... | 1 | 1 | 0 | [{"id": "G0", "claim": "The javadoc of getCastSpecSparkSqlMapType should be reworded to follow the style of the neighbouring example (\"Transformation ARRAY type from {@code VARCHAR ARRAY} to {@code Array<VARCHAR>}\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__calcite__4827 | apache/calcite | 4,827 | defect | 66c496a6a0187f38dcd87e2e20f4449505db8740 | 48bcd13b1ffb10e2330f3cf5f68736bf417cfaa8 | [CALCITE-7431] RelTraitSet#getTrait seems to mishandle RelCompositeTrait | See [CALCITE-7431](https://issues.apache.org/jira/browse/CALCITE-7431) | diff --git a/core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableMergeUnion.java b/core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableMergeUnion.java
index d06fa31661a1..09d5a9e221e8 100644
--- a/core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableMergeUnion.java
+++ b/core... | 3 | 3 | 1 | [{"id": "G0", "claim": "getDistribution returns the first element of a composite while getTrait/getCollation (per the PR's stated direction) throw, i.e. the two strategies are inconsistent, and the reviewer asks the author to explain.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "intr... | null |
apache__calcite__4832 | apache/calcite | 4,832 | defect | 8a873607a9eb7b9f56b504beb071c131f3721a96 | 042889609b940e16f5a9d1a87618fffe02142992 | [CALCITE-7318] Execution fails when the JOIN ON condition contains references to columns from both the left and right sides | <!--
Thanks for sending a pull request! Here are some critical tips for you:
1. READ THE GUIDE FIRST: https://calcite.apache.org/develop/#contributing
*For significant contributions, please discuss on the dev mailing list or Jira BEFORE coding.*
2. JIRA IS USUALLY MANDATORY: Ensure you have created an issue ... | diff --git a/core/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java b/core/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java
index a1b59e952f4f..b98c9eed51f9 100644
--- a/core/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java
+++ b/core/src/main/java/org/apache/calcite... | 2 | 1 | 0 | [{"id": "G0", "claim": "Maybe the step-by-step explanation comments in the both-sides branch of SubQueryRemoveRule should be interleaved with the code that performs the steps instead of being gathered in one block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":... | null |
apache__calcite__4838 | apache/calcite | 4,838 | defect | 288d490f122270121022387e84f0e549d51bda19 | 5b375004aaad0e78686418322e139b4f83ea0986 | [CALCITE-7432] NumberFormatException when convert `NaN` literal to sql | `SqlImplementor.toSql` throws `NumberFormatException` when a `RexLiteral` contains a NaN or Infinity value, because `BigDecimal` cannot represent IEEE 754 special values. Fix by generating `CAST('NaN' AS <type>)` for non-finite doubles instead of calling `SqlLiteral.createApproxNumeric`. | diff --git a/core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java b/core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java
index dec24ca1f24a..410cc5ea33fe 100644
--- a/core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java
+++ b/core/src/main/java/org/apache/calcite/rel/r... | 1 | 1 | 0 | [{"id": "G0", "claim": "The related test cases should each be linked to the Jira issue, or better, consolidated into a single test method with comments above each case.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__calcite__4840 | apache/calcite | 4,840 | defect | af6367d61e844164e4b5813c8d99deacc0831f22 | e6ebfcc5910b3eeca0976c765a4cb275572dc14d | [CALCITE-7442] Getting Wrong index of Correlated variable inside Subquery after FilterJoinRule | # Jira Link
[CALCITE-7442](https://issues.apache.org/jira/browse/CALCITE-7442)
# Changes
don't push filter with subquery if it has correlattion variable which will be called via [RelOptUtil.java](https://github.com/apache/calcite/blob/main/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java#classifyFilte... | diff --git a/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java b/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java
index 274e91f14de1..d059d7598eeb 100644
--- a/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java
+++ b/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java
@@ -2957,7 +2957,... | 16 | 13 | 11 | [{"id": "G0", "claim": "In JoinConditionPushRule (filter == null) the code never computes the variables sets for pushed-down filters, so correlation variables coming from sub-queries inside join conditions would be lost when creating the left/right Filters; consider computing leftVariablesSet/rightVariablesSet from lef... | null |
apache__calcite__4843 | apache/calcite | 4,843 | defect | af6367d61e844164e4b5813c8d99deacc0831f22 | a3072b6348e3c73192b094ce41e674c78118a16c | [CALCITE-6646] Support timestamp data type in Arrow adapter | https://issues.apache.org/jira/browse/CALCITE-6646 | diff --git a/arrow/src/main/java/org/apache/calcite/adapter/arrow/AbstractArrowEnumerator.java b/arrow/src/main/java/org/apache/calcite/adapter/arrow/AbstractArrowEnumerator.java
index 6351dca36ffc..f7f25a8d452b 100644
--- a/arrow/src/main/java/org/apache/calcite/adapter/arrow/AbstractArrowEnumerator.java
+++ b/arrow/s... | 3 | 3 | 1 | [{"id": "G0", "claim": "The hard-coded epoch and day constants in ArrowDataTest's timestamp field helpers are opaque and should be computed with the helper functions Calcite and Avatica provide.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
apache__calcite__4846 | apache/calcite | 4,846 | defect | 7f99701eba269159cac17ae841627d5e1e6ecdf2 | 715dd8f74d9d8b64f38023a0c87c9bce9327c46d | [CALCITE-7450] ValuesReduceRule incorrectly drops tuples when filter condition is irreducible | ## Summary
- When a filter condition on `VALUES` cannot be reduced to `RexLiteral` by `RexExecutorImpl`,it returns the expression unchanged.
- `ValuesReduceRule.apply()` then calls `isAlwaysTrue()` on the unreduced `RexCall`, which returns `false`, causing the rule to incorrectly drop the tuple.
- The fix checks w... | diff --git a/core/src/main/java/org/apache/calcite/rel/rules/ValuesReduceRule.java b/core/src/main/java/org/apache/calcite/rel/rules/ValuesReduceRule.java
index 3b8d03e57c7f..3995db396b01 100644
--- a/core/src/main/java/org/apache/calcite/rel/rules/ValuesReduceRule.java
+++ b/core/src/main/java/org/apache/calcite/rel/r... | 4 | 3 | 0 | [{"id": "G0", "claim": "The added condition may mishandle NULL literals, since a null literal is not an instance of RexLiteral (a question about whether the RexUtil.isNullLiteral case is really covered).", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
apache__calcite__4848 | apache/calcite | 4,848 | defect | ea7fb170532de95d02486922b2601e09b855631c | f1049a2746465f9022edfe6ce87d019d34fa5866 | [CALCITE-6636] Support CNF condition of Arrow ArrowAdapter | https://issues.apache.org/jira/browse/CALCITE-6636 | diff --git a/arrow/src/main/java/org/apache/calcite/adapter/arrow/ArrowFilter.java b/arrow/src/main/java/org/apache/calcite/adapter/arrow/ArrowFilter.java
index 9774318ea925..4e50f8048e92 100644
--- a/arrow/src/main/java/org/apache/calcite/adapter/arrow/ArrowFilter.java
+++ b/arrow/src/main/java/org/apache/calcite/adap... | 4 | 4 | 3 | [{"id": "G0", "claim": "The CALCITE_6293_FIXED flag (and its sibling CALCITE_6294_FIXED) in Bug.java could be completely removed instead of being flipped to true.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rewritten testArrowProjectField... | null |
apache__calcite__4853 | apache/calcite | 4,853 | defect | ea7fb170532de95d02486922b2601e09b855631c | fd854fa70d32dbabc261ba375160df3b9c32bb01 | [CALCITE-6300] Function MAP_VALUES/MAP_KEYS gives exception when mapVauleType and mapKeyType not equals map Biggest mapKeytype or mapValueType | https://issues.apache.org/jira/browse/CALCITE-6300 | diff --git a/core/src/main/java/org/apache/calcite/sql/type/OperandTypes.java b/core/src/main/java/org/apache/calcite/sql/type/OperandTypes.java
index b67899d761a0..c3e04792dbaa 100644
--- a/core/src/main/java/org/apache/calcite/sql/type/OperandTypes.java
+++ b/core/src/main/java/org/apache/calcite/sql/type/OperandType... | 1 | 1 | 1 | [{"id": "G0", "claim": "The newly created cast node will not have a type in the validator's type map; it has to be inserted there as well.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
apache__calcite__4855 | apache/calcite | 4,855 | defect | f768501a91a6de08b73a87842b8644b6781d132b | c5aecfdb4db42ed4fa8f90ee919936b4bc1af409 | [CALCITE-7187] Java UDF byte arrays cannot be mapped to VARBINARY | ## Jira Link
[CALCITE-7187](https://issues.apache.org/jira/browse/CALCITE-7187)
## Changes Proposed
This PR fixes Java UDF `byte[]` handling so Calcite maps SQL `VARBINARY`
values consistently during enumerable code generation.
Reproduction:
```sql
select "adhoc".bytearray(cast('test' as varchar)) = x'... | diff --git a/core/src/main/java/org/apache/calcite/adapter/enumerable/EnumUtils.java b/core/src/main/java/org/apache/calcite/adapter/enumerable/EnumUtils.java
index 8787e682cc3e..018ba8bb7551 100644
--- a/core/src/main/java/org/apache/calcite/adapter/enumerable/EnumUtils.java
+++ b/core/src/main/java/org/apache/calcite... | 3 | 1 | 0 | [{"id": "G0", "claim": "Smalls.ByteArrayLengthFunction.eval does not handle null input and will throw a NullPointerException if a SQL VARBINARY argument is NULL; the signature should be changed to return a boxed Integer and return null when bytes is null.", "category": "correctness", "verdict": "opposed", "priority": "... | null |
apache__calcite__4868 | apache/calcite | 4,868 | defect | 1aacc43efd089cd9411e071986a821b459807234 | f81c7e94c09224005d6a9bd6ad013858f2e2f3b0 | [CALCITE-6298] Support UNION in Arrow adapter | https://issues.apache.org/jira/browse/CALCITE-6298 | diff --git a/arrow/src/main/java/org/apache/calcite/adapter/arrow/ArrowEnumerable.java b/arrow/src/main/java/org/apache/calcite/adapter/arrow/ArrowEnumerable.java
index 142f18c2f6a0..516822567eb8 100644
--- a/arrow/src/main/java/org/apache/calcite/adapter/arrow/ArrowEnumerable.java
+++ b/arrow/src/main/java/org/apache/... | 2 | 2 | 1 | [{"id": "G0", "claim": "The FileInputStream and ArrowFileReader opened in ArrowTable.query should be managed with try-with-resources so they are always closed, even on error paths, as required by Java conventions.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
apache__calcite__4870 | apache/calcite | 4,870 | defect | d59c7f34936ef3cc0801812963686f4bd2c1f9e0 | 4a37b28d1d394f66c4584dcf9c15e446c92426d2 | [CALCITE-4645] In Elasticsearch adapter, a range predicate should be translated to a range query | jira:https://issues.apache.org/jira/browse/CALCITE-4645
| diff --git a/core/src/main/java/org/apache/calcite/util/Bug.java b/core/src/main/java/org/apache/calcite/util/Bug.java
index 7eb756d5d24a..e58ea2cdcc52 100644
--- a/core/src/main/java/org/apache/calcite/util/Bug.java
+++ b/core/src/main/java/org/apache/calcite/util/Bug.java
@@ -169,7 +169,7 @@ public abstract class Bug... | 7 | 4 | 1 | [{"id": "G0", "claim": "Since isSearchWithComplementedPoints already identifies 'not in' and isSearchWithPoints identifies 'in', the range case should be left to a final else instead of an explicit isSearchWithRange branch.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":... | null |
apache__calcite__4894 | apache/calcite | 4,894 | defect | 8adab488e730c0e17a304f216afb25bdde45a04f | edbf55b305ded3eec24677346951ab4482f958ef | [CALCITE-7480] Unparse of `MATCH_RECOGNIZE` with `PARTITION BY` or `ORDER BY` produces invalid SQL | ## Jira Link
[CALCITE-7480](https://issues.apache.org/jira/browse/CALCITE-7480)
## Changes Proposed
The problem the PR is going to fix is invalid output SQL after unparsing of `MATCH_RECOGNIZE` with `ORDER BY` or `PARTITION BY`
example
```sql
SELECT *
FROM (SELECT empno, deptno from sales.emp)
MATCH_RECOGN... | diff --git a/core/src/main/java/org/apache/calcite/sql/validate/MatchRecognizeScope.java b/core/src/main/java/org/apache/calcite/sql/validate/MatchRecognizeScope.java
index 89df7fbb9517..df5d8de14db2 100644
--- a/core/src/main/java/org/apache/calcite/sql/validate/MatchRecognizeScope.java
+++ b/core/src/main/java/org/ap... | 1 | 1 | 0 | [{"id": "G0", "claim": "If some external databases accept these MATCH_RECOGNIZE PARTITION BY / ORDER BY constructs, it would be nice for the new test to say which ones.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__calcite__4896 | apache/calcite | 4,896 | defect | a27257eb06c51bcf29e479f7798cd6d0baee21b4 | 8907195918775fcb72bfe261622d049bed087259 | [CALCITE-6757] Elasticsearch adapter returns wrong result when aggregating sub-query with aggregation | jira: https://issues.apache.org/jira/browse/CALCITE-6757
| diff --git a/elasticsearch/src/main/java/org/apache/calcite/adapter/elasticsearch/ElasticsearchRules.java b/elasticsearch/src/main/java/org/apache/calcite/adapter/elasticsearch/ElasticsearchRules.java
index e4968c9e673f..598e0f77cd70 100644
--- a/elasticsearch/src/main/java/org/apache/calcite/adapter/elasticsearch/Elas... | 2 | 1 | 0 | [{"id": "G0", "claim": "The second sentence of the new containsAggregate Javadoc ('This prevents nested aggregations from being pushed down to Elasticsearch') should be placed where the function is called instead of on the helper.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
apache__calcite__4902 | apache/calcite | 4,902 | defect | a27257eb06c51bcf29e479f7798cd6d0baee21b4 | b1bdb566e1b578ae196fde997e241059e83ff544 | [CALCITE-7483] RelToSqlConverter generates SELECT * despite supportGe… | …nerateSelectStar
<!--
Thanks for sending a pull request! Here are some critical tips for you:
1. READ THE GUIDE FIRST: https://calcite.apache.org/develop/#contributing
*For significant contributions, please discuss on the dev mailing list or Jira BEFORE coding.*
2. JIRA IS USUALLY MANDATORY: Ensure you h... | diff --git a/core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java b/core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java
index 410cc5ea33fe..f83a8f9bd879 100644
--- a/core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java
+++ b/core/src/main/java/org/apache/calcite/rel/r... | 1 | 1 | 0 | [{"id": "G0", "claim": "maybeExpandStar mutates its SqlSelect argument, which may violate the conventions of SqlImplementor unless that pattern is already used and documented.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__camel-examples__158 | apache/camel-examples | 158 | defect | 6b265190e75a7f12028abfa2eb8370c8c6908964 | 6b38b0e9e567b9b2dbb8a8a862c7450e25ab2372 | refactor: move MyRouteBuilder to standalone class in java-lambda example | This PR refactors the java-lambda example by moving the MyRouteBuilder inner class from MyApplication.java into its own standalone file, MyRouteBuilder.java.
The Problem:
Previously, MyRouteBuilder was defined as a package-private inner class. While mvn clean install passed (compilation was successful), running t... | diff --git a/java-lambda/src/main/java/org/apache/camel/example/java8/MyApplication.java b/java-lambda/src/main/java/org/apache/camel/example/java8/MyApplication.java
index f10b89550..ebe906f20 100644
--- a/java-lambda/src/main/java/org/apache/camel/example/java8/MyApplication.java
+++ b/java-lambda/src/main/java/org/a... | 2 | 2 | 0 | [{"id": "G0", "claim": "The route should keep the same indentation style as the original code so it respects the EIPs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new MyRouteBuilder.java file should have the ASF license header added.", "c... | null |
apache__camel-k__3901 | apache/camel-k | 3,901 | defect | b134bda52c9dfa225cd072e0e5bf62cdf584eea0 | 8ea51a550dfc7e7ccba049a1cbb574ddb4780626 | fix(#3896): Fix dependency inspector supporting property placeholders | Do not raise errors during dependency inspection when using property placeholders in toURI. Fixes http-sink Kamelet
Fixes #3896 | diff --git a/pkg/util/camel/camel_runtime_catalog.go b/pkg/util/camel/camel_runtime_catalog.go
index 3305bd10b7..e3113031ae 100644
--- a/pkg/util/camel/camel_runtime_catalog.go
+++ b/pkg/util/camel/camel_runtime_catalog.go
@@ -179,7 +179,7 @@ func (c *RuntimeCatalog) VisitSchemes(visitor func(string, v1.CamelScheme) bo... | 2 | 2 | 1 | [{"id": "G0", "claim": "The blanket early return for any URI not containing ':' should be replaced by smarter placeholder-aware logic (e.g. checking the scheme after DecodeComponent or in DecodeComponent itself), because URIs like '{{local-es}}:{{clusterName}}' contain ':' yet still use property placeholders and are no... | null |
apache__camel-k__4009 | apache/camel-k | 4,009 | defect | 69a0df882267f04f30b00f87f1d14026ae7019a7 | 6ae68af308a18f1234a973ff9d3f69fa615e6cb2 | chore(test): don't install kamelet catalog | as a default. They are required only in some test.
<!-- Description -->
<!--
Enter your extended release note in the below block. If the PR requires
additional action from users switching to the new release, include the string
"action required". If no release note is required, write "NONE".
You can (... | diff --git a/e2e/support/test_support.go b/e2e/support/test_support.go
index 0030cacc3a..f819566d0f 100644
--- a/e2e/support/test_support.go
+++ b/e2e/support/test_support.go
@@ -250,6 +250,13 @@ func KamelInstallWithContext(ctx context.Context, operatorID string, namespace s
installArgs = []string{"install", "-n", ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Since the PR stops installing the Kamelet catalog by default, the tests that use Kamelets need the catalog explicitly enabled for them, otherwise those tests fail (TestKameletBindingScale, TestUninstallSkipKamelets, TestKamelCLIBind/unsuccessful_binding, TestOperatorIDFiltering/Operators_can_run... | null |
apache__camel-k__4153 | apache/camel-k | 4,153 | defect | ba220806a473871e628e8c43824aded8e5d12535 | f4c40ceea9a856af8a0594665b066d3ed76e4bb3 | fix(builder): native from source should rebuild | <!-- Description -->
With this PR we will force a rebuild for Quarkus native for those languages that requires the source at build time.
Closes #4126
<!--
Enter your extended release note in the below block. If the PR requires
additional action from users switching to the new release, include the string
... | diff --git a/docs/modules/ROOT/pages/contributing/local-development.adoc b/docs/modules/ROOT/pages/contributing/local-development.adoc
index 82d61e8a74..ff6197b552 100644
--- a/docs/modules/ROOT/pages/contributing/local-development.adoc
+++ b/docs/modules/ROOT/pages/contributing/local-development.adoc
@@ -4,85 +4,40 @@... | 3 | 3 | 3 | [{"id": "G0", "claim": "If the integration has more sources than the kit and includes all of the kit's sources, hasMatchingSources returns true, and essobedo asks whether that is expected.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new subte... | null |
apache__camel-k__4235 | apache/camel-k | 4,235 | defect | 7747ea67f8ed620d31123d4511beda40b9e98f49 | 1ec23901d79167f9060a3f979d548d41f80088f1 | fix(#3836) Expose runtime details in kamel version -a -v | fix for #3836
command output
```
kamel version --all -v
You're using Camel K 2.0.0-SNAPSHOT client with a 1.12.0 cluster operator, it's recommended to use the same version to improve compatibility.
Camel K Client 2.0.0-SNAPSHOT
Git Commit: 7747ea67f8ed620d31123d4511beda40b9e98f49
Camel K Operator 1.12.0
... | diff --git a/pkg/cmd/version.go b/pkg/cmd/version.go
index 0dfabbc08a..506985e282 100644
--- a/pkg/cmd/version.go
+++ b/pkg/cmd/version.go
@@ -20,8 +20,12 @@ package cmd
import (
"context"
"fmt"
+ "regexp"
"strings"
+ v1 "github.com/apache/camel-k/v2/pkg/apis/camel/v1"
+ "github.com/apache/camel-k/v2/pkg/util/... | 3 | 3 | 2 | [{"id": "G0", "claim": "The existing tests should include one exercising the new -a option.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The CamelCatalog loading error should be exposed (returned) instead of only being logged as a debug trace.", "cate... | null |
apache__camel-k__4659 | apache/camel-k | 4,659 | defect | ebfb461a07845735f57290818e47f964848e19bd | 5e34579f2c9308b074fd399f31253653d7f4d2bf | chore(e2e): Test on kamelets configurations using configmaps | ## Motivation
Strengthen the tests on configuration via configmaps to define what type of configurations actually works.
## Description
* Test of Integrations using kamelets and configmaps
* Test of Pipes using kamelets and configmaps
**Release Note**
```release-note
chore(e2e): Test on kamelets config... | diff --git a/e2e/common/config/kamelet_config_test.go b/e2e/common/config/kamelet_config_test.go
index fe98cb8273..a5200f3e88 100644
--- a/e2e/common/config/kamelet_config_test.go
+++ b/e2e/common/config/kamelet_config_test.go
@@ -32,7 +32,8 @@ import (
)
// Tests on integration with kamelets containing configurati... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the redundant \"-p camel.kamelet.my-own-timer-source.message='Default message'\" property from the mounted-configmap test, since it duplicates the configmap value, unless the intent is to explicitly test the precedence of the trait configuration over the plain property.", "category": "tes... | null |
apache__camel-k__4740 | apache/camel-k | 4,740 | defect | 40c207ef49e9f507c8570fb1d3e75799053ff3e3 | d32cca6483b30028f9e0076a7350bcd70e7455c0 | feat(core): Remove Kubernetes/Openshift security warning message | Closes #4424
## Description
Add the valid openshift security contexts, as done with the builder pod, to :
* operator pod
* integration pod
A default restricted security context without any fixed user has been added on default kubernetes configuration.
<!--
Enter your extended release note in the bel... | diff --git a/pkg/install/operator.go b/pkg/install/operator.go
index 5c5a2e134b..a52cf4d250 100644
--- a/pkg/install/operator.go
+++ b/pkg/install/operator.go
@@ -44,6 +44,7 @@ import (
"github.com/apache/camel-k/v2/pkg/util/knative"
"github.com/apache/camel-k/v2/pkg/util/kubernetes"
"github.com/apache/camel-k/v2... | 1 | 1 | 1 | [{"id": "G0", "claim": "The security-context handling added by this PR should probably also be applied when the operator is installed via Kustomize, OLM and Helm.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__camel-k__5089 | apache/camel-k | 5,089 | defect | 29162470e8fafc9df62df819dcb8cc72f4903570 | eb862c5ad52c8163e6beba4314c64f1a1afac335 | Create CamelCatalog on IntegrationPlatform controller | - Create CamelCatalog for new runtimeVersion that has been set on IntegrationPlatform
- Improve CamelCatalog availability checks on IntegrationPlatform controller
- Adds new condition on IntegrationPlatform representing the availability of the catalog
- Sets IntegrationPlatform to error phase when catalog is not ava... | diff --git a/pkg/apis/camel/v1/integrationplatform_types.go b/pkg/apis/camel/v1/integrationplatform_types.go
index 62470188c9..209852baf0 100644
--- a/pkg/apis/camel/v1/integrationplatform_types.go
+++ b/pkg/apis/camel/v1/integrationplatform_types.go
@@ -205,8 +205,15 @@ const (
// IntegrationPlatformConditionTypeReg... | 1 | 1 | 1 | [{"id": "G0", "claim": "The monitor action should not create the Camel catalog directly (it can last a few seconds while the platform is still Ready, so another operator process may start a build with a failing catalog); instead the change should be detected and a new status (e.g. WaitingForCatalog) set immediately, wi... | null |
apache__camel-k__5154 | apache/camel-k | 5,154 | defect | cf22771b5da2ea32d2d5f509a4edd1a3dd64351a | 14d7127ef6dc73152694aa89fc0fb2c0e7b5b908 | [chore] improve metrics for integration | Improve metrics for integrations, record a counter with integration_name and state
<!-- Description -->
This PR expands the metrics endpoint, now exposing a counter for the combination _integration_name_ and _integration_phase_. The output looks like:
```
curl -s localhost:8080/metrics | grep -v "# " | grep i... | diff --git a/pkg/controller/integration/integration_controller.go b/pkg/controller/integration/integration_controller.go
index 5129f6ade5..5ac5526eb0 100644
--- a/pkg/controller/integration/integration_controller.go
+++ b/pkg/controller/integration/integration_controller.go
@@ -20,6 +20,8 @@ package integration
import... | 3 | 3 | 3 | [{"id": "G0", "claim": "The new phase metric should reuse the existing pkg/controller/integration/metrics.go instead of creating a new pkg/metrics package.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The phase metric update should be recorded in integ... | null |
apache__camel-k__5157 | apache/camel-k | 5,157 | defect | 3f31f363c05cc67b799393aadb5e24048d60668a | 855544b5d728dd16a34b73f75ce43c739e79542e | feat(build): Add Build waiting condition | * Add on Build.Status a "Scheduled" condition containing the reason for it's scheduling status
Ref #4542
<!-- Description -->
<!--
Enter your extended release note in the below block. If the PR requires
additional action from users switching to the new release, include the string
"action required". If... | diff --git a/e2e/builder/build_test.go b/e2e/builder/build_test.go
index f449f0ef23..0111954c6f 100644
--- a/e2e/builder/build_test.go
+++ b/e2e/builder/build_test.go
@@ -32,6 +32,7 @@ import (
. "github.com/apache/camel-k/v2/e2e/support"
v1 "github.com/apache/camel-k/v2/pkg/apis/camel/v1"
+ corev1 "k8s.io/api/co... | 3 | 3 | 2 | [{"id": "G0", "claim": "The added ShouldNot(BeNil()) check on BuildConditions is not required for a build that will eventually get scheduled; the test should instead check that a build which is supposed to wait has this condition turned on and later moves to scheduled.", "category": "testing", "verdict": "supported", "... | null |
apache__camel-k__5189 | apache/camel-k | 5,189 | defect | 7dfac64564a85c5f375924e67901a13fbfd1ce30 | 118a32a30f79732416303e0e54aecc765c12f271 | chore: use constants for config types | <!-- Description -->
Cleaning PR to include some constant instead of hardcoded values.
<!--
Enter your extended release note in the below block. If the PR requires
additional action from users switching to the new release, include the string
"action required". If no release note is required, write "NONE".
... | diff --git a/pkg/trait/camel.go b/pkg/trait/camel.go
index 2375640778..43d197bcb1 100644
--- a/pkg/trait/camel.go
+++ b/pkg/trait/camel.go
@@ -33,6 +33,15 @@ import (
"github.com/apache/camel-k/v2/pkg/util/property"
)
+const (
+ camelSourceLanguageAnnotation = "camel.apache.org/source.language"
+ camelSourceLoa... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new camel source annotation constants, which are spreading across multiple traits, should be placed in trait_types.go and could also drop the 'camel' prefix.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__camel-k__5230 | apache/camel-k | 5,230 | defect | 727e295abab3f20355b8bfac2f4c090326d71587 | 32182ea39422825dfe17833ed48329e1d5ecba07 | fix(traits): use Comparable matches | Reverting #4512 which introduced a function diverging the match from the original design
This PR aims to fix a diverging design I introduced some times ago. With this one we move back to the original design making correct usage of `Comparable` interface in trait which is used by the operator to distinguish when to r... | diff --git a/docs/modules/ROOT/pages/architecture/traits.adoc b/docs/modules/ROOT/pages/architecture/traits.adoc
index fc56b11928..dee146ccb3 100644
--- a/docs/modules/ROOT/pages/architecture/traits.adoc
+++ b/docs/modules/ROOT/pages/architecture/traits.adoc
@@ -49,6 +49,15 @@ type Trait interface {
IsAllowedInProfil... | 1 | 1 | 1 | [{"id": "G0", "claim": "builderTrait.Matches sorts the Properties slices of both the receiver and the other trait in place, a side effect that may result in undefined behavior if the public method is used concurrently or outside the current scope.", "category": "correctness", "verdict": "supported", "priority": "P1", "... | null |
apache__camel-k__5570 | apache/camel-k | 5,570 | defect | 625d1a78bae50672d4ba8c62704869685e8a5748 | 15f9cf40d295ee58202d44d67c9368360541796d | feat(e2e): Rewrite tekton test to use run command | Refactor the tekton test like task test to use it have it work the closely most it is supposed to work:
* the Camel K operator is supposed to be already installed
* the tekton task consist of a `kamel run` command allowing to deploy a an integration from a file (here present via a volume from a configmap)
<!--
E... | diff --git a/e2e/advanced/files/camel-k-tekton.yaml b/e2e/advanced/files/camel-k-tekton.yaml
new file mode 100644
index 0000000000..6cee0a139a
--- /dev/null
+++ b/e2e/advanced/files/camel-k-tekton.yaml
@@ -0,0 +1,40 @@
+---
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: camel-k-tekton
+---
+kind: Role
+apiVe... | 4 | 3 | 0 | [{"id": "G0", "claim": "The tekton-like test should not copy the Camel catalog or the existing integration kits into the namespace as the rewritten test does.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new pod-creation helper should be something ... | null |
apache__camel-k__5650 | apache/camel-k | 5,650 | defect | af4b62747ac095832f157a0633a55574120a755a | 59ca3960e05f33bd9004df701327f15d7446394b | (#5635) Add TLS configuration in the ingress trait |
Add
- tlsHosts
- tlsSecretName
to configure TLS in the ingress trait
**Release Note**
```release-note
Ingress Trait: Add tlsHosts and tlsSecretName to configure the TLS ingress spec
```
| diff --git a/pkg/apis/camel/v1/trait/ingress.go b/pkg/apis/camel/v1/trait/ingress.go
index 128b36f028..a211ae4b62 100644
--- a/pkg/apis/camel/v1/trait/ingress.go
+++ b/pkg/apis/camel/v1/trait/ingress.go
@@ -41,4 +41,8 @@ type IngressTrait struct {
PathType *networkingv1.PathType `property:"path-type" json:"pathType,o... | 4 | 4 | 3 | [{"id": "G0", "claim": "ingress.Spec.TLS should be omitted completely when either TLSHosts or TLSSecretName is not set, i.e. the guard should require both (len(t.TLSHosts) > 0 && t.TLSSecretName != \"\") instead of the current either-or condition.", "category": "correctness", "verdict": "supported", "priority": "P1", "... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.