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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GreptimeTeam__greptimedb-operator__113 | GreptimeTeam/greptimedb-operator | 113 | defect | ccf22b7df34667c26974251a0352f862f5e31785 | 20bb6faf628cb2ac018c6be84bb36e4203889d54 | fix: set '--server-addr' of metasrv by using its pod ip | Note: after this modification, the cluster can support multiple metasrv instances. | diff --git a/controllers/greptimedbcluster/deployers/meta.go b/controllers/greptimedbcluster/deployers/meta.go
index e4586dd5..bf1e9365 100644
--- a/controllers/greptimedbcluster/deployers/meta.go
+++ b/controllers/greptimedbcluster/deployers/meta.go
@@ -309,6 +309,7 @@ func (b *metaBuilder) generatePodTemplateSpec() *... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 'POD_IP' env var name should be defined as a constant instead of an inline string literal.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GreptimeTeam__greptimedb-operator__120 | GreptimeTeam/greptimedb-operator | 120 | defect | c583e7dad3dbc89ff448d6ea0147bb85ef88f8dd | e3ad4e2dfcb8132e4185f9c6b79ac9efdc18bc6d | fix: The number of component replicas cannot be set to 0 | The default number of replicas frontend is 1, meta is 1, and datanode is 3. When the (frontend|meta|datanode) replicas set to 0, it will be equal to the default number of replicas. The replicas type is int32 and the k8s native [*int32 type](https://github.com/kubernetes/kubernetes/blob/0c645922edcc06adff43c70c02fb56751... | diff --git a/apis/v1alpha1/defaulting.go b/apis/v1alpha1/defaulting.go
index 42f783c1..32c9e7fc 100644
--- a/apis/v1alpha1/defaulting.go
+++ b/apis/v1alpha1/defaulting.go
@@ -18,6 +18,7 @@ import (
"strings"
"github.com/imdario/mergo"
+ "google.golang.org/protobuf/proto"
corev1 "k8s.io/api/core/v1"
"k8s.io/ap... | 2 | 2 | 1 | [{"id": "G0", "claim": "The defaulting code should throw an error when a component's replicas is set to a value less than 0, instead of silently replacing it with the default replicas.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The kubebuilder v... | null |
GreptimeTeam__greptimedb-operator__147 | GreptimeTeam/greptimedb-operator | 147 | defect | 718e5a6a16cb63c8dc6312d6aeede2d878e53d66 | fad3cdd004392dd3433af5cc4163d7dc8a0d0a28 | refactor: refine greptimedb-operator e2e | ## What's changed
1. Add `tests/e2e/setup/*.sh`
- Deploy a completed Kubernetes by using kind;
- Build and deploy greptimedb-operator instead of starting by calling manager function;
2. Simplify greptimedbcluster_test.go:
- Use the Kubernetes cluster directly and load test cases from `tests/e... | diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 909f4a30..f5b236b8 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -25,10 +25,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
- uses: actions/checkout@v3
+ uses: actions/ch... | 2 | 1 | 0 | [{"id": "G0", "claim": "Bump docker/setup-qemu-action and docker/setup-buildx-action to v3, docker/login-action to v3, and docker/build-push-action to v5 in .github/workflows/release.yaml.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Add a w... | null |
GreptimeTeam__greptimedb-operator__170 | GreptimeTeam/greptimedb-operator | 170 | defect | 990b7df2935a146ad9676ec623f8c23485898cee | d03b57832cba156a802e7300160de4317199c366 | refactor!(api): refine the default setting of `*port` field of cluster | ## What's changed
1. Refactor `SetDefaults()` of GreptimeDBCluster to fix probe port setting issue
**Fix** The bug with the probe's port is always `4000` even the `httpSericePort` is not `4000`;
2. Use livenessProbe instead of readinessProbe
The `/health` in GreptimeDB is more like a liveness probe.
... | diff --git a/apis/v1alpha1/defaulting.go b/apis/v1alpha1/defaulting.go
index eae8e288..850dc539 100644
--- a/apis/v1alpha1/defaulting.go
+++ b/apis/v1alpha1/defaulting.go
@@ -27,12 +27,14 @@ import (
var (
defaultVersion = "Unknown"
+ defautlHealthEndpoint = "/health"
+
// The default settings for GreptimeDBClus... | 7 | 1 | 0 | [{"id": "G0", "claim": "The new test fixture apis/v1alpha1/testdata/greptimedbcluster/test02/expect.yaml is missing a newline at the end of the file and should end with one (yamllint: new-line-at-end-of-file).", "category": "style", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
GreptimeTeam__greptimedb-operator__172 | GreptimeTeam/greptimedb-operator | 172 | defect | 5c3668fc461314566e5d340864f404e090d1d557 | 7355c2dd67efd060c648745e04e79f1c4ab55bd1 | refactor: set default values back to the original resource | ## What's changed
1. Set the default values back to the original resources;
2. Misc
- Set default datanode replicas to `1`(the minimum cluster);
- Update flow test case;
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Adjus... | diff --git a/apis/v1alpha1/defaulting.go b/apis/v1alpha1/defaulting.go
index 39f8556f..aee3ac03 100644
--- a/apis/v1alpha1/defaulting.go
+++ b/apis/v1alpha1/defaulting.go
@@ -39,7 +39,7 @@ var (
// The default replicas for frontend/meta/datanode.
defaultFrontendReplicas int32 = 1
defaultMetaReplicas int32 = 1... | 3 | 2 | 1 | [{"id": "G0", "claim": "The Reconcile functions in the controllers rely on naked returns in a long function, which the nakedret static-analysis check fails, and should be refactored to use explicit returns and reduced complexity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
GreptimeTeam__greptimedb-operator__183 | GreptimeTeam/greptimedb-operator | 183 | defect | 53816a201dde9dbac8151468880a7f62913014d2 | d19a29ce1088ded08525acbf1b06d134c6ddbb34 | feat: add `,inline` tag for toml mapping | ## What's changed
1. Add `,inline` tag for toml mapping;
2. Add `k8sutil.GetSecretsData()` to unify the code logic of configuring object storage credentials;
3. Use `k8s.io/utils/pointer` package to get the pointer of data;
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by... | diff --git a/cmd/initializer/internal/config_generator.go b/cmd/initializer/internal/config_generator.go
index e5b3bc32..387bba46 100644
--- a/cmd/initializer/internal/config_generator.go
+++ b/cmd/initializer/internal/config_generator.go
@@ -21,11 +21,11 @@ import (
"strings"
"k8s.io/klog/v2"
+ "k8s.io/utils/poi... | 3 | 3 | 1 | [{"id": "G0", "claim": "The ConfigureByStandalone method contains repetitive code blocks for configuring S3, OSS, and GCS storage providers; it should be refactored to reduce duplication, e.g. by abstracting the configuration logic into a generic function.", "category": "maintainability", "verdict": "supported", "prior... | null |
GreptimeTeam__greptimedb-operator__185 | GreptimeTeam/greptimedb-operator | 185 | defect | 087ed3351675de7c8f4859987de1e52dcd2991df | 8d1ce37af52829778016bd2cee642f57d403267e | feat(apis): add `LoggingSpec` |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Introduced a structured logging configuration with options for logging levels and formats.
- Added logging configurations to multiple components, including `frontend`, `meta`, and `datanode`.
-... | diff --git a/apis/v1alpha1/common.go b/apis/v1alpha1/common.go
index ff0f4b94..8d7b8635 100644
--- a/apis/v1alpha1/common.go
+++ b/apis/v1alpha1/common.go
@@ -414,6 +414,81 @@ func (in *KafkaWAL) GetBrokerEndpoints() []string {
return nil
}
+// LoggingLevel is the level of the logging.
+type LoggingLevel string
+
... | 4 | 1 | 0 | [{"id": "G0", "claim": "Enable log persistence with data (persistentWithData: true) in the test expectation data (the datanode logging in test01/expect.yaml, and the logging section in test02/expect.yaml), since the datanode persists data and persisted logs may aid troubleshooting of data-persistence issues.", "categor... | null |
GreptimeTeam__greptimedb-operator__186 | GreptimeTeam/greptimedb-operator | 186 | defect | 087ed3351675de7c8f4859987de1e52dcd2991df | 1470b4e364b3ff9308805a70e951d72297394d41 | refactor: add `Validate()` and `Check()` |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Introduced validation methods for `GreptimeDBCluster` and `GreptimeDBStandalone`, ensuring configurations are correct and resources are available.
- Added checks for TLS secrets and object stor... | diff --git a/apis/v1alpha1/validate.go b/apis/v1alpha1/validate.go
new file mode 100644
index 00000000..8ffe0425
--- /dev/null
+++ b/apis/v1alpha1/validate.go
@@ -0,0 +1,318 @@
+// Copyright 2024 Greptime Team
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except i... | 12 | 3 | 1 | [{"id": "G0", "claim": "The standalone TOML config error message should say \"invalid standalone toml config\" instead of \"invalid toml config\" to identify the component.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a validate_test.go fi... | null |
GreptimeTeam__greptimedb-operator__191 | GreptimeTeam/greptimedb-operator | 191 | defect | 7f632356352149a098b874739c108c999a0a8a0b | 4a2abcfceada5a39a1e9e6a1b13c7b4fe0c3a141 | refactor: sperate ports config from frontend instance and service |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Added configuration options for `RPCPort`, `HTTPPort`, `MySQLPort`, and `PostgreSQLPort` to enhance service communication capabilities.
- Updated liveness probe configuration to utilize the new ... | diff --git a/apis/v1alpha1/defaulting.go b/apis/v1alpha1/defaulting.go
index 781f1c73..ef5f1f69 100644
--- a/apis/v1alpha1/defaulting.go
+++ b/apis/v1alpha1/defaulting.go
@@ -87,6 +87,10 @@ func (in *GreptimeDBCluster) defaultFrontend() *FrontendSpec {
Template: &PodTemplateSpec{},
Replicas: pointer.Int32(Defau... | 9 | 2 | 1 | [{"id": "G0", "claim": "References to the old port 5000 still exist in apis/v1alpha1/testdata/defaulting/greptimedbcluster/test00/expect.yaml and test00/input.yaml and should be updated to 4000 for consistency.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
GreptimeTeam__greptimedb-operator__192 | GreptimeTeam/greptimedb-operator | 192 | defect | 4b14b1c4f950fc7748039a5515d3a483972f2b90 | 7b78662c2850bd2a6fb19df1e6c824770e0f391e | fix: compoents don't updated by modifying the fields of `cluster.base` | ## What's changed
In the original logic, we modify `template` and `logging` of `ComponentSpec` in `SetDefaults()`. It's hard to distinguish whether the user sets the field of `ComponentSpec` of individual components or uses the `base` config.
In this PR, I move the `MergeTemplate()` and `MergeLogging()` from `Set... | diff --git a/apis/v1alpha1/defaulting.go b/apis/v1alpha1/defaulting.go
index 380a160f..a0fbf656 100644
--- a/apis/v1alpha1/defaulting.go
+++ b/apis/v1alpha1/defaulting.go
@@ -40,19 +40,75 @@ func (in *GreptimeDBCluster) SetDefaults() error {
return err
}
- // Merge the Base field into the frontend/meta/datanode/... | 19 | 2 | 0 | [{"id": "G0", "claim": "After MergeTemplate/MergeLogging modify cluster.Spec in Reconcile, the updated cluster object should be persisted with r.Update (as is done after SetDefaults) to avoid inconsistent state.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "clai... | null |
GreptimeTeam__greptimedb-operator__198 | GreptimeTeam/greptimedb-operator | 198 | defect | 46697f26cac8a67a1a2e0f613e7509731181f3a3 | 0cd24b8b054bbfd4c41982fc51cd2f2d975e006c | feat: collect slow queries in monitoring mode |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
## Release Notes
- **New Features**
- Introduced a `SlowQuery` configuration for enhanced logging, allowing users to enable slow query logging with customizable thresholds and sampling ratios across various componen... | diff --git a/apis/v1alpha1/common.go b/apis/v1alpha1/common.go
index 19217662..eda55572 100644
--- a/apis/v1alpha1/common.go
+++ b/apis/v1alpha1/common.go
@@ -465,6 +465,25 @@ type LoggingSpec struct {
// +optional
// +kubebuilder:validation:Enum:={"json", "text"}
Format LogFormat `json:"format,omitempty"`
+
+ //... | 20 | 2 | 1 | [{"id": "G0", "claim": "Consider adding more context fields (query start/end timestamps, client information, query plan) to the slow-queries vector transform for better debugging and analysis.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use a more typ... | null |
GreptimeTeam__greptimedb-operator__225 | GreptimeTeam/greptimedb-operator | 225 | defect | 6c905bf472011e7d29fd7e34ee967201a18603d8 | e2b549875a5c47d4bb45f105b9aada754823829e | fix(monitoring): create duplicated pipelines |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
## Release Notes
- **New Features**
- Introduced a new method for retrieving existing pipelines, enhancing monitoring status management.
- Added functionality to manage a new Docker image for the Vector service in ... | diff --git a/controllers/greptimedbcluster/deployers/monitoring.go b/controllers/greptimedbcluster/deployers/monitoring.go
index 11fa624f..1b4b2c6e 100644
--- a/controllers/greptimedbcluster/deployers/monitoring.go
+++ b/controllers/greptimedbcluster/deployers/monitoring.go
@@ -17,6 +17,7 @@ package deployers
import (... | 4 | 1 | 1 | [{"id": "G0", "claim": "The `rows` returned by the table-existence query and by the pipeline query may not be closed on all paths (e.g. early return after rows.Next()), leaking the connection resource; both should be closed with defer right after the successful query.", "category": "correctness", "verdict": "supported"... | null |
GreptimeTeam__greptimedb-operator__230 | GreptimeTeam/greptimedb-operator | 230 | defect | 84856f2aabb03a7bdbca894e0566a4f444d53e32 | 94c3975775b0b210c8a59f02143d07da52bbf340 | chore: meta region failover is disabled by default |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Simplified configuration for the `GreptimeDBCluster` by removing the conditional logic for the `EnableRegionFailover` field, enhancing clarity in setup.
- Default logging format set to JSON when... | diff --git a/apis/v1alpha1/defaulting.go b/apis/v1alpha1/defaulting.go
index 6f3cb024..717bd3a1 100644
--- a/apis/v1alpha1/defaulting.go
+++ b/apis/v1alpha1/defaulting.go
@@ -178,20 +178,15 @@ func (in *GreptimeDBCluster) defaultFrontend() *FrontendSpec {
}
func (in *GreptimeDBCluster) defaultMeta() *MetaSpec {
- e... | 2 | 1 | 1 | [{"id": "G0", "claim": "Disabling region failover by default is a breaking change that requires follow-through beyond defaulting.go: updating the CRD definitions, revising the API documentation, updating the testdata files, aligning the validation logic, and providing a migration guide for existing clusters.", "categor... | null |
GreptimeTeam__greptimedb-operator__241 | GreptimeTeam/greptimedb-operator | 241 | defect | 3db8697b9bc0dc315429bc164465f8fb13d4359f | f87cc06c96486d2e4e58946d85927d89a16a1e86 | refactor: modify the rpc addr startup args of all components | related issue: https://github.com/GreptimeTeam/greptimedb-operator/issues/240
wait for greptimedb release new version.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **Refactor**
- Standardized RPC address configuration across the system for improved clarity.
... | diff --git a/cmd/initializer/internal/config_generator.go b/cmd/initializer/internal/config_generator.go
index b0653620..d7359a01 100644
--- a/cmd/initializer/internal/config_generator.go
+++ b/cmd/initializer/internal/config_generator.go
@@ -114,14 +114,14 @@ func (c *ConfigGenerator) generateDatanodeConfig(initConfig... | 2 | 2 | 0 | [{"id": "G0", "claim": "DatanodeConfig's TOML mapping keys use the `rpc_bind_addr`/`rpc_server_addr` format while FlownodeConfig uses `grpc.bind_addr`/`grpc.server_addr`; the reviewer asks to standardize the TOML mapping format because the inconsistency might cause confusion.", "category": "maintainability", "verdict":... | null |
GreptimeTeam__greptimedb-operator__248 | GreptimeTeam/greptimedb-operator | 248 | defect | 578a0e5b9c1f683b5aff447c2b89b87ba0213ef3 | 65c0e91725198c47e4481b7705e01c0d7abb1adc | feat: add frontend ingress | ## Feature
Add frontend ingress resource, CRD structure:
```
type GreptimeDBClusterSpec struct {
// Frontend is the specification of frontend node.
// +optional
Frontend *FrontendSpec `json:"frontend,omitempty"`
// Frontends is a group of frontend nodes.
Frontends []*FrontendSpec `json:"frontends,... | diff --git a/apis/v1alpha1/common.go b/apis/v1alpha1/common.go
index 8ba3e4a9..4e5e41f1 100644
--- a/apis/v1alpha1/common.go
+++ b/apis/v1alpha1/common.go
@@ -16,6 +16,7 @@ package v1alpha1
import (
corev1 "k8s.io/api/core/v1"
+ networkingv1 "k8s.io/api/networking/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1... | 9 | 2 | 1 | [{"id": "G0", "claim": "The RBAC annotation grants ingress permissions under the core API group, but ingresses belong to networking.k8s.io in recent Kubernetes versions, so the annotation should use networking.k8s.io.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
GreptimeTeam__greptimedb-operator__254 | GreptimeTeam/greptimedb-operator | 254 | defect | 12d1329059f58e6016079d002b98813379f20056 | 33b81c54a63294404af52cc746d4a6fc196c010e | chore: add common pvc label to the datanode | Add common pvc label: `app.greptime.io/component: ${NAME}-${COMPONENT_KIND}`.
Rename cluster example `standalone-wal` to `dedicated-wal`.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **Refactor**
- Improved the labeling mechanism for persistent volume c... | diff --git a/controllers/common/common.go b/controllers/common/common.go
index ce32fd2a..6d78d084 100644
--- a/controllers/common/common.go
+++ b/controllers/common/common.go
@@ -198,7 +198,7 @@ func GeneratePodTemplateSpec(kind v1alpha1.ComponentKind, template *v1alpha1.Pod
return spec
}
-func FileStorageToPVC(fs... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new examples/cluster/multiple-filestorage/cluster.yaml example is duplicated by the existing standalone-wal/ example.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GreptimeTeam__greptimedb-operator__268 | GreptimeTeam/greptimedb-operator | 268 | defect | c250900f5f93a79dffa41e21922814beb2dfbb5b | 4eaa97c0e3d36881ed97ad8fab4cbfada1c50b64 | refactor: add `RoleSpec` interface and clean the code | ## What's changed
1. Add `RoleSpec` interface and use in `dbConfig.Config` interface;
2. Clean the code in `deployers/common`;
3. Use naming like `*RoleKind*` instead of `*ComponentKind*` keep consistent with greptimedb convention; | diff --git a/apis/v1alpha1/common.go b/apis/v1alpha1/common.go
index c21c9d16..ec0be517 100644
--- a/apis/v1alpha1/common.go
+++ b/apis/v1alpha1/common.go
@@ -52,26 +52,36 @@ const (
PhaseTerminating Phase = "Terminating"
)
-// ComponentKind is the kind of the component in the cluster.
-type ComponentKind string
+... | 4 | 2 | 2 | [{"id": "G0", "claim": "The flag name or its description should be updated from 'component-kind' to 'role-kind' (or similar) for consistency with the ComponentKind-to-RoleKind refactoring.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error... | null |
GreptimeTeam__greptimedb-operator__295 | GreptimeTeam/greptimedb-operator | 295 | defect | ba011f0d21ac58d6ac91141c6270c6e8912cebb0 | 797c21ee7625dba864e7e2dcb2abfd116edf4d60 | feat(crds): [Self monitoring trace part 1] add otlp tracing structure | ## What's changed
related to: https://github.com/GreptimeTeam/greptimedb-operator/issues/285
Self monitoring trace part 1.
| diff --git a/apis/v1alpha1/common.go b/apis/v1alpha1/common.go
index 23bf6a16..e25a0eef 100644
--- a/apis/v1alpha1/common.go
+++ b/apis/v1alpha1/common.go
@@ -525,6 +525,18 @@ type LoggingSpec struct {
// +optional
// +kubebuilder:validation:Enum:={"json", "text"}
Format LogFormat `json:"format,omitempty"`
+
+ //... | 1 | 1 | 1 | [{"id": "G0", "claim": "The tracing configuration (enableOTLPTracing, otlpEndpoint, tracingSampleRatio) should be described by a dedicated struct instead of being fields of Logging{}.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
GreptimeTeam__greptimedb-operator__324 | GreptimeTeam/greptimedb-operator | 324 | defect | 5cc9007b9207ecfa66b71482be9b33a68e23308a | dc94a10ceb5e3877d60b67e6d5be724429ed1d7b | feat(crds): add frontend internal rpc port | Such as:
```
apiVersion: greptime.io/v1alpha1
kind: GreptimeDBCluster
metadata:
name: greptimedb
namespace: default
spec:
base:
main:
image: greptime/greptimedb:latest
frontend:
replicas: 1
internalPort: 4010 <----------------- new field -------------------->
meta:
backe... | diff --git a/apis/v1alpha1/common.go b/apis/v1alpha1/common.go
index efdca5ce..465c3c23 100644
--- a/apis/v1alpha1/common.go
+++ b/apis/v1alpha1/common.go
@@ -1006,6 +1006,23 @@ func (in *SlowQuery) IsEnabled() bool {
return in != nil && in.Enabled
}
+// InternalPRC defines the frontend internal gRPC configuration... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new Internal struct's enabled field is unnecessary — use a simple internalPort field instead and keep it nil when unset.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
GreptimeTeam__greptimedb-operator__340 | GreptimeTeam/greptimedb-operator | 340 | defect | 72aa96164a59a77d3b8913351760925543683bb2 | da4b7fcdfca46d88910dc688aebde0b4ae27b7c6 | refactor!(crds): remove deprecated etcd backend fields | using EtcdStorage: https://github.com/GreptimeTeam/greptimedb-operator/blob/main/apis/v1alpha1/greptimedbcluster_types.go#L113
example: https://github.com/GreptimeTeam/greptimedb-operator/blob/main/examples/cluster/basic/cluster.yaml | diff --git a/.github/workflows/dev-build.yaml b/.github/workflows/dev-build.yaml
index 4025a7df..6787a601 100644
--- a/.github/workflows/dev-build.yaml
+++ b/.github/workflows/dev-build.yaml
@@ -46,7 +46,7 @@ env:
jobs:
docker:
name: build-images
- runs-on: ubuntu-22.04
+ runs-on: ubuntu-24.04
steps... | 1 | 1 | 1 | [{"id": "G0", "claim": "The e2e frontend ingress test should not use `show databases` as the SQL statement because it is disabled on cloud; it was suggested to change it to `SELECT 1`.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
GreptimeTeam__greptimedb-operator__63 | GreptimeTeam/greptimedb-operator | 63 | defect | a4ca1c638f1d38d812295ae3244b1742f9c46001 | 12157bc0e2fbb0e901885d57e408102991c7548b | feat: add greptimedb initializer | ## Why do we need the initializer
The `greptimedb-initializer` can process some cluster initialization before starting the components by using [init container](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/). For now, the initializer is very easy: it just allocates node id(which is just the pod ... | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 501ed155..2812798d 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -38,16 +38,28 @@ jobs:
VERSION=${{ github.ref_name }}
echo "VERSION=${VERSION:1}" >> $GITHUB_ENV
- - name... | 3 | 1 | 0 | [{"id": "G0", "claim": "The README's build-and-push section should also document the docker-push (and build) targets for the new greptimedb-initializer image.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `--input-config-file` flag's help tex... | null |
GreptimeTeam__greptimedb__5093 | GreptimeTeam/greptimedb | 5,093 | defect | ff4c153d4bba17a17e9f422eeb392f5a44f6d0d0 | 2667beca93d5f697146de15b3dc74066a2d74ef1 | feat!: enable read cache and write cache when using remote object stores | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
Close #4813
## What's changed and what's your intention?
* Enable read and write cache by default for remote object storages.
* Set the default... | diff --git a/config/config.md b/config/config.md
index 15025b8711253..d58aea6743b5d 100644
--- a/config/config.md
+++ b/config/config.md
@@ -93,7 +93,7 @@
| `storage` | -- | -- | The data storage options. |
| `storage.data_home` | String | `/tmp/greptimedb/` | The working home directory. |
| `storage.type` | String ... | 5 | 4 | 1 | [{"id": "G0", "claim": "The `is_object_storage` method should be implemented as `!matches!(self, Self::File(_))` (excluding only the local `File` variant) instead of enumerating S3/Oss/Azblob/Gcs, so newly added remote object stores are not left out; WenyXu added \"+1\" in support.", "category": "design", "verdict": "s... | null |
GreptimeTeam__greptimedb__5107 | GreptimeTeam/greptimedb | 5,107 | defect | c732016fa0f6ebee536e00fd945a728ae79ce283 | 16dbafc24addd78f6db155df4012460a852f63e1 | feat: adjust WAL purge default configurations | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
Close #5106
## What's changed and what's your intention?
Adjust the default value of WAL purge configuration.
## Checklist
- [ ] I have writt... | diff --git a/config/config.md b/config/config.md
index 15025b8711253..0dca5052a6287 100644
--- a/config/config.md
+++ b/config/config.md
@@ -13,7 +13,6 @@
| Key | Type | Default | Descriptions |
| --- | -----| ------- | ----------- |
| `mode` | String | `standalone` | The running mode of the datanode. It can be `sta... | 3 | 3 | 2 | [{"id": "G0", "claim": "The regenerated config docs list `enable_telemetry` as a runtime option (`runtime.enable_telemetry`) in the datanode and metasrv sections even though it is not a runtime option, which looks like a bug in toml2docs.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope":... | null |
GreptimeTeam__greptimedb__5385 | GreptimeTeam/greptimedb | 5,385 | defect | 7e61d1ae2795263815bf8db275f94a3a1131ae9a | 961d7dfc047e15d0f33778d8fd9d3dcbf7ae24f4 | feat: support not-equal matcher for PromQL metric names | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
Close #5375
## What's changed and what's your intention?
* Supports regex matches (or not) for `__name__` in Prometheus APIs, currently limited to... | diff --git a/Cargo.lock b/Cargo.lock
index 33cb55bbf6f76..741ef2b4a089f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4077,6 +4077,7 @@ dependencies = [
"partition",
"pipeline",
"prometheus",
+ "promql-parser",
"prost 0.12.6",
"query",
"raft-engine",
@@ -10264,6 +10265,7 @@ dependencies = [
"snafu 0.8.5",
... | 15 | 3 | 1 | [{"id": "G0", "claim": "Replace the `assert!(!matchers.is_empty())` in `metric_name_matchers_to_plan` with proper error handling, because using `assert!` for runtime validation can cause unexpected panics in production when `matchers` is empty.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", ... | null |
GreptimeTeam__greptimedb__6210 | GreptimeTeam/greptimedb | 6,210 | defect | b01fce95a0e4817c4746a9dcd76058c0ce055f83 | b1c17a8498622e8b8e0341578c341e0536b06f8c | feat: supports @@session.time_zone for mysql | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
Close #6207
## What's changed and what's your intention?
<!--
__!!! DO NOT LEAVE THIS BLOCK EMPTY !!!__
Please explain IN DETAIL what the ... | diff --git a/src/operator/src/statement.rs b/src/operator/src/statement.rs
index d786396e87e4e..696a74fd08a32 100644
--- a/src/operator/src/statement.rs
+++ b/src/operator/src/statement.rs
@@ -378,10 +378,13 @@ impl StatementExecutor {
fn set_variables(&self, set_var: SetVariables, query_ctx: QueryContextRef) ->... | 2 | 1 | 0 | [{"id": "G0", "claim": "A comment should be added explaining why unsupported '@@' commands are issued a warning rather than an error for MySQL, to clarify the design choice.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test block should ... | null |
GreptimeTeam__greptimedb__6223 | GreptimeTeam/greptimedb | 6,223 | defect | 69975f1f71669b244080f7132b9fd3b12eefda53 | 6d5d7bc10180ea488421dda2bd9e68db70a9c9a7 | chore: support table suffix in hint | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
close #6204
## What's changed and what's your intention?
Note: this PR is based on the code of https://github.com/GreptimeTeam/greptimedb/pull/6205,... | diff --git a/Cargo.lock b/Cargo.lock
index c14b4fd7f9f8..ee439dc43b02 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -17,6 +17,16 @@ version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"
+[[package]]
+name = "aea... | 2 | 1 | 1 | [{"id": "G0", "claim": "There is no performance test after modifying the exec_mut function signature.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use a strongly typed ContextOptions struct that derives PartialEq and Eq so it is suitable as a group ke... | null |
GreptimeTeam__greptimedb__6390 | GreptimeTeam/greptimedb | 6,390 | defect | 7aa9af5ba695e231d855f2f10916124caf4057e1 | ab9cea9258707ff78b1d0334df0d4a61823bc078 | feat(pipeline): support Loki API | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
close #4800
## What's changed and what's your intention?
This PR adds support for the Loki API to run pipelines.
The process becomes a little compli... | diff --git a/src/pipeline/src/lib.rs b/src/pipeline/src/lib.rs
index 30ceb6866ea0..709a93dfabe0 100644
--- a/src/pipeline/src/lib.rs
+++ b/src/pipeline/src/lib.rs
@@ -24,7 +24,7 @@ pub use etl::processor::Processor;
pub use etl::transform::transformer::greptime::{GreptimePipelineParams, SchemaInfo};
pub use etl::tran... | 14 | 7 | 2 | [{"id": "G0", "claim": "Structured metadata keys and labels are inserted into the pipeline map without a prefix and may conflict with content generated by the pipeline from the line, so they should be prefixed (e.g. with `loki_`) like the timestamp and line columns.", "category": "correctness", "verdict": "supported", ... | null |
GreptimeTeam__greptimedb__6531 | GreptimeTeam/greptimedb | 6,531 | defect | 9d05c7c5fa021f9c60c160da633ff8a6c149f777 | ac1a1643353d86a3528274985c92ea71c2c71052 | feat: supports null reponse format for http API | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
Close #6528
## What's changed and what's your intention?
<!--
__!!! DO NOT LEAVE THIS BLOCK EMPTY !!!__
Please explain IN DETAIL what the... | diff --git a/.gitignore b/.gitignore
index dbfab66be533a..aa93774e52f02 100644
--- a/.gitignore
+++ b/.gitignore
@@ -60,4 +60,7 @@ tests-fuzz/corpus/
greptimedb_data
# github
-!/.github
\ No newline at end of file
+!/.github
+
+# Claude code
+CLAUDE.md
\ No newline at end of file
diff --git a/src/servers/src/http.r... | 12 | 1 | 0 | [{"id": "G0", "claim": "The call to `res.text().await` in the null-format integration test returns a `Result` that must be unwrapped or handled before calling `contains`.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on `ClickhouseF... | null |
GreptimeTeam__greptimedb__6764 | GreptimeTeam/greptimedb | 6,764 | defect | 78dca8a0d71d51f86a86aa31ccd7695d2f1d765d | 93d8c1420da382de8cebf60bcd3edb21b2fa6bcf | feat: add optional schema for Postgres metadata tables |
I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
close #6719
## What's changed and what's your intention?
- Add `schema` option to specify a custom schema for metadata tables
- Update `PgStore` an... | diff --git a/config/metasrv.example.toml b/config/metasrv.example.toml
index 261c47f5e8a80..acac83f24230a 100644
--- a/config/metasrv.example.toml
+++ b/config/metasrv.example.toml
@@ -23,6 +23,14 @@ backend = "etcd_store"
## **Only used when backend is `postgres_store`.**
meta_table_name = "greptime_metakv"
+## Op... | 9 | 9 | 2 | [{"id": "G0", "claim": "Extract the inline schema-qualified table-reference formatting into a function and add a unit test validating its behavior.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Set up PostgreSQL 15 in the test fixtures/CI and a... | null |
GreptimeTeam__greptimedb__7072 | GreptimeTeam/greptimedb | 7,072 | defect | 8fe17d43d5ace78897d8e4ff04dc8e165248fb04 | 4ff1580671825062ac5517e1c9039a3cd996f10c | feat: add updated_on to tablemeta with a default of created_on | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
- Closes #7070.
## What's changed and what's your intention?
<!--
__!!! DO NOT LEAVE THIS BLOCK EMPTY !!!__
Please explain IN DETAIL what ... | diff --git a/src/catalog/src/system_schema/information_schema/tables.rs b/src/catalog/src/system_schema/information_schema/tables.rs
index 01f6f0d0bd010..507dedc5475da 100644
--- a/src/catalog/src/system_schema/information_schema/tables.rs
+++ b/src/catalog/src/system_schema/information_schema/tables.rs
@@ -371,7 +371,... | 6 | 5 | 3 | [{"id": "G0", "claim": "The original metadata, which lacks `updated_on`, should be tested to ensure it deserializes correctly as null or defaults to `created_on`.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Move the `updated_on` update into `builder_... | null |
GreptimeTeam__greptimedb__7624 | GreptimeTeam/greptimedb | 7,624 | defect | 1088187b85ce8b8b3376fa9b31c6c0a8d3f57fb8 | f860c34700b26c0cd8a0e3a18e5947c911011092 | fix: wrong relation used in promql planner time cast | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
Close #7623
## What's changed and what's your intention?
### Issue
PromQL planner aliased the physical scan back to the logical table, but time ca... | diff --git a/src/query/src/promql/planner.rs b/src/query/src/promql/planner.rs
index bfcae8e80fd3..4f6fcdf91bf7 100644
--- a/src/query/src/promql/planner.rs
+++ b/src/query/src/promql/planner.rs
@@ -1590,7 +1590,7 @@ impl PromPlanner {
let logical_table = self.table_from_source(&provider)?;
- let mu... | 2 | 1 | 0 | [{"id": "G0", "claim": "The mutable `curr_relation` variable in the promql planner is confusing and should be renamed (e.g. to `logical_table_ref`) or restructured to avoid a mutable variable for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
GreptimeTeam__greptimedb__7669 | GreptimeTeam/greptimedb | 7,669 | defect | 64ac9b60e923f45a74a0aaf7ea5c7390cada6292 | 523a5b8fabd1a77d09a44f9d662f2ab9ff8ebd51 | feat: support changing table's append_mode to true | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
<!--
__!!! DO NOT LEAVE THIS BLOCK EMPTY !!!__
Please explain IN DETAIL what the changes are in ... | diff --git a/src/mito2/src/engine/alter_test.rs b/src/mito2/src/engine/alter_test.rs
index 2aa26ba204a07..e710e0868805c 100644
--- a/src/mito2/src/engine/alter_test.rs
+++ b/src/mito2/src/engine/alter_test.rs
@@ -39,6 +39,7 @@ use crate::engine::MitoEngine;
use crate::engine::listener::{AlterFlushListener, NotifyRegio... | 4 | 2 | 1 | [{"id": "G0", "claim": "The new validation should reject the ALTER (or clear merge_mode) when current_options.merge_mode is set, because otherwise a successful append_mode=true ALTER leaves options that fail validate() on reopen and can prevent the region from opening after restart.", "category": "correctness", "verdic... | null |
GreptimeTeam__greptimedb__7695 | GreptimeTeam/greptimedb | 7,695 | defect | 8026b238340a83e0e07ad0114dd2a20c971b8d03 | 8fc47e9b484e9109199bab8c579470787637cc90 | fix(mito2): introduce `PartitionExprChange` in staging flow and keep memtables on metadata-only updates | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
#6558
#7678
## What's changed and what's your intention?
This PR refines staging manifest action semantics for repartition flow and ensures staging ex... | diff --git a/src/mito2/src/engine/apply_staging_manifest_test.rs b/src/mito2/src/engine/apply_staging_manifest_test.rs
index 9e3ee82bf3c1..9f523812eb1e 100644
--- a/src/mito2/src/engine/apply_staging_manifest_test.rs
+++ b/src/mito2/src/engine/apply_staging_manifest_test.rs
@@ -14,6 +14,7 @@
use std::assert_matches:... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new apply-staging-manifest test functions and their format variants are long and share a significant amount of setup code, so the common setup logic should be extracted into a helper function to make each test more concise and readable.", "category": "maintainability", "verdict": "supported"... | null |
GreptimeTeam__greptimedb__7743 | GreptimeTeam/greptimedb | 7,743 | defect | 0402f24ed8c9f999718e9e35d47b0a7333d1d078 | 7f4eeb4e5b5dd41f75c5c196528c0eb22753dd70 | feat: add COPY support for GCS/Azblob with OSS/GCS/Azblob integration coverage | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
This PR completes object storage support parity for COPY workflows and improves CLI ergonomics:
- Add ... | diff --git a/src/cli/src/common/object_store.rs b/src/cli/src/common/object_store.rs
index e1d3a189c9ab..0b8372e509fe 100644
--- a/src/cli/src/common/object_store.rs
+++ b/src/cli/src/common/object_store.rs
@@ -85,7 +85,7 @@ impl FieldValidator for Option<SecretString> {
macro_rules! wrap_with_clap_prefix {
(
... | 5 | 2 | 2 | [{"id": "G0", "claim": "After hiding credential_path in the CLI, storage export no longer emits the CREDENTIAL_PATH connection option when gcs_credential is unset, so environments providing only --gcs-credential-path would generate COPY SQL without usable credentials and fail authentication at runtime.", "category": "c... | null |
GreptimeTeam__greptimedb__7775 | GreptimeTeam/greptimedb | 7,775 | defect | 2000611ea128d47fc1c84c8a97d3ce30b075cfd7 | 7e5438ca152a22938a41be1de0ea7f4f797a8beb | refactor: remote write related code | ## What Changed
### 1. Consolidated Prom remote-write code into prom_remote_write/
- Added new module structure:
- decode.rs
- row_builder.rs
- types.rs
- validation.rs
- Removed old split modules/paths (proto.rs, prom_row_builder) and updated exports in src/servers/src/lib.rs.
... | diff --git a/src/servers/benches/prom_decode.rs b/src/servers/benches/prom_decode.rs
index dc404918a1a9..92d3c67d5902 100644
--- a/src/servers/benches/prom_decode.rs
+++ b/src/servers/benches/prom_decode.rs
@@ -15,19 +15,18 @@
use std::time::Duration;
use api::prom_store::remote::WriteRequest;
-use bytes::Bytes;
u... | 8 | 3 | 1 | [{"id": "G0", "claim": "The `merge_bytes` function creates `&'static [u8]` slices from a non-static buffer, which is unsound and can lead to use-after-free bugs (the returned `TablesBuilder<'static>` holds self-referential slices into its own `raw_data`); the reviewer asks to avoid `'static`, e.g. by making the map key... | null |
GreptimeTeam__greptimedb__7776 | GreptimeTeam/greptimedb | 7,776 | defect | d1151b665bd4f3fb861165c890d0c94653e876a5 | f4066d23ead126f199a73948f2933522f610447d | fix(mito2): ensure enter staging waits for compaction | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
This PR ensures `EnterStaging` works correctly when a region is compacting, by deferring staging DDLs and... | diff --git a/src/mito2/src/compaction.rs b/src/mito2/src/compaction.rs
index 1258db1b0c970..b50df38fd244e 100644
--- a/src/mito2/src/compaction.rs
+++ b/src/mito2/src/compaction.rs
@@ -65,7 +65,7 @@ use crate::read::{BoxedBatchReader, BoxedRecordBatchStream};
use crate::region::options::{MergeMode, RegionOptions};
us... | 11 | 8 | 1 | [{"id": "G0", "claim": "Remove the now-unnecessary #[allow(dead_code)] attributes on the new pending-DDL helper methods in compaction.rs, since both functions are used outside tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo \"... | null |
GreptimeTeam__greptimedb__7782 | GreptimeTeam/greptimedb | 7,782 | defect | f544b024081b5651b90c3b937fbce49506f62c17 | 7a96bb1c905e625b9e54429672d02c2f627bca2a | feat: replace shadow-rs with self-maintained version info | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
Shadow-rs watches itself and always triggers rebuild (no reproducible build). This patch removes shadow... | diff --git a/Cargo.lock b/Cargo.lock
index 790ff461304d..da20ada202ed 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2830,7 +2830,6 @@ dependencies = [
"cargo-manifest",
"const_format",
"serde",
- "shadow-rs",
]
[[package]]
@@ -6706,12 +6705,6 @@ dependencies = [
"windows-sys 0.59.0",
]
-[[package]]
-name ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The unused `_workspace_root` parameter of `VersionState::collect` should be removed (and the call site updated) to avoid an unused-parameter warning and for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Errors f... | null |
GreptimeTeam__greptimedb__7807 | GreptimeTeam/greptimedb | 7,807 | defect | 37105c8354c0fa86f941f563af1f8db8399e9e14 | aeadad50c597b40585089070ea551a32efebf7a7 | refactor: customize standalone instance build | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
as title, used in customizing ee greptimedb
## PR Checklist
Please convert it to a draft if some of t... | diff --git a/src/cmd/src/standalone.rs b/src/cmd/src/standalone.rs
index 92638d3c4a71..22dc642fb03e 100644
--- a/src/cmd/src/standalone.rs
+++ b/src/cmd/src/standalone.rs
@@ -32,14 +32,15 @@ use common_meta::cache::LayeredCacheRegistryBuilder;
use common_meta::ddl::flow_meta::FlowMetadataAllocator;
use common_meta::d... | 6 | 1 | 0 | [{"id": "G0", "claim": "Exposing `mut_frontend()` on `Instance`, which hands out a mutable reference to the entire `Frontend`, breaks encapsulation and couples callers to `Frontend`'s internals; more specific methods or a constrained trait should be provided instead.", "category": "design", "verdict": "uncertain", "pri... | null |
GreptimeTeam__greptimedb__7840 | GreptimeTeam/greptimedb | 7,840 | defect | e0aadffb911cece5988bf981a126b2a744337490 | 72fd40c2aa9f4f962a6fd3fb7db1b9321b8ce91e | fix: prom cast to f64 | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
- User-reported PromQL compatibility issue where
`count(filtered_expr) / count(rate_expr) * 100`
returned `0` in GreptimeDB while Prometheus returned a f... | diff --git a/Cargo.lock b/Cargo.lock
index 1f65f1289ce9f..bbaa3e6d4229a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -12535,7 +12535,7 @@ dependencies = [
[[package]]
name = "sqlness"
version = "0.6.1"
-source = "git+https://github.com/GreptimeTeam/sqlness?rev=6bc85ce077a87756e68ef5a5cd5707071a9da380#6bc85ce077a87756... | 2 | 2 | 1 | [{"id": "G0", "claim": "The optimizer may not eliminate the Float64 casts added to every binary-arithmetic operand (datafusion only does cast elimination for literal/comparison), leaving redundant casts in the plan.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
GreptimeTeam__greptimedb__7848 | GreptimeTeam/greptimedb | 7,848 | defect | c6f1ef8aecfd78044fbadb88d1de70a7f1a94b39 | a4df75158f116627969c68601edd40d522fe06dd | feat: add incremental read context and scan boundaries | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
Add the foundational query context and scan request fields for
sequence-based incremental reads.
This... | diff --git a/src/common/meta/src/ddl/tests/create_flow.rs b/src/common/meta/src/ddl/tests/create_flow.rs
index 8803f98e0de0..5b22c81857ae 100644
--- a/src/common/meta/src/ddl/tests/create_flow.rs
+++ b/src/common/meta/src/ddl/tests/create_flow.rs
@@ -37,6 +37,8 @@ fn test_query_context() -> QueryContext {
time... | 5 | 5 | 0 | [{"id": "G0", "claim": "Field documentation removed from catalog/schema/timezone in FlowQueryContext and missing for the newly added fields should be restored and added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The From<PbQueryContext> impl ... | null |
GreptimeTeam__greptimedb__7871 | GreptimeTeam/greptimedb | 7,871 | defect | 8058ce7cf22215f6bcdc17b7bbd1d858618170d1 | 46afe013a68cf02646f598aba309d10aaccbef3d | feat: auto alter table during trace ingestion from int to float | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
#7860
## What's changed and what's your intention?
~~Note: merge https://github.com/GreptimeTeam/greptimedb/pull/7870 first~~
This is the second P... | diff --git a/src/frontend/src/instance/otlp.rs b/src/frontend/src/instance/otlp.rs
index 52df2747804ad..9768b7df8a909 100644
--- a/src/frontend/src/instance/otlp.rs
+++ b/src/frontend/src/instance/otlp.rs
@@ -12,19 +12,26 @@
// See the License for the specific language governing permissions and
// limitations under t... | 4 | 4 | 3 | [{"id": "G0", "claim": "Collecting values with filter_map and writing them back with zip shortens coerced_values so rows missing the column are silently skipped and later rows can receive the wrong coerced value, and short rows are dropped rather than padded with NULLs, which could lead to data loss or inconsistency.",... | null |
GreptimeTeam__greptimedb__7873 | GreptimeTeam/greptimedb | 7,873 | defect | c8c2e09eedd5a2f42acd599d76d4301e29abae53 | 92d1fb10d1145afdd09dcd0351bbcc8bdc69dbba | feat: use partition range cache in scan | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
Uses partition range cache in SeqScan and SeriesScan read paths.
Improves how the range cache buffers ... | diff --git a/src/mito2/src/cache.rs b/src/mito2/src/cache.rs
index 35db74eee616..d357e8198230 100644
--- a/src/mito2/src/cache.rs
+++ b/src/mito2/src/cache.rs
@@ -28,6 +28,7 @@ use std::ops::Range;
use std::sync::Arc;
use bytes::Bytes;
+use common_base::readable_size::ReadableSize;
use common_telemetry::warn;
use... | 5 | 5 | 1 | [{"id": "G0", "claim": "The `permit_bytes` value passed to `RangeResultMemoryLimiter::new()` is not stored, so `acquire()` relies on `permit_bytes()` returning a hardcoded constant, which could become inconsistent if `new()` is called with a different value; `permit_bytes` should be stored as a field and returned by `p... | null |
GreptimeTeam__greptimedb__7879 | GreptimeTeam/greptimedb | 7,879 | defect | c6f1ef8aecfd78044fbadb88d1de70a7f1a94b39 | 3e8df8c02e48c1ceeb7456fa5d1de63f917ff76c | feat(flow): inc query scan bind seq | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
Add mito-side scan boundary semantics for sequence-based incremental reads.
This PR is follow up on #7... | diff --git a/src/common/meta/src/ddl/tests/create_flow.rs b/src/common/meta/src/ddl/tests/create_flow.rs
index 8803f98e0de0e..5b22c81857ae7 100644
--- a/src/common/meta/src/ddl/tests/create_flow.rs
+++ b/src/common/meta/src/ddl/tests/create_flow.rs
@@ -37,6 +37,8 @@ fn test_query_context() -> QueryContext {
ti... | 8 | 6 | 3 | [{"id": "G0", "claim": "The new test test_snapshot_bound_query_keeps_open_snapshot_after_late_flush is a subset of test_snapshot_bound_query_keeps_correct_result_after_late_flush and should be removed to reduce code duplication.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, ... | null |
GreptimeTeam__greptimedb__7885 | GreptimeTeam/greptimedb | 7,885 | defect | 6f2ec120598f5ed5eca436d6497968ef7a49453c | f50f9d4a48299995b6aa48e79332718fd4df8ef9 | feat: cancel local compaction for enter staging | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
This PR adds cooperative cancellation for active local compaction so `EnterStaging` no longer has to wait... | diff --git a/.tmp/compaction-cancel-plan.md b/.tmp/compaction-cancel-plan.md
new file mode 100644
index 0000000000000..7ffa312976703
--- /dev/null
+++ b/.tmp/compaction-cancel-plan.md
@@ -0,0 +1,580 @@
+# Compaction Cancel 多步骤改造方案(支持 EnterStaging 抢占)
+
+## 1. 背景
+
+当前 `EnterStaging` 在 region 正在 compaction 时,会直接进入 pendi... | 1 | 1 | 1 | [{"id": "G0", "claim": "In on_compaction_cancelled, when there are no pending DDLs and a pending compaction is scheduled, the waiters of the cancelled compaction are not notified before the new compaction is handled, so the waiters hang; the waiters should be notified before handling the pending compaction.", "category... | null |
GreptimeTeam__greptimedb__7892 | GreptimeTeam/greptimedb | 7,892 | defect | a8fe6b5e44fc47ccbebd33ac08d8541efbc91490 | 6a0565307308d6481e81d29a73604fa93eaf346f | feat: partial success in trace ingestion | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
close #7875
## What's changed and what's your intention?
This PR changes OTLP trace ingestion to preserve valid spans when part of a request fails, ... | diff --git a/src/frontend/src/instance/otlp.rs b/src/frontend/src/instance/otlp.rs
index 9b21f9924f14e..2e356195159a0 100644
--- a/src/frontend/src/instance/otlp.rs
+++ b/src/frontend/src/instance/otlp.rs
@@ -19,7 +19,8 @@ use api::v1::{ColumnDataType, RowInsertRequests};
use async_trait::async_trait;
use auth::{Perm... | 11 | 10 | 2 | [{"id": "G0", "claim": "Transient chunk and span insert errors (e.g. Internal, StorageUnavailable, DeadlineExceeded) are swallowed as discarded chunks or rejected spans instead of being propagated so the client can retry the batch.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu... | null |
GreptimeTeam__greptimedb__7899 | GreptimeTeam/greptimedb | 7,899 | defect | 0bd0df0e88d6f6da78bd25d195ccf4640f2b6d1e | 0027ce7fffa2915ea6d112a07562f7d59ebcf1b6 | fix: return empty when promql gets non-exist label name | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
As the title suggests
## PR Checklist
Please convert it to a draft if some of the following condition... | diff --git a/src/frontend/src/instance/promql.rs b/src/frontend/src/instance/promql.rs
index 419be8d96ea2..8d95439fdc01 100644
--- a/src/frontend/src/instance/promql.rs
+++ b/src/frontend/src/instance/promql.rs
@@ -31,7 +31,7 @@ use snafu::{OptionExt, ResultExt};
use crate::error::{
CatalogSnafu, CollectRecordbat... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new label-existence check would wrongly fail with ColumnNotExists for special PromQL virtual labels like __name__ and __field__, which are not physical columns, breaking queries such as label_values(metric, \"__name__\"); the check should exclude them as the suggested code does.", "category"... | null |
GreptimeTeam__greptimedb__7908 | GreptimeTeam/greptimedb | 7,908 | defect | d9736407f2fa383df96466f23be9644d75fed94e | ba710bcdaf7722d945bb752d5a97f369d2c0f5d1 | refactor: introduce the ProjectInput structure | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
This PR refactors scan projection input from a plain Vec<usize> into a structured ProjectionInput, as a p... | diff --git a/src/catalog/src/system_schema.rs b/src/catalog/src/system_schema.rs
index 00b96e52920b9..09bcb24ee08d7 100644
--- a/src/catalog/src/system_schema.rs
+++ b/src/catalog/src/system_schema.rs
@@ -139,12 +139,15 @@ impl DataSource for SystemTableDataSource {
&self,
request: ScanRequest,
)... | 5 | 4 | 1 | [{"id": "G0", "claim": "The commented-out `use store_api::storage::{ProjectionInput, RegionId, ScanRequest, SequenceNumber};` import in metric-engine read.rs should be removed to keep the codebase clean.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla... | null |
GreptimeTeam__greptimedb__7933 | GreptimeTeam/greptimedb | 7,933 | defect | 2f8607138dc3f6d8d1ef47bfb1d73840838caf47 | a580e668e09d5597b1985c43ee3c8a0aa2243155 | fix: remap peer addresses during retries | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
This PR hardens retry behavior for DDL procedures and route-related procedure execution when peer address... | diff --git a/src/common/meta/src/ddl/create_table.rs b/src/common/meta/src/ddl/create_table.rs
index a5b642f1a2a7..b377a604068d 100644
--- a/src/common/meta/src/ddl/create_table.rs
+++ b/src/common/meta/src/ddl/create_table.rs
@@ -172,8 +172,24 @@ impl CreateTableProcedure {
/// - [Code::Cancelled](tonic::status... | 2 | 2 | 2 | [{"id": "G0", "claim": "handle_truncate_table_task no longer rejects logical-table truncation up front (the removed region_routes() check used to); instead the truncate request is sent to the datanode, which now performs the rejection.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int... | null |
GreptimeTeam__greptimedb__7954 | GreptimeTeam/greptimedb | 7,954 | defect | 76cad696c6ce26d9377491ca7ae46e078d6efbea | c45e744aaa035a72507dc59668b0c5d5c242063d | feat(mito2): add PK-range-aware TWCS overlap handling | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
- This PR adds primary-key range awareness to mito2 compaction so TWCS does not treat files as overlapping ... | diff --git a/src/mito2/src/compaction/compactor.rs b/src/mito2/src/compaction/compactor.rs
index ff4317331f12a..193504ced20fd 100644
--- a/src/mito2/src/compaction/compactor.rs
+++ b/src/mito2/src/compaction/compactor.rs
@@ -12,11 +12,13 @@
// See the License for the specific language governing permissions and
// lim... | 13 | 9 | 1 | [{"id": "G0", "claim": "The primary key range merging logic in Window is duplicated from merge_primary_key_ranges in run.rs; make that function pub(crate) and reuse it here for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "add_file... | null |
GreptimeTeam__greptimedb__8001 | GreptimeTeam/greptimedb | 8,001 | defect | a8540ad39d5754e7b2cd29fc9766da37838bb665 | 50d0fa677e6de011e5ae457be714b2013a1bd534 | fix: update manifest state before deleting delta files | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
https://github.com/GreptimeTeam/greptimedb/issues/7986
## What's changed and what's your intention?
Updating the manifest's checkpoint last version f... | diff --git a/src/mito2/src/manifest/checkpointer.rs b/src/mito2/src/manifest/checkpointer.rs
index 1da03dda2197..0eb36e626a01 100644
--- a/src/mito2/src/manifest/checkpointer.rs
+++ b/src/mito2/src/manifest/checkpointer.rs
@@ -69,14 +69,18 @@ impl Inner {
return;
}
- if let Err(e) = self.... | 5 | 1 | 0 | [{"id": "G0", "claim": "When the batch delete fails, the per-file fallback aborts on the first delete error, skipping every later path in the run even if those files are deletable; it should keep iterating and record individual failures instead of breaking immediately.", "category": "correctness", "verdict": "uncertain... | null |
GreptimeTeam__greptimedb__8021 | GreptimeTeam/greptimedb | 8,021 | defect | 1440924955774198cf83d2f221ec7ddd8d260c16 | 470f3512c15082350294259b95fab3832b6403a2 | fix!: align gRPC CLI option names with config naming | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
close: #6769
## What's changed and what's your intention?
<!--
__!!! DO NOT LEAVE THIS BLOCK EMPTY !!!__
Please explain IN DETAIL what the ... | diff --git a/.github/workflows/run-multi-lang-tests.yml b/.github/workflows/run-multi-lang-tests.yml
index 4fc405b5b256..52fdca2117ca 100644
--- a/.github/workflows/run-multi-lang-tests.yml
+++ b/.github/workflows/run-multi-lang-tests.yml
@@ -127,7 +127,7 @@ jobs:
run: |
./bins/greptime standalone s... | 1 | 1 | 0 | [{"id": "G0", "claim": "A warning should be added in metasrv.rs when the deprecated `opts.bind_addr` attribute is used, for consistency with the warning issued in datanode.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
GreptimeTeam__greptimedb__8031 | GreptimeTeam/greptimedb | 8,031 | defect | e316797ffffbfc5ccf96d515e12b259beb4ac9b1 | bea22078440da34233b92648f4ab72b9ed404c81 | refactor: unify frontend discovery with active peer discovery | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
This PR unifies frontend discovery around `PeerDiscovery::active_frontends()`.
- Implement `PeerDiscov... | diff --git a/Cargo.lock b/Cargo.lock
index a006c7403cdf6..9e96291002785 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7738,6 +7738,7 @@ dependencies = [
"common-meta",
"common-options",
"common-telemetry",
+ "common-time",
"datatypes",
"futures",
"futures-util",
diff --git a/config/config.md b/config/config.... | 6 | 3 | 1 | [{"id": "G0", "claim": "In is_active_node, a slightly future node.last_activity_ts (clock skew) makes now.saturating_sub(node.last_activity_ts) negative, and casting it to u64 yields a huge number that incorrectly flags the node as inactive; the signed difference should be compared directly, or negative elapsed clamped... | null |
GreptimeTeam__greptimedb__8032 | GreptimeTeam/greptimedb | 8,032 | defect | 6649c14938523a04b637993ed9e1157cfee28a06 | 192543f4e0c1db6eaab13e8036fef312ece44b48 | feat: persist our column_id to parquet field_id | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
This is to maintain a persist mapping between our column id and parquet field id.
## PR Checklist
Ple... | diff --git a/src/metric-engine/src/engine/flush.rs b/src/metric-engine/src/engine/flush.rs
index 8c0f33aaf31f..4634315a8c0b 100644
--- a/src/metric-engine/src/engine/flush.rs
+++ b/src/metric-engine/src/engine/flush.rs
@@ -136,9 +136,9 @@ mod tests {
ManifestSstEntry { table_dir: "test_metric_region/", region_id: 4724... | 6 | 1 | 0 | [{"id": "G0", "claim": "with_field_id should take the Field by value (or offer such a variant) so the call site decides whether to clone, instead of silently cloning inside the helper.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "with_field_id wri... | null |
GreptimeTeam__greptimedb__8051 | GreptimeTeam/greptimedb | 8,051 | defect | 7b0a1f26db441e461b77410373c47d657754077b | 14b5665528a3fccc9a061458664c71a15298c210 | refactor: propagate flush reasons through FlushRegions path | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
Closes: #7586
## What's changed and what's your intention?
<!--
__!!! DO NOT LEAVE THIS BLOCK EMPTY !!!__
Please explain IN DETAIL what t... | diff --git a/src/common/meta/src/instruction.rs b/src/common/meta/src/instruction.rs
index 4056597bf532..fd8d17bdffb4 100644
--- a/src/common/meta/src/instruction.rs
+++ b/src/common/meta/src/instruction.rs
@@ -18,6 +18,7 @@ use std::time::Duration;
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use... | 3 | 3 | 0 | [{"id": "G0", "claim": "The logic for applying the flush reason to FlushRegions in flush_region could be simplified by directly assigning the reason field instead of the conditional with_reason builder call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
GreptimeTeam__greptimedb__8067 | GreptimeTeam/greptimedb | 8,067 | defect | 9faa012fa187e29eae8812f82d378b31252f8233 | efca2f8b201786ce60b893c4de0f35d28dd17587 | test: cover standalone user provider config | Closes #5853
## What
Add coverage for loading `user_provider` from standalone config files, and document the config usage in the standalone example and generated config docs.
## Why
Standalone already supports propagating `user_provider` to frontend auth setup, but the config-file usage was not covered or visible in ... | diff --git a/config/config.md b/config/config.md
index 01cf9e75fa73f..c04bcf15c9fc9 100644
--- a/config/config.md
+++ b/config/config.md
@@ -14,6 +14,7 @@
| --- | -----| ------- | ----------- |
| `default_timezone` | String | Unset | The default timezone of the server. |
| `default_column_prefix` | String | Unset | ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The user_provider field should also be documented in the Frontend and Flownode sections of config.md so the configuration reference stays consistent and complete across all deployment modes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
GreptimeTeam__greptimedb__8079 | GreptimeTeam/greptimedb | 8,079 | defect | c59ed1b291811bb4e94132f1cac552fa6c561a3d | 608b2c3374c106436f789706957f0b8070e1ce6a | fix(mito): queue writes during region edit | I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
This PR fixes the issue that `RegionEdit` requests will render region into `Editing` state, which rejects all i... | diff --git a/src/mito2/src/engine/edit_region_test.rs b/src/mito2/src/engine/edit_region_test.rs
index 4a92d3494f8cb..4da45b3090278 100644
--- a/src/mito2/src/engine/edit_region_test.rs
+++ b/src/mito2/src/engine/edit_region_test.rs
@@ -15,10 +15,15 @@
use std::sync::{Arc, Mutex};
use std::time::Duration;
+use api:... | 8 | 2 | 0 | [{"id": "G0", "claim": "Using extract_if followed by collect inside handle_buffered_region_write_requests can cause repeated scans and allocations when a batch contains many background notifications for different regions; the reviewer asks whether the allocations can be avoided or whether the performance impact is acce... | null |
GreptimeTeam__promql-parser__135 | GreptimeTeam/promql-parser | 135 | defect | 345cd679887f48d1c6d6684da06f8368b6709f61 | 30d9f39f46d06bc9d83271742aa468c789fe9ef0 | feat: fill*() binop modifiers | Add our parser implementation for Prometheus 3.10 fill modifiers https://github.com/prometheus/prometheus/pull/17644
pending tasks:
- [x] figure out if it's really necessary to expand tokenId to u16, and the conflicts currently suppressed by `%expect 5`
- [x] support identifier called `fill`, `fill_left` and `fi... | diff --git a/build.rs b/build.rs
index 0390e51..8e3442c 100644
--- a/build.rs
+++ b/build.rs
@@ -17,10 +17,10 @@ use lrlex::{ct_token_map, DefaultLexerTypes};
use lrpar::CTParserBuilder;
fn main() -> Result<(), Box<dyn std::error::Error>> {
- let ctp = CTParserBuilder::<DefaultLexerTypes<u8>>::new()
+ let ctp... | 4 | 1 | 1 | [{"id": "G0", "claim": "The number_duration_literal grammar rule uses .unwrap() on parse_str_radix() and parse_duration(), so specially crafted malformed input can panic the parser (DoS); refactor it, along with fill_value and fill_modifiers, to propagate errors via Result<f64, String> and the ? operator as in the sugg... | null |
GreptimeTeam__promql-parser__94 | GreptimeTeam/promql-parser | 94 | defect | 4ea4cbf47f7dfa28e961acf8f722bfb4a5cfd8fc | a85d78c57cb4d7ada7113fe0b814508b6465eb26 | feat: serialize AST to json | Fixes #93
This patch attempts to add AST serialization to match output of prometheus 3.0 parse_query. | diff --git a/Cargo.toml b/Cargo.toml
index 3d11101..64b327b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,6 +31,12 @@ lazy_static = "1.4.0"
lrlex = "0.13.5"
lrpar = "0.13.5"
regex = "1"
+serde = { version = "1", optional = true }
+serde_json = { version = "1", optional = true }
+
+[features]
+default = []
+ser = [... | 4 | 4 | 0 | [{"id": "G0", "claim": "Offset::value_millis should be renamed to as_millis() to reflect that it calls duration's as_millis(), rather than being kept public under its current name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Offset::value_mil... | null |
Growth-Circle__cadis__24 | Growth-Circle/cadis | 24 | defect | 6f6a6e60a52cd47cb65c58abab02b0fc594ebbe4 | 690c8de982791538468c18c85d19b267c4d29181 | test: add CLI integration tests | 5 integration tests exercising cadis CLI against cadisd in stdio mode.
Tests: cli_status, cli_chat, cli_doctor, cli_models, cli_agents. | diff --git a/Cargo.lock b/Cargo.lock
index 088558b..97cd97c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -542,6 +542,7 @@ dependencies = [
"cadis-protocol",
"cadis-store",
"serde_json",
+ "tempfile",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index 7d8e985..7b21566 100644
--- a/Cargo.toml
+++ b/Cargo.t... | 3 | 1 | 1 | [{"id": "G0", "claim": "The test hard-codes target/<profile>/cadisd instead of resolving the daemon path via Cargo's test binary mechanism, so in a clean CI run assert!(path.exists()) can fail before any test logic runs and all the new integration tests would fail; asked to resolve the path via CARGO_BIN_EXE_* or artif... | null |
Guake__guake__1759 | Guake/guake | 1,759 | defect | f824772c34344ab7d89422093bcab2357ca336a4 | c0b7c9fef01f6a7a4062b77eb8a7e23e43ee9253 | Per directory yaml | The present requests add the option of reading a yaml-formatted file in the current working directory loading the title of a tab.
| diff --git a/Pipfile b/Pipfile
index fc65de1ee..0c752eaaa 100644
--- a/Pipfile
+++ b/Pipfile
@@ -35,6 +35,7 @@ black = "==21.8b0"
dephell = "*"
toml = "*"
dataclasses = "*"
+pyyaml = "*"
[packages]
pbr = "*"
diff --git a/docs/source/user/features.rst b/docs/source/user/features.rst
index ffc949e51..26348a916 100... | 10 | 6 | 3 | [{"id": "G0", "claim": "Docs are needed so people know Guake looks for per-directory .guake.yml files, and the reviewer also suggests UI controls for creating these files and some testing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "open() on t... | null |
Guake__guake__2076 | Guake/guake | 2,076 | defect | 985e752234dd184287826fee2ba30842064506b2 | 1975ac34aedbfdfad2487bf9a653a4a348336c5e | Add file loader and tests for compute_tab_table and load_cwd_guake_yml | This is a continuation of #1759. Test for compute_tab_title and load_cwd_guake_yml are added and a class that controls the cache is added to utils.py (FileManager) tests for that class are also included. There are no new functionalities here, just more tests and a cleaner cache control. Also dataclasses are not used in... | diff --git a/Pipfile b/Pipfile
index 45e83eeb7..7bd8fe983 100644
--- a/Pipfile
+++ b/Pipfile
@@ -34,7 +34,6 @@ pew = "*"
black = "==21.8b0"
flakehell = "*"
toml = "*"
-dataclasses = {markers="python_version < '3.7'","version >" = "0.1.3"}
[packages]
pbr = "*"
diff --git a/Pipfile.lock b/Pipfile.lock
index ca5927... | 1 | 1 | 0 | [{"id": "G0", "claim": "The expected-exception handling around read_yaml() (PermissionError, FileNotFoundError, YAMLError, UnicodeDecodeError) should live inside the function itself, so that future potential calls don't need to also wrap it in this chunk of exception handling.", "category": "design", "verdict": "suppor... | null |
Guardsquare__proguard__139 | Guardsquare/proguard | 139 | defect | af272c24b63543a4ce063dc84ad41c28ecb804f4 | 659860e88d653858877e85606dc750674493ede3 | Improve handling of Gradle task inputs and outputs | This PR reworks the way that task inputs and outputs are declared for the Gradle plugin, allowing more complete tracking of task input changes and full caching of task outputs.
The primary change is that any file declared as a `injar` or `libraryjar` will be considered a task input, and the Gradle task will be consi... | diff --git a/base/src/proguard/ClassPathEntry.java b/base/src/proguard/ClassPathEntry.java
index bff739a12..d8a93b67d 100644
--- a/base/src/proguard/ClassPathEntry.java
+++ b/base/src/proguard/ClassPathEntry.java
@@ -245,6 +245,10 @@ public boolean isZip()
return hasExtension(".zip");
}
+ public bool... | 9 | 7 | 1 | [{"id": "G0", "claim": "wolfs suggests tracking configuration files via a dependsOn in the constructor and marking getConfigurationFiles() @Internal instead of tracking them as direct task inputs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ProGuardTa... | null |
GuillaumeGomez__sysinfo__1236 | GuillaumeGomez/sysinfo | 1,236 | defect | b7d7f317bad003cd6053a967c668d524ab84b0b0 | 3c6dcc76b3d6dfd9dccff0aa6c8badb7364c618a | Mitigate `cpu_usage()` from returning NaN on Macs |
**Describe the bug**
Using the current latest checkout of this repo (or any 0.30.x version) on a Mac can result in `cpu.cpu_usage()` reporting a `NaN`. This is primarily caused by this code:
https://github.com/GuillaumeGomez/sysinfo/blob/b7d7f317bad003cd6053a967c668d524ab84b0b0/src/unix/apple/cpu.rs#L239-L244
... | diff --git a/src/unix/apple/cpu.rs b/src/unix/apple/cpu.rs
index 18c0e9925..21a31d933 100644
--- a/src/unix/apple/cpu.rs
+++ b/src/unix/apple/cpu.rs
@@ -7,11 +7,14 @@ use libc::{c_char, c_void, host_processor_info, mach_port_t, mach_task_self};
use std::mem;
use std::ops::Deref;
use std::sync::Arc;
+use std::time::I... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `.map(...).unwrap_or(true)` on the new `last_update` check should be replaced with `.is_some_and(...)`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "After this patch, `cpu_usage()` may still return NaN when the meas... | null |
GuillaumeGomez__sysinfo__367 | GuillaumeGomez/sysinfo | 367 | defect | f57031a38b0d527958a58605682c52e262f3f017 | 042c1326808d2d093a347a59910f2143b42a26e1 | Prevent CPU to be NaN and upgrade crate version to 0.15.3 | Fixes #366
@yonip23 that should your problem (if you can just confirm it, it'd be awesome!) | diff --git a/Cargo.toml b/Cargo.toml
index 105770ad46..397cdb52a8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "sysinfo"
-version = "0.15.2"
+version = "0.15.3"
authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
description = "Library to get system information such as processe... | 3 | 2 | 1 | [{"id": "G0", "claim": "Equality should be checked with a float epsilon (e.g. `abs(old - new) < std::f32::EPSILON || old > new`) rather than with `>=`, since float equality is problematic.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should... | null |
GuillaumeGomez__sysinfo__552 | GuillaumeGomez/sysinfo | 552 | defect | 5f5b0a9e8ff61de496d7b986017bcec989e40492 | 12f711bbc00db3b5b89648ad237aa37aa4e90e96 | Add better support for macOS sandboxing | While testing `sysinfo` inside of a sandboxed macOS application, `sandboxd` was reporting a violation from my application. Following the stacktrace led to me to `sysinfo`:
```
Thread 18 (id: 3250767, tokio-runtime-worker):
0 libsystem_kernel.dylib 0x00007fff203612ba
1 IOKit 0x00... | diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 883d3fddcd..ff1c6d2bb0 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -97,7 +97,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: check
- args: --features apple-app-store --target=${{ ... | 4 | 4 | 0 | [{"id": "G0", "claim": "The README section heading should read 'macOS or iOS Sandbox/Store' to also cover the App Store case.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README paragraph about the apple-sandbox feature should be rewrapped s... | null |
GuillaumeGomez__sysinfo__556 | GuillaumeGomez/sysinfo | 556 | defect | 9a97500d05827e5f7b897d0d9780747571286933 | fdbe29d23c91665a7323bc5369f4fdefde100c88 | Add support for getting process current working directory and environment variables on Windows | This adds support for getting process current working directory on Windows.
This will only work on Win64. 32 bit process require quite a bit more work.
Note that there is a bit of code duplication between this and the code to get command line. I think this could be unified, but I think it would be better to do t... | diff --git a/src/windows/process.rs b/src/windows/process.rs
index 45fa5e4676..b410007241 100644
--- a/src/windows/process.rs
+++ b/src/windows/process.rs
@@ -21,10 +21,10 @@ use once_cell::sync::Lazy;
use ntapi::ntpsapi::{
NtQueryInformationProcess, ProcessBasicInformation, ProcessCommandLineInformation,
- ... | 8 | 7 | 2 | [{"id": "G0", "claim": "The get_cwd function still contains a leftover debug println! that should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The manual null-terminator push before converting the buffer is unnecessary and should b... | null |
GuillaumeGomez__sysinfo__827 | GuillaumeGomez/sysinfo | 827 | defect | 30dfe1b2710d1e6315865a0fff320f204b60e204 | 6208a5197d672b2a8e7723ba6a725c23fdf6ea91 | Read more temperature data from hwmon on linux | May supplant #823, may help in #826.
- Pro: Read more
- cons: refactoring, do some magic to comply with `Component`/`ComponentExt` traits (`labels` and `max`)
Read things that are not used now, maybe doing a Linux specific Hwmon richer trait?
Not exhaustive checklist of what is done:
- [x] One monomorphise... | diff --git a/src/linux/component.rs b/src/linux/component.rs
index 3a10588e56..3da1e86bea 100644
--- a/src/linux/component.rs
+++ b/src/linux/component.rs
@@ -1,143 +1,353 @@
// Take a look at the license at the top of the repository in the LICENSE file.
+//! Information about values readable from `hwmon` sysfs.
+//... | 15 | 14 | 0 | [{"id": "G0", "claim": "Use Option<PathBuf> instead of empty PathBuf values for the component's hwmon file-path fields (highest_file, input_file).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two near-identical get_i32_from_file/get_u32_from_file h... | null |
GuillaumeGomez__sysinfo__865 | GuillaumeGomez/sysinfo | 865 | defect | c01de811dde7610436dd580782b06e83196039fd | 1bee5d14c2e1df6f8255721e325474886af0d715 | Add wait() to process | Fixes https://github.com/GuillaumeGomez/sysinfo/issues/858
Note: This is incomplete and will update in sometime. | diff --git a/src/common.rs b/src/common.rs
index 2710204f5..d79dddb52 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -528,6 +528,8 @@ pub enum DiskType {
/// [`SystemExt::SUPPORTED_SIGNALS`][crate::SystemExt::SUPPORTED_SIGNALS].
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Debug)]
pub enum Signal {
+ /// N... | 5 | 4 | 1 | [{"id": "G0", "claim": "waitpid only works for children processes, not for any processes, so the Linux wait() implementation is basically doing nothing.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Adding Signal::Null to the public Signal enum is ... | null |
GuillaumeGomez__sysinfo__930 | GuillaumeGomez/sysinfo | 930 | defect | cb9cc571298a490bac22525df8407834ef890a9e | c70debf7e061ae1a4b9f4f2278dd8bd540b506ff | Use SIDs as UIDs on Windows | The reason for implementing this is correctness.
Right now, the user list returned by [`SystemExt::users`](https://docs.rs/sysinfo/latest/sysinfo/trait.SystemExt.html#tymethod.users) can contain different UIDs than those returned by [`ProcessExt::user_id`](https://docs.rs/sysinfo/latest/sysinfo/trait.ProcessExt.html... | diff --git a/Cargo.toml b/Cargo.toml
index e905a28022..80ec36f15d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -55,7 +55,8 @@ winapi = { version = "0.3.9", features = [
"shellapi",
"std",
"iphlpapi",
- "winsock2"
+ "winsock2",
+ "sddl",
]}
ntapi = "0.4"
diff --git a/md_doc/sid.md b/md_doc/sid.md
new file... | 8 | 7 | 0 | [{"id": "G0", "claim": "The new check_uid_windows test could be run on all supported platforms instead of being gated to Windows.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The second LookupAccountSidW call can pass NULL for the optional domain argu... | null |
GuillaumeGomez__sysinfo__977 | GuillaumeGomez/sysinfo | 977 | defect | 02af6ab92b7f8e868aa752e002d1002c57f5070a | dc7884f8814902cdc9deed5f8fdcee6a204af2e6 | Add Process::{effective_user_id, effective_group_id} + user_id & group_id to return real IDs | Add API to query effective IDs of a process and make `Process::{user_id, group_id}` return real IDs on Linux and Apple, so the behavior is as expected and consistent with the FreeBSD implementation.
Fixes #970.
---
Zeeshan Ali Khan on behalf of MBition GmbH.
[Provider Information](https://github.com/mercede... | diff --git a/src/apple/macos/process.rs b/src/apple/macos/process.rs
index 8606b253d7..ad546f2551 100644
--- a/src/apple/macos/process.rs
+++ b/src/apple/macos/process.rs
@@ -33,7 +33,9 @@ pub struct Process {
pub(crate) updated: bool,
cpu_usage: f32,
user_id: Option<Uid>,
+ effective_user_id: Option<... | 4 | 4 | 2 | [{"id": "G0", "claim": "The doc comments of the new effective_user_id and effective_group_id methods should include a short sentence explaining the difference between effective and real IDs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new e... | null |
GumTreeDiff__gumtree__345 | GumTreeDiff/gumtree | 345 | defect | 58e22f1f74e1984052202b86be4ec73eeeb63c24 | 39ee8c3bfb7b648565bbad3c5084a0a27fd81333 | feat: add tree-sitter-ng for tree generator. | tree-sitter-ng is a java binding of tree-sitter, so with tree-sitter-ng, we don't need python anymore and we can generate tree in memory instead of reading xml from disk. | diff --git a/benchmark/datasets b/benchmark/datasets
index 3b3646c34..33024da8d 160000
--- a/benchmark/datasets
+++ b/benchmark/datasets
@@ -1 +1 @@
-Subproject commit 3b3646c34198df77932e308f15d69622e35e721e
+Subproject commit 33024da8de4c519bb1c1146b19d91d6cb4c81ea6
diff --git a/dist/build.gradle b/dist/build.gradle
... | 5 | 4 | 1 | [{"id": "G0", "claim": "The change to the benchmark/datasets submodule is not necessary and should be dropped from the PR.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The method name `generateFromTressSitterTree` contains a typo (\"Tress\" instead of \"... | null |
HDFGroup__hdf5__3755 | HDFGroup/hdf5 | 3,755 | defect | e4fb67c84aa4a4983e2cee4994235600d813a9ee | 3dec7d52fe1853f1632fa8be12cdb105ca7a48c4 | Preserve MPI-I/O file hints when fapl is closed | Save the MPI info in the file struct so H5Fget_access_plist() can retrieve it from there.
Fixes GitHub #3025 | diff --git a/src/H5Fint.c b/src/H5Fint.c
index 014f619d8a9b..544608899b53 100644
--- a/src/H5Fint.c
+++ b/src/H5Fint.c
@@ -402,7 +402,6 @@ H5F_get_access_plist(H5F_t *f, bool app_ref)
HGOTO_ERROR(H5E_FILE, H5E_CANTSET, H5I_INVALID_HID, "can't set collective metadata read flag");
if (H5F_HAS_FEATURE(f, H5F... | 2 | 2 | 2 | [{"id": "G0", "claim": "Because the library now takes and stores the MPI info from a FAPL in the H5F_shared_t struct, it must close that MPI_Info with H5_mpi_info_free when closing an H5F_shared_t.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The ... | null |
HDFGroup__hdf5__3829 | HDFGroup/hdf5 | 3,829 | defect | 5e787741cdc991eb0011c9393152c1678ca737a8 | dc0fd6a6443e3cab879f7282f0491814be2f04c6 | Test and document path handling of H5Lcreate_* API | The docs incorrectly say that `H5Lcreate_soft` can't take a path as its link name, and don't mention absolute path handling in any of the `H5Lcreate_*` documentation.
Fix #3827. | diff --git a/src/H5Lpublic.h b/src/H5Lpublic.h
index 03b47c540fae..34a4e6bc44ff 100644
--- a/src/H5Lpublic.h
+++ b/src/H5Lpublic.h
@@ -260,9 +260,10 @@ H5_DLL herr_t H5Lcopy(hid_t src_loc, const char *src_name, hid_t dst_loc, const
* location and name, respectively, of the new hard link.
*
* \p ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The H5Lcreate_* documentation added by the PR should also say that the actual name of the created link is only the last element of the provided path and prior elements locate the group in which the link is created.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope":... | null |
HDFGroup__hdf5__3842 | HDFGroup/hdf5 | 3,842 | defect | afb1f3c19ace049faa1404b312b4ff44560a03f6 | 7b01cd6cd5c4c69c507682c802bc137c9476c8a9 | Fix segfault on user compound dtype conversion callback | Fix for #3840, with associated test.
The bad memory access occurred while checking if the two datatypes were compound subsets of one another. This check is done using information in `cdata->priv`, which is never set when a user conversion callback is in use. This fixes the issue by returning NULL, which is already c... | diff --git a/src/H5T.c b/src/H5T.c
index a02abfc18d05..8494680d2436 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -5174,10 +5174,10 @@ H5T_path_noop(const H5T_path_t *p)
/*-------------------------------------------------------------------------
* Function: H5T_path_compound_subset
*
- * Purpose: Checks if the sour... | 2 | 2 | 1 | [{"id": "G0", "claim": "A user conversion function might use the priv field for its own purposes and still trigger the bug because the library only checks whether priv is NULL; instead add a check in H5T_path_compound_subset() that a library conversion function (e.g., H5T__conv_struct()) is in use rather than checking ... | null |
HDFGroup__hdf5__4081 | HDFGroup/hdf5 | 4,081 | defect | fe5d0d5c535b34b20171d0d7540b11e11412755c | 8162d2d22022bd3d9539cbe72308afe14d5bb47f | Fixed asserts due to H5Pset_est_link_info() values | If large values for est_num_entries and/or est_name_len were passed to H5Pset_est_link_info(), the library would attempt to create an object header NIL message to reserve enough space to hold the links in compact form (i.e., concatenated), which could exceed allowable object header message size limits and trip asserts ... | diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt
index 8695b62bba4f..3896cc49456b 100644
--- a/release_docs/RELEASE.txt
+++ b/release_docs/RELEASE.txt
@@ -499,6 +499,26 @@ Bug Fixes since HDF5-1.14.0 release
===================================
Library
-------
+ - Fixed asserts raised by la... | 3 | 1 | 0 | [{"id": "G0", "claim": "The change should not declare variables inline; the compactness comparison could be put directly in the 'if' statement instead of assigning a local `bool compact`.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comments... | null |
HDFGroup__hdf5__4715 | HDFGroup/hdf5 | 4,715 | defect | d7e0ad5200744d0cb947df0b09e22b6b8d2f15ad | f2f1396de9653194ab20b04af43c6880ed50e70f | Fix inconsistent documentation of get_name functions | - Verified that the functions listed in GH-4704 do not include null terminator in the returned length
- Improved some of the tests
- Corrected documentation
Fixes GH-4704 | diff --git a/src/H5A.c b/src/H5A.c
index 651ed13c2564..d078ed5f6239 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -1218,7 +1218,7 @@ H5Aget_create_plist(hid_t attr_id)
DESCRIPTION
This function retrieves the name of an attribute for an attribute ID.
- Up to 'buf_size' characters are stored in 'buf' followed... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new `len` variable in test/links.c should probably be declared as size_t rather than int.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new USAGE doc for the n parameter in H5Aget_name_by_idx should read \"Index (0-b... | null |
HDFGroup__hdf5__4852 | HDFGroup/hdf5 | 4,852 | defect | e2154c92e543517e48684e93a4e12b90bc150877 | fcc544633861b164e62e4803875c78fa2644aa96 | Clean up thread-local error stacks in all threads | When threadsafety is enabled, threadlocal error stacks in threads that don't call `H5_term_library` do not have any error records stored on them cleaned up properly. This leads to leaked memory and, before the recent changes to H5E, an infinite loop during library close.
Set of changes:
- Cleanup threadlocal e... | diff --git a/src/H5.c b/src/H5.c
index 9dc9fca10221..3433e49d46a8 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -208,15 +208,6 @@ H5_init_library(void)
*/
if (!H5_dont_atexit_g) {
-#if defined(H5_HAVE_THREADSAFE)
- /* Clean up thread resources.
- *
- * This must be pushed before the librar... | 9 | 9 | 5 | [{"id": "G0", "claim": "The change removing the atexit(H5TS_term_package) registration from H5_init_library needs justification - the reviewer asks why it is necessary.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "H5E_clear_stack() in H5E_term_package ... | null |
HDFGroup__hdf5__4939 | HDFGroup/hdf5 | 4,939 | defect | bcc795fcf66f5ce72b76dab4b4df5136f2558303 | d49c906ca3ed9f9d73692d3ed11f08e99c06647c | Fix for issue #4849 that settings in fapl libver bounds causes unexpe… | …cted H5Fopen failures.
File with non-SWMR-write access can now be opened without regard for superblock version. Due to the fix, H5Fstart_swmr_write() also needs to be modified as well as the tests for libver bounds. The "RFC: Setting Bounds for Object Creation in HDF5 1.10.0" is also updated to reflect the changes. | diff --git a/c++/test/tfile.cpp b/c++/test/tfile.cpp
index bd7d96422e80..7f3406a60b80 100644
--- a/c++/test/tfile.cpp
+++ b/c++/test/tfile.cpp
@@ -759,7 +759,7 @@ test_libver_bounds()
/* Run the tests */
test_libver_bounds_real(H5F_LIBVER_EARLIEST, H5O_VERSION_1, H5F_LIBVER_LATEST, H5O_VERSION_2);
- test... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new error messages in H5F__start_swmr_write are out of sync with the code they follow (e.g. \"object not found\" for an H5O_get_loc failure and \"H5O_get_native__info\" with a stray underscore), and one of the two is wrong.", "category": "maintainability", "verdict": "supported", "priority":... | null |
HDFGroup__hdf5__5022 | HDFGroup/hdf5 | 5,022 | defect | 97420ea678ec28800c89a27c63e6aa71793ca5f1 | fbd2ffd74d8f85a0711ab6c64290d0639d361bfa | Fixed H5Ovisit2() change of behavior between 1.10.11 and v1.14.4.3 | H5O__visit() uses the object information to be returned to the application, so when the application did not request for certain information, they were not available to H5O__visit(). This lack of information caused incorrect behavior down the road.
We now call H5O_get_info() again providing H5O_INFO_BASIC for "field... | diff --git a/src/H5Oint.c b/src/H5Oint.c
index c9363697fa55..1b10d0e4e997 100644
--- a/src/H5Oint.c
+++ b/src/H5Oint.c
@@ -2623,6 +2623,7 @@ H5O__visit(H5G_loc_t *loc, const char *obj_name, H5_index_t idx_type, H5_iter_or
H5O_loc_t obj_oloc; /* Opened object object location */
boo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The H5Ovisit2 behavior change needs a note in RELEASE.txt.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
HDFGroup__hdf5__5246 | HDFGroup/hdf5 | 5,246 | defect | ce949cf6a984042eff279ec141717e72f5182210 | 14d0e9f947748ee6f26e41aa18e51d33d3ba0c9b | Integrate shared chunk cache (H5SC) package with upper layers of library | Also some updates to shared chunk cache interface, and other general fixes. Non functional currently since the shared chunk cache hasn't been implemented. | diff --git a/src/H5CX.c b/src/H5CX.c
index c6a43801d0b4..cf912c8d5f2d 100644
--- a/src/H5CX.c
+++ b/src/H5CX.c
@@ -2900,6 +2900,40 @@ H5CX_set_mpio_actual_chunk_opt(H5D_mpio_actual_chunk_opt_mode_t mpio_actual_chun
FUNC_LEAVE_NOAPI_VOID
} /* end H5CX_set_mpio_actual_chunk_opt() */
+/*---------------------------... | 3 | 1 | 1 | [{"id": "G0", "claim": "It may not make sense to check the first dataset's file for a shared chunk cache, since the first dataset may not be using the shared chunk cache.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If skipping IO info initializat... | null |
HDFGroup__hdf5__5458 | HDFGroup/hdf5 | 5,458 | defect | 972af7fc33f9bc0578d7b8630f3edfbaaeea5b73 | 133b71ec79e94e0a15d76e4c1e0f3b6a50c27b93 | Bring h5dumpgentest in line with expected test files | - Add routines to generate several test files that were missing from the gentest script
- Fix several datatypes having unexpected endianness on certain systems
- Fix several issues on systems with small long double types
- Fix created file for long links test not matching expected file
- Use double values d... | diff --git a/tools/test/h5dump/CMakeLists.txt b/tools/test/h5dump/CMakeLists.txt
index f1c4cd86709a..7a6b34cc2841 100644
--- a/tools/test/h5dump/CMakeLists.txt
+++ b/tools/test/h5dump/CMakeLists.txt
@@ -59,7 +59,7 @@ if (HDF5_BUILD_GENERATORS)
clang_format (HDF5_TOOLS_TEST_H5DUMP_FORMAT h5dumpgentest)
endif ()
... | 4 | 4 | 4 | [{"id": "G0", "claim": "The generator must not prepend \"testfiles/\" to the generated test file names, and must not assume a testfiles/ directory exists relative to wherever the generator programs are run from.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai... | null |
HDFGroup__hdf5__5506 | HDFGroup/hdf5 | 5,506 | defect | 407caf1259dd03685b411f78321f823abd2666a6 | 62e502e4bfc0963d21a2e5b08feafe204a97b067 | Add H5Dread_chunk2() | Version H5Dread_chunk() according to the standard HDF5 API versioning scheme. H5Dread_chunk2() takes an additional parameter that points to a variable containing the size of the buffer on entry, and is set to the needed size on exit. Deprecated H5Dread_chunk1(). The FORTRAN interface still needs to be updated.
Resol... | diff --git a/doxygen/examples/tables/volAPIs.dox b/doxygen/examples/tables/volAPIs.dox
index 88299960ea69..b4167988ea07 100644
--- a/doxygen/examples/tables/volAPIs.dox
+++ b/doxygen/examples/tables/volAPIs.dox
@@ -52,7 +52,11 @@
<td></td>
</tr>
<tr>
-<td>#H5Dread_chunk</td>
+<td>#H5Dread_chunk1</td>
+<td></td>
+</t... | 5 | 3 | 1 | [{"id": "G0", "claim": "The new RELEASE.txt entry for H5Dread_chunk() misspells \"hold the\" as \"hol dhte\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Asks which naming convention the new buffer-size parameter should follow, noting both `nal... | null |
HDFGroup__hdf5__5671 | HDFGroup/hdf5 | 5,671 | defect | 1d6f47847230184489fa93d0be5dbc5cfb55653d | 763bbf103f5f3b6538fe4c85d145a9ea6de66ad2 | Feature/sparse data |
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Enhance HDF5 filter functionality to support structured chunk layouts by updating filter versioning, adding new callback functions, and modifying existing functions.
>
> - **Filter Versioning**:
> - Update `H5Z_CLASS_T_VERS` to 3 in `H5Zdevelop.h`.
> - Introduce ... | diff --git a/src/H5Pocpl.c b/src/H5Pocpl.c
index 2177ca322d3d..964628b87a5c 100644
--- a/src/H5Pocpl.c
+++ b/src/H5Pocpl.c
@@ -557,7 +557,6 @@ H5P_modify_filter(H5P_genplist_t *plist, H5Z_filter_t id, H5_section_type_t sec_
*
*-------------------------------------------------------------------------
*/
-/* HERE n... | 3 | 3 | 0 | [{"id": "G0", "claim": "The typo 'Verion number' in the H5Z_class2_t version field documentation should be corrected to 'Version number'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The typo 'paraemter' in the H5Z_stc_set_local_func_t callback ... | null |
HDFGroup__hdf5__5686 | HDFGroup/hdf5 | 5,686 | defect | 0c2dec3a81406f99403e5ac481ee95a28592513d | f435a23db52abd0e2885911cbd7eb2ed2a8b5c05 | Feature/sparse data |
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Adds support for structured chunk layouts and sparse data handling in HDF5, with updates to filter functions and new tests.
>
> - **Behavior**:
> - Adds support for structured chunk layouts in `H5Pset_filter2`, `H5Pget_nfilters2`, `H5Pget_filter3`, and `H5Premove_fil... | diff --git a/src/H5Pocpl.c b/src/H5Pocpl.c
index 964628b87a5c..99377f843f3b 100644
--- a/src/H5Pocpl.c
+++ b/src/H5Pocpl.c
@@ -821,7 +821,6 @@ H5Pset_filter2(hid_t plist_id, H5_section_type_t sec_type, H5Z_filter_t filter,
size_t cd_nelmts, const unsigned int cd_values[/*cd_nelmts*/])
{
H5P_genpli... | 3 | 3 | 1 | [{"id": "G0", "claim": "The doc comment in src/H5Zdevelop.h contains a repeated word in the phrase \"The difference is that that it has one additional\"; please remove one \"that\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The newly added ... | null |
HDT3213__godis__246 | HDT3213/godis | 246 | defect | 04a472ebec280ec9361813638d75ebbe96912e56 | 810a020111bcc44cb03bd07b1345e2147fd10613 | support count of LPop and RPop | LPop 和 RPop 命令支持 count 参数

| diff --git a/database/list.go b/database/list.go
index 416a4590..4360a532 100644
--- a/database/list.go
+++ b/database/list.go
@@ -103,6 +103,27 @@ func execLPop(db *DB, args [][]byte) redis.Reply {
return &protocol.NullBulkReply{}
}
+ if len(args) == 2 {
+ count64, err := strconv.ParseInt(string(args[1]), 10, ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The undo logic for multi-pop (undoLPop and undoRPop) should push the n popped values back with one batched lpush/rpush command instead of one command per value, because that is faster.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
HDT3213__godis__66 | HDT3213/godis | 66 | defect | 7a9cbb7c112ea2df9229bcbf17cc9c0ca259d1f8 | 2325be49377e6f9df3f3db4e8a8efc21d06a1fdd | Feat:Add "copy" command | **COPY source destination [DB destination-db] [REPLACE]**
Available since: 6.2.0
Time complexity: O(N) worst case for collections, where N is the number of nested items. O(1) for string values.
This command copies the value stored at the source key to the destination key.
By default, the destination key is create... | diff --git a/cluster/router.go b/cluster/router.go
index 9aea963a..77d88af2 100644
--- a/cluster/router.go
+++ b/cluster/router.go
@@ -25,6 +25,7 @@ func makeRouter() map[string]CmdFunc {
routerMap["type"] = defaultFunc
routerMap["rename"] = Rename
routerMap["renamenx"] = RenameNx
+ routerMap["copy"] = defaultFun... | 3 | 3 | 3 | [{"id": "G0", "claim": "The copy command's src and destination may be on different nodes in cluster mode, so routing it to defaultFunc is wrong; the author should either implement copy with tcc like cluster.Rename, only allow copy when src and destination are on the same node, or disable copy in cluster.", "category": ... | null |
HEnquist__realfft__7 | HEnquist/realfft | 7 | defect | 1c08467ce8ece40325da2a3f5084c2bdec5f64c5 | 87c9415f061be9d4f658b81b311807ae47e1beeb | Odds | Add support for odd lengths.
Also a big rewrite to be more similar to RustFFT, with a Planner etc. | diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml
new file mode 100644
index 0000000..e559401
--- /dev/null
+++ b/.github/workflows/run_tests.yml
@@ -0,0 +1,55 @@
+on: [pull_request]
+
+name: CI
+
+jobs:
+ check:
+ name: Check+Test
+ runs-on: ubuntu-latest
+ strategy:
+ matri... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc comment on RealToComplex::new at src/lib.rs line 176 says it returns an error, but since odd lengths are now supported it always returns Ok() and is no longer accurate.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
HFrost0__bilix__158 | HFrost0/bilix | 158 | defect | 0dda56d433eda7289395f88f83b050dd24370a70 | 73fe7dc23bf96d14148164f44f9bcb808dd32c74 | bilibili improve | * `get_video_info()` 缺个 return :rofl:
* BiliBili 在多P视频里会出现 `p=1` 这样的 URL,而且不会被重定向到无 `p=` 参数的`干净URL`,比如:<https://www.bilibili.com/video/BV1ss4y1k7CD?p=1> ,电脑网页右侧的分 P 栏中的 P1 就是 `?p=1` 这样的形式。既然合法,那就解析呗。

* 我担心如果有... | diff --git a/bilix/sites/bilibili/api.py b/bilix/sites/bilibili/api.py
index 599cf6db..08c826d9 100644
--- a/bilix/sites/bilibili/api.py
+++ b/bilix/sites/bilibili/api.py
@@ -326,6 +326,7 @@ class VideoInfo(BaseModel):
@staticmethod
def parse_html(url, html: str):
+ _, _, selected_page_num = parse_id... | 1 | 1 | 1 | [{"id": "G0", "claim": "The parse_html change from point 3 must be kept out: bilibili also has links without a bvid (documentaries, mobile share short links) that this parsing cannot handle, so revert it and keep the original default html parsing flow.", "category": "correctness", "verdict": "supported", "priority": "P... | null |
HIPS__autograd__315 | HIPS/autograd | 315 | defect | 809e1b2ba5d7b9d76a7e1a5b67a10089a9c9052a | aee0c817ed699448525bcd76ceaa6f0f8f4965ec | Implement VJPs for Poisson CDF and PMF | This PR implements VJPs for the Poisson CDF and PMF w.r.t. the rate parameter (`mu` in SciPy). | diff --git a/autograd/scipy/stats/__init__.py b/autograd/scipy/stats/__init__.py
index f34a22057..602c2c553 100644
--- a/autograd/scipy/stats/__init__.py
+++ b/autograd/scipy/stats/__init__.py
@@ -1,5 +1,6 @@
from __future__ import absolute_import
from . import norm
+from . import poisson
from . import t
# Try bl... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Poisson VJP tests fail when the mean parameter mu is very small (e.g. 0.00605613 on Travis CI) due to numerical instability near 0, so the mu parameter in the tests should be restricted to be greater than some small positive value (e.g. by adding a constant to the sampled values).", "categor... | null |
HKUDS__LightRAG__1703 | HKUDS/LightRAG | 1,703 | defect | c740401b7fc64e5d63d65450d57d043e61dc8d3b | c0a3638d011ab2b3df586fbc0aaf970d37aeee2c | Add Memgraph as a Supported Graph Database Backend. | <!--
Thanks for contributing to LightRAG!
Please ensure your pull request is ready for review before submitting.
About this template
This template helps contributors provide a clear and concise description of their changes. Feel free to adjust it as needed.
-->
## Description
This pull request adds sup... | diff --git a/README.md b/README.md
index 617dc5e6a6..2068f2055b 100644
--- a/README.md
+++ b/README.md
@@ -854,6 +854,41 @@ rag = LightRAG(
</details>
+<details>
+<summary> <b>Using Memgraph for Storage</b> </summary>
+
+* Memgraph is a high-performance, in-memory graph database compatible with the Neo4j Bolt prot... | 5 | 4 | 4 | [{"id": "G0", "claim": "The get_knowledge_graph function is not returning any edges and the reviewer asks that this be fixed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks that all edges be treated as undirected in all query funct... | null |
HKUDS__LightRAG__2346 | HKUDS/LightRAG | 2,346 | defect | 477c3f54fb347adcb445756e3b80cbc392d76025 | 6de4123f74e4309e7a0689b4aa8d140b361858f5 | Refactor: Optimize write_json for Memory Efficiency and Performance | # PR: Optimize write_json for Memory Efficiency and Performance
## 🎯 Problem Statement
The current `write_json` implementation in `lightrag/utils.py` creates a deep copy of all data for sanitization, leading to:
- **3x memory usage** (original data + shallow copy + deep copy for sanitization)
- **Repeated sa... | diff --git a/lightrag/kg/json_doc_status_impl.py b/lightrag/kg/json_doc_status_impl.py
index 014499f239..3a36f58cd7 100644
--- a/lightrag/kg/json_doc_status_impl.py
+++ b/lightrag/kg/json_doc_status_impl.py
@@ -161,7 +161,20 @@ async def index_done_callback(self) -> None:
logger.debug(
... | 3 | 3 | 3 | [{"id": "G0", "claim": "_migrate_legacy_cache_structure still calls write_json(migrated_data, ...) and discards the return value, leaving migrated_data (and self._data) with surrogate characters; when the legacy store contains invalid UTF-8 strings the file is sanitized but every later write encounters the same bad dat... | null |
HKUDS__LightRAG__2406 | HKUDS/LightRAG | 2,406 | defect | 5f53de886616b2ca226a9ecf17d8b37c43261505 | dfb51d2391bad9f677b2199c71fe399f3488bfd7 | feat: Update full-text index name to include workspace label for bett… | This pull request makes a small but important change to the naming convention for full-text indexes in the Neo4j implementation. The index name now includes the `workspace_label`, ensuring that each workspace has a uniquely named index and preventing potential naming conflicts.
- The `index_name` in the `_create_ful... | diff --git a/lightrag/kg/neo4j_impl.py b/lightrag/kg/neo4j_impl.py
index 256656d8e4..429aff96c6 100644
--- a/lightrag/kg/neo4j_impl.py
+++ b/lightrag/kg/neo4j_impl.py
@@ -230,7 +230,7 @@ async def _create_fulltext_index(
self, driver: AsyncDriver, database: str, workspace_label: str
):
"""Create ... | 2 | 2 | 2 | [{"id": "G0", "claim": "search_labels still calls db.index.fulltext.queryNodes with the hard-coded name entity_id_fulltext_idx while the index is now created as entity_id_fulltext_idx_{workspace_label}, so on newly created workspaces queries will throw IndexNotFound and always fall back to the slower CONTAINS-based pat... | null |
HKUDS__LightRAG__2411 | HKUDS/LightRAG | 2,411 | defect | 16eb0d5bee1489ace914540ab63743726b1774df | a05bbf105e3b7f996c3f60497b5146c7dbfb68f6 | feat: Add Cohere reranker config, chunking, and tests | <!--
Thanks for contributing to LightRAG!
Please ensure your pull request is ready for review before submitting.
About this template
This template helps contributors provide a clear and concise description of their changes. Feel free to adjust it as needed.
-->
## Description
This pull request introduc... | diff --git a/env.example b/env.example
index fea9995373..c841996172 100644
--- a/env.example
+++ b/env.example
@@ -102,6 +102,9 @@ RERANK_BINDING=null
# RERANK_MODEL=rerank-v3.5
# RERANK_BINDING_HOST=https://api.cohere.com/v2/rerank
# RERANK_BINDING_API_KEY=your_rerank_api_key_here
+### Cohere rerank chunking config... | 1 | 1 | 1 | [{"id": "G0", "claim": "The chunking loop must clamp or validate overlap_tokens so that start always advances; when max_tokens_per_doc is below the default overlap (e.g. 30 tokens with overlap 32), start becomes negative and the while loop never progresses, hanging the rerank call instead of returning aggregated scores... | null |
HKUDS__LightRAG__2562 | HKUDS/LightRAG | 2,562 | defect | 62c71a91287818dd6e69cc74fdb98bf4d5eff4d5 | 484e441d0ca19dba4817a75fa0167b46a4114985 | Fix: Enhance PostgreSQL Reconnection Tolerance for HA Deployments | ## Fix: Enhance PostgreSQL Reconnection Tolerance for HA Deployments
### Problem Statement
When deploying LightRAG with PostgreSQL in Kubernetes using high availability (HA) configurations (primary-replica replication), database switchovers caused service disruptions:
- **Large file uploads (>10MB) failed** du... | diff --git a/env.example b/env.example
index 894e7e85c4..b7e6b70f0f 100644
--- a/env.example
+++ b/env.example
@@ -403,13 +403,22 @@ POSTGRES_VCHORDRQ_PROBES=
POSTGRES_VCHORDRQ_EPSILON=1.9
### PostgreSQL Connection Retry Configuration (Network Robustness)
-### Number of retry attempts (1-10, default: 3)
-### Initia... | 1 | 1 | 1 | [{"id": "G0", "claim": "The db_config fixture still seeds connection retries with the old defaults (3 attempts, 0.5s backoff) even though ClientManager.get_config now defaults to 10 attempts with 3s backoff, so running the integration suite without overriding env vars exercises legacy non-HA settings and won't detect r... | null |
HKUDS__LightRAG__2663 | HKUDS/LightRAG | 2,663 | defect | c884d7dda261d82a92312fdae0028ad9fdde6fc3 | c75975099813c1bf59147aaf3853c2bef501051e | Postgress/pgvector backend now allows index large embeddings with HALFVEC | ## Description
When the embedding model has a size of more than 2000 dimensions (e.g., `text-embedding-3-large` with 3072d), the PostgreSQL `pgvector` plugin encounters an error when creating HNSW indexes: `column cannot have more than 2000 dimensions for hnsw index`.
This PR introduces support for `HALFVEC` (16-... | diff --git a/env.example b/env.example
index b9c2c04477..c387487f35 100644
--- a/env.example
+++ b/env.example
@@ -409,7 +409,10 @@ POSTGRES_MAX_CONNECTIONS=12
### Set to false to disable pgvector extension and vector operations when using PostgreSQL
### only for KV/Graph/DocStatus storage with a different vector bac... | 6 | 6 | 6 | [{"id": "G0", "claim": "The search SQL is still hard-coded to ::vector for relationships, entities and chunks, so queries are not adapted to halfvec and may fall back to a sequential scan or fail depending on operator/type compatibility.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i... | null |
HKUDS__LightRAG__2729 | HKUDS/LightRAG | 2,729 | defect | 6286eb76fa7bc02d2f2a0eedf049a7c04fba50ab | aa05f28bff1480e09b0c9888d3cdf7fefbb586b4 | perf: batch pre-compute query embeddings to eliminate sequential API round-trips | ## Summary
- Batch all needed embeddings (`query`, `ll_keywords`, `hl_keywords`) into a single `embedding_func()` call in `_perform_kg_search()`, replacing up to 3 sequential API round-trips
- Add `query_embedding` parameter to `_get_node_data()` and `_get_edge_data()` to accept pre-computed embeddings
- Add 4 unit te... | diff --git a/lightrag/operate.py b/lightrag/operate.py
index 91c6e0478a..c1cbcab3aa 100644
--- a/lightrag/operate.py
+++ b/lightrag/operate.py
@@ -3519,23 +3519,54 @@ async def _perform_kg_search(
# Track chunk sources and metadata for final logging
chunk_tracking = {} # chunk_id -> {source, frequency, order... | 2 | 2 | 2 | [{"id": "G0", "claim": "The batched embedding call runs without _priority=5, so local/global/hybrid query embeddings drop from interactive priority to default queue priority and user queries can be delayed behind background embedding work under concurrent indexing load.", "category": "performance", "verdict": "supporte... | null |
HKUDS__LightRAG__2733 | HKUDS/LightRAG | 2,733 | defect | 6286eb76fa7bc02d2f2a0eedf049a7c04fba50ab | 652ec92fd133aa824be234dcf21a64e0ee6274b7 | fix: reduce FaissVectorDBStorage meta.json file size by excluding vectors | ## Description
The `_save_faiss_index()` method was saving full vector embeddings (`__vector__`) in the meta.json file, even though the same vectors are already stored in the Faiss index file. This caused meta.json files to be extremely large (e.g., 7-11 MB). This change filters out `__vector__` during serialization a... | diff --git a/lightrag/kg/faiss_impl.py b/lightrag/kg/faiss_impl.py
index 4072c95dd2..c3ca254f3c 100644
--- a/lightrag/kg/faiss_impl.py
+++ b/lightrag/kg/faiss_impl.py
@@ -320,7 +320,18 @@ async def _remove_faiss_ids(self, fid_list):
new_id_to_meta = {}
for new_fid, old_fid in enumerate(keep_fids):
... | 2 | 2 | 2 | [{"id": "G0", "claim": "If index/meta files become inconsistent (e.g., partial write, crash during persistence, manual edits), metadata rows with fid >= index.ntotal kept by _load_faiss_index lack __vector__ while _remove_faiss_ids accesses vec_meta[\"__vector__\"] directly, which can raise KeyError during delete/upser... | null |
HKUDS__LightRAG__2864 | HKUDS/LightRAG | 2,864 | defect | ad1ba0764c5a8b5ef49fb03daa87bff04c18e2ad | 03ea5553a776be5ec49e01a9a0d97e41e1f3b26b | Feature/enhance entity extraction stability dev | <!--
Thanks for contributing to LightRAG!
Please ensure your pull request is ready for review before submitting.
About this template
This template helps contributors provide a clear and concise description of their changes. Feel free to adjust it as needed.
-->
## Description
This PR enhances entity ex... | diff --git a/env.example b/env.example
index 8017b77af1..d706c18ab0 100644
--- a/env.example
+++ b/env.example
@@ -188,9 +188,6 @@ SUMMARY_LANGUAGE=English
### Note: If using Nginx as reverse proxy, also configure client_max_body_size
# MAX_UPLOAD_SIZE=104857600
-### Entity types that the LLM will attempt to recogn... | 4 | 2 | 2 | [{"id": "G0", "claim": "The first entry in PROMPTS[\"entity_extraction_json_examples\"] is malformed (`{, \"entity_description\": ...`) and no longer contains a valid JSON object with an entities array, which as few-shot guidance in JSON mode can teach the model an invalid output shape and increase parse failures, drop... | null |
HKUDS__LightRAG__2869 | HKUDS/LightRAG | 2,869 | defect | 28197397fb4817e45579562fae592174469f1f39 | 8b8c8583161be4a091932637158456e197a24ff0 | fix(auth): reject default JWT secret when AUTH_ACCOUNTS is configured | ## Description
Reject insecure JWT configuration by requiring an explicit non-default `TOKEN_SECRET` whenever `AUTH_ACCOUNTS` is enabled, while preserving guest-mode token validation across workers and instances when password auth is disabled.
## Related Issues
N/A
## Changes Made
- Added startup validation in `li... | diff --git a/lightrag/api/auth.py b/lightrag/api/auth.py
index 748acccc7c..145f480f94 100644
--- a/lightrag/api/auth.py
+++ b/lightrag/api/auth.py
@@ -1,4 +1,5 @@
from datetime import datetime, timedelta
+import secrets
import jwt
from dotenv import load_dotenv
@@ -24,16 +25,21 @@ class TokenPayload(BaseModel):
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Generating TOKEN_SECRET with secrets.token_urlsafe(32) makes guest JWTs process-local, so in multi-worker deployments without an explicit TOKEN_SECRET, tokens issued by one process fail validation in another, causing intermittent 401s; the PR should use a deployment-stable fallback secret (or by... | null |
HKUDS__LightRAG__2900 | HKUDS/LightRAG | 2,900 | defect | 828d1c0130848381a5dc109c77eba0d0040f51db | aa7c4dcee3254dbe17b97d018949c8544e6014b1 | [claude-generated] fix(utils): prevent remove_think_tags from truncating responses with embedded <think> tags | ## Summary
- Fixes the `remove_think_tags` regex in `lightrag/utils.py` which caused false truncation of LLM responses when retrieved chunks contained `<think>` tags (issue #2895)
- The old regex `^(<think>.*?</think>|.*</think>)` with `re.DOTALL` would greedily match everything from the start of the string to the las... | diff --git a/lightrag/utils.py b/lightrag/utils.py
index e16f843842..87152b0d8c 100644
--- a/lightrag/utils.py
+++ b/lightrag/utils.py
@@ -1946,11 +1946,19 @@ async def update_chunk_cache_list(
def remove_think_tags(text: str) -> str:
- """Remove <think>...</think> tags from the text
- Remove orphon ...</th... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new orphan-prefix regex `^[^<]*</think>` only matches when no `<` appears before the first closing tag, so streaming leftovers like `\"2 < 3 reasoning</think>final answer\"` (or any reasoning containing HTML/XML/code) are no longer cleaned and leak pre-answer reasoning plus a raw `</think>` ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.