instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
apache__poi__1043
apache/poi
1,043
defect
b5d2426ca8c6879c4e84e4050f69d77d554e8772
0b12b54d7cbd4074f653caa223e807998697e420
decouple xlsb from xmlbeans
This attempts to decouple xmlbeans from xlsb. The one area of concern I have is the public api change: XSSFSheetXMLHandler.SheetContentsHandler.cell(String, String, XSSFComment) → cell(String, String, Comment) This is: * Source-compatible: Comment is a supertype of XSSFComment, so existing implementations ...
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java b/poi-examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java index d9fffabe48b..b6fc9e5cdc5 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java +++ b/...
1
1
1
[{"id": "G0", "claim": "The pull request breaks public API by changing method signatures from XSSFComment to Comment without deprecation; the author should keep the XSSFComment methods as deprecated overloads (with @Removal for v7.0.0 removal) and add @since 6.0.0 to the new Comment methods, except for methods that are...
null
apache__poi__1045
apache/poi
1,045
defect
b5d2426ca8c6879c4e84e4050f69d77d554e8772
93bcea9acd34acbd0a1d50f473e9aab81a9b0176
Reject invalid WMF unitsPerInch=0 to prevent infinite scaling
### Summary Reject invalid WMF files where `unitsPerInch = 0` to prevent unsafe scaling behavior. --- ### Problem `unitsPerInch` from the placeable WMF header is used as a divisor in scaling calculations. If it is `0`, this leads to: - Division by zero - Infinite dimensions - Potentially excessive image a...
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfPlaceableHeader.java b/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfPlaceableHeader.java index 82aba4b12d5..d87122cea22 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwmf/record/HwmfPlaceableHeader.java +++ b/poi-scratchp...
2
1
0
[{"id": "G0", "claim": "The constructor should declare RecordFormatException in its throws clause, now that the new validation throws it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new tests could be documented with what happens when the...
null
apache__poi__797
apache/poi
797
defect
fe0a4f11661162bb60753f17dee62023ec57b02d
f88af916a3e47072409121d3902d2bfc450a6de6
feat: Full color support in CellFormat expressions
This change adds full support for named and indexed color in cell format expressions by adding in the standard color palette to CellFormatPart, from where the formatting information is free to propagate down the stack. For strict format compatibility, only the 8 basic named colors and 56 indexed colors should be all...
diff --git a/poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java b/poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java index 990181baad1..8339e09bf4f 100644 --- a/poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java +++ b/poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java @@ ...
3
3
1
[{"id": "G0", "claim": "The pull request's new color-handling code should have its test coverage extended, and pjfanning stated it cannot be merged in its current state due to the absence of that coverage.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "...
null
apache__poi__920
apache/poi
920
defect
ea74954fcf756ec5714d53aa9b434655ffb30721
12e76a6e46439a8df1f02c64f21927e33a9187a5
New api for reading xlsb
This PR introduces a new API for reading data from xlsb files with their native types as opposed to the current methodology which returns everything as a formatted string. This is done via the introduction of a new callback handler XSSFBSheetContentsHandler which has typed callbacks. This change is backwards comp...
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/binary/XSSFBSheetHandler.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/binary/XSSFBSheetHandler.java index 7a242340468..885c466704c 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/binary/XSSFBSheetHandler.java +++ b/poi-ooxml/src/main/java/org/apach...
8
7
3
[{"id": "G0", "claim": "The new constructors should drop the `formulasNotResults` parameter, which is documented but not implemented.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The rename of the BrtFmlaError dispatch from handleFmlaError to handleCel...
null
apache__poi__952
apache/poi
952
defect
22ff9e34b654b5a56d427057b419cb445de2eb1e
75c31e7e56c30d55d3abfcb6d3a8710fc50a4ec0
Add XSSFOptimiser - XSSF equivalent of HSSFOptimiser
## Summary Adds `XSSFOptimiser` class to provide optimization methods for XSSF workbooks, equivalent to the existing `HSSFOptimiser` for HSSF workbooks. This addresses the common "style explosion" problem where programmatically created XSSF workbooks accumulate too many duplicate cell styles and fonts, causing: - Slo...
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFOptimiser.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFOptimiser.java new file mode 100755 index 00000000000..aa4183e6102 --- /dev/null +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFOptimiser.java @@ -0,0 +1,247...
2
2
1
[{"id": "G0", "claim": "The colorToString call must use the version of String.format that takes a Locale as input (Locale.ROOT is fine), because the no-Locale version is a forbidden API call.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Add `@sinc...
null
apache__poi__968
apache/poi
968
defect
e4e45826891aac6314058366189cfec14000cbe7
46e080e9e9c2d9cbbaccfb221bf3328b16ab3556
Add methods to manage first slide number(firstSlideNum)
<html> <body> <!--StartFragment--><html><head></head><body><h2 data-path-to-node="4" style="font-family: &quot;Google Sans&quot;, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">Feature(XSLF): Add Methods to Manage Custom Starting Slide Number</h2><p data-path-to-node="5" style="font...
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java index 63cea1a76ce..d758d2acf99 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java +++ b/poi-ooxml/src/main/java/org/apache/poi/...
2
2
0
[{"id": "G0", "claim": "Add `@since 6.0.0` to the Javadoc of all new public methods.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Keep the explicit static imports instead of replacing them with a wildcard import in the test file.", "category": "...
null
apache__poi__982
apache/poi
982
defect
4fb34ebeae0d200cd36c4fbf3b2496aef9988298
695304df0df1fb1d1794a0c0e1781d3d30c0a4be
Allow to load a word document with chartex chart
ChartEx (new charts introduced in Office 2016) will raise exceptions in underlying XML parsing, we catch them here in order to still be able to load the document. Sample doc attached that wont load otherwise [chart.docx](https://github.com/user-attachments/files/24249776/chart.docx)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/ooxml/POIXMLDocumentPart.java b/poi-ooxml/src/main/java/org/apache/poi/ooxml/POIXMLDocumentPart.java index 64ed50b4bdb..9b9a499a4cc 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/ooxml/POIXMLDocumentPart.java +++ b/poi-ooxml/src/main/java/org/apache/poi/ooxml/POI...
2
2
1
[{"id": "G0", "claim": "The new try/catch block in POIXMLDocumentPart.read should be properly formatted and use no tabs.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should include a unit test that loads the attached chartex d...
null
apache__poi__986
apache/poi
986
defect
e7515ba5e6915e2a8193b1b72d5d7a27ff79b172
2f846e6f00a1582ed55694fe113fca130aef92bf
XWPF Themes: allow public access of theme and add helpers for theme fonts
# Context I'd like to better support DOCX theme fonts, but currently they are inaccessible. For anyone interested, a run can define fonts either - directly `w:ascii="Times New Roman"` - indirectly via a theme for example `w:asciiTheme="majorBidi"` Currently the XWPFTheme doesn't expose major/minor fonts to res...
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFTheme.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFTheme.java index 735b930c88e..6d9a8d6b99f 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFTheme.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xwpf/user...
2
2
1
[{"id": "G0", "claim": "Add javadoc including at least an @since 6.0.0 tag to the new public methods.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add unit test coverage for the new theme methods.", "category": "testing", "verdict": "supported",...
null
apache__poi__991
apache/poi
991
defect
528591ba11849245b8ce12cefffe589d25d7f10a
b0d5d53b97a0fbf45598562937237fd04e2cd2ba
Add getter for body elements in XWPFSDTContent.
This getter allows to navigate the POI objects stored inside a XWPFSDTContent object without resorting to navigating XML.
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFSDTContent.java b/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFSDTContent.java index fc0bd3981f7..6ff7885c52a 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFSDTContent.java +++ b/poi-ooxml/src/main/java/org/apach...
3
3
1
[{"id": "G0", "claim": "The @since javadoc tag on the new getBodyElements method should say 6.0.0 instead of 5.5.2.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a space after the = in the test's try-with-resources line (doc = XWPFTestDataSam...
null
apache__polaris__3719
apache/polaris
3,719
defect
b324ad6278cc24a38d8b3c33debde925be2ea705
9e74975a0a10de4b467a729bee4deb7d1d6b04fd
[Iceberg 1.11] feat: add RegisterTable overwrite support; preserve correct auth for overwrites
Add support for the new overwrite boolean on RegisterTableRequest (default: false) so clients can register a metadata location that replaces an existing table pointer. Implement register-table overwrite semantics: - If overwrite=false (default): preserve existing behavior - attempting to register a table that alread...
diff --git a/integration-tests/src/main/java/org/apache/polaris/service/it/test/PolarisRestCatalogIntegrationBase.java b/integration-tests/src/main/java/org/apache/polaris/service/it/test/PolarisRestCatalogIntegrationBase.java index 9b1a96d87f8..2fdf09878d1 100644 --- a/integration-tests/src/main/java/org/apache/polari...
14
11
3
[{"id": "G0", "claim": "Replacing an existing table via the new overwrite flag is dangerous and should be guarded by a separate privilege, implemented as a new operation in PolarisAuthorizableOperation (TABLE_FULL_METADATA) so external PDPs work; failing that, the safest approach would be to initially error out when ov...
null
apache__polaris__3735
apache/polaris
3,735
defect
26ea0222a140c8de59becbb8cbf971ac166cfed6
fec74e2bb27a38a0cfda8993623b84b27af09565
Refactor PolarisConfiguration to provide a non-deprecated method for legacy properties.
Following up on the discussion from #3694: * Add non-public `legacyConfig()` for building `PolarisConfiguration` objects with support for legacy property names. Such properties are deprecated for end users, but Polaris code itself still needs to support them, therefore building `PolarisConfiguration` objects with...
diff --git a/polaris-core/src/main/java/org/apache/polaris/core/config/FeatureConfiguration.java b/polaris-core/src/main/java/org/apache/polaris/core/config/FeatureConfiguration.java index d352c95b722..25a7bf69f31 100644 --- a/polaris-core/src/main/java/org/apache/polaris/core/config/FeatureConfiguration.java +++ b/pol...
4
3
0
[{"id": "G0", "claim": "Rename the new builder method `legacyConfig` to `legacyCatalogConfig`, since it specifies a catalog-level config property.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The deprecation javadoc on `catalogConfigUnsafe` should poin...
null
apache__polaris__4006
apache/polaris
4,006
defect
55a4a5307f34b975058b2ce472bf1b7aa31169cc
86090bdedc06f3138cb64c36d69332f904f98b16
core: decouple rbac privileges and semantics from `PolarisAuthorizableOperations`
<!-- 📝 Describe what changes you're proposing, especially breaking or user-facing changes. 📖 See https://github.com/apache/polaris/blob/main/CONTRIBUTING.md for more. --> Refactoring to decouple RBAC specific privilege based authorization semantics from `PolarisAuthorizableOperations`. The PR includes a unit t...
diff --git a/polaris-core/src/main/java/org/apache/polaris/core/auth/PolarisAuthorizableOperation.java b/polaris-core/src/main/java/org/apache/polaris/core/auth/PolarisAuthorizableOperation.java index 318481709b4..a00a610713c 100644 --- a/polaris-core/src/main/java/org/apache/polaris/core/auth/PolarisAuthorizableOperat...
5
1
1
[{"id": "G0", "claim": "The record exposes mutable EnumSet instances shared via the static RBAC_SEMANTICS_BY_OPERATION map through its accessors, so a caller could mutate them and corrupt authorization semantics at runtime; make the privilege sets effectively immutable by defensively copying on construction and returni...
null
apache__polaris__4018
apache/polaris
4,018
defect
f059fdcbaf444376a819148da28c33fc6dc84fa0
8565b482740e4d5e562349e767bdc0499f8c9c21
[NoSQL] Ensure index elements with non-`null` values
Within the current implementation, it is possible that the iterators of the `Index` API return elements with `null` values. This may cause NPEs. This change enforces that index elements returned by the `Index` API iterators can never yield `null` values. The actual fix is in `IndexSpi` using the new iterator base cl...
diff --git a/persistence/nosql/persistence/api/src/main/java/org/apache/polaris/persistence/nosql/api/index/EmptyIndex.java b/persistence/nosql/persistence/api/src/main/java/org/apache/polaris/persistence/nosql/api/index/EmptyIndex.java index cda55ba7437..e35f327a820 100644 --- a/persistence/nosql/persistence/api/src/m...
6
4
1
[{"id": "G0", "claim": "IndexElem should be a record instead of a hand-written final class.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "IndexElem and AbstractIndexElement use different hashCode algorithms, so equal instances of the two classes can hav...
null
apache__polaris__4056
apache/polaris
4,056
defect
83200d53202b7b66071b873fc34e7e74d9124c26
10c547ba59eed0485f22e4aa514a50cfc1a4d4b7
Unify equals/hashCode for Index.Element
* Convert the old `IndexElem` class to the root of the `Index.Element` class hierarchy * Consolidate equals/hashCode logic for all sub-classes in `IndexElem` * Support `null` values via a `protected` method - not exposed to public API callers * Note: Internal index elements having `null` values are never actua...
diff --git a/persistence/nosql/persistence/api/build.gradle.kts b/persistence/nosql/persistence/api/build.gradle.kts index ff0d441897f..8711d6c332e 100644 --- a/persistence/nosql/persistence/api/build.gradle.kts +++ b/persistence/nosql/persistence/api/build.gradle.kts @@ -55,6 +55,8 @@ dependencies { compileOnly(lib...
1
1
0
[{"id": "G0", "claim": "The new equals() only matches instanceof IndexElem instead of any Index.Element (an intentional breaking change), and a comment should be added in IndexElem.java to document this so reviewers are not surprised.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "in...
null
apache__polaris__4071
apache/polaris
4,071
defect
b99857ab5492a01b21567d19b62e5d4686e70258
2f40d224e47fffd7b07608c84dae945762aff967
NoSQL: Optimize index-impl scratch-buffer reuse
The current implementation of reusing scratch `ByteBuffer`s is correct, but can become inefficient over time. It would also be immediately inefficient with virtual threads (which we're not using though). This change addresses the "pref regression over runtime" and the virtual-thread concern at the same time, while k...
diff --git a/persistence/nosql/persistence/impl/src/main/java/org/apache/polaris/persistence/nosql/impl/indexes/IndexImpl.java b/persistence/nosql/persistence/impl/src/main/java/org/apache/polaris/persistence/nosql/impl/indexes/IndexImpl.java index fed2b3399b1..e4a54789ed8 100644 --- a/persistence/nosql/persistence/imp...
1
1
1
[{"id": "G0", "claim": "The scratchPoolBounded test appears meaningless: acquires from a single thread always hit the same slot so every buffer is freshly allocated, releases overwrite the same slot, and the final pool-size assertion is trivially true — it is unclear how the test relates to the pool size at all.", "cat...
null
apache__polaris__4091
apache/polaris
4,091
defect
dddb3ec593913752f996ad67aa33b97fd75bd02a
0c9b8d56a20519207a0fa83261721200f109607c
Service: Make federation logic more explicit
Make federation logic more explicit instead of relying on checking on the object type. No logic change. ## Checklist - [x] 🛡️ Don't disclose security issues! (contact security@apache.org) - [x] 🔗 Clearly explained why the changes are needed, or linked related issues: Fixes # - [x] 🧪 Added/updated tests with go...
diff --git a/runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalogHandler.java b/runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalogHandler.java index 3b378c7d04d..0bc95877643 100644 --- a/runtime/service/src/main/java/org/apache/polaris/service/cata...
4
2
1
[{"id": "G0", "claim": "The new isNonFederated flag is hard to reason about and should be renamed (e.g. isFederated or isManaged) or have its branch polarity flipped so the positive case is checked first.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Mo...
null
apache__polaris__4214
apache/polaris
4,214
defect
fedcea225b706813359c2bcdb8b377a6eadc257a
a2abf50ec2291832537038abfc0e830cca1e4d12
Isolate encode/decode logic used in Polaris entities
This change replaces calls to `RESTUtil` in Polaris entity code when serializing or deserializing namespaces stored in internal properties. It replaces those calls with calls to a new utility class, `PolarisEntityUtils`. The logic used there for encoding and decoding namespaces is in fact identical to `RESTUtil` as ...
diff --git a/polaris-core/src/main/java/org/apache/polaris/core/entity/NamespaceEntity.java b/polaris-core/src/main/java/org/apache/polaris/core/entity/NamespaceEntity.java index e6e3276e54..86f61bf16c 100644 --- a/polaris-core/src/main/java/org/apache/polaris/core/entity/NamespaceEntity.java +++ b/polaris-core/src/mai...
4
4
1
[{"id": "G0", "claim": "Add assertions in the tests that PolarisEntityUtils' encode/decode results match RESTUtil.encodeNamespace/RESTUtil.decodeNamespace to ensure the existing logic is not broken, with the reviewer noting the parity check makes the most sense for decodeNamespace.", "category": "testing", "verdict": "...
null
apache__polaris__4233
apache/polaris
4,233
defect
c949236c43475746bf5bcd47f98cb5a8fc7f9c89
5328424f652aab0f2d265117100d5654352beb65
NoSQL: fix phantom grants for dropped/non-existent entities
The `loadGrants()` method never verified the anchor entity exists, always returning `SUCCESS` with a hardcoded version of 1. This violated the `PolarisGrantManager` contract which requires `ENTITY_NOT_FOUND` when the entity is missing, and allowed stale ACLs to surface as valid grants. Additionally, the bidirectiona...
diff --git a/persistence/nosql/persistence/metastore/src/main/java/org/apache/polaris/persistence/nosql/metastore/NoSqlMetaStore.java b/persistence/nosql/persistence/metastore/src/main/java/org/apache/polaris/persistence/nosql/metastore/NoSqlMetaStore.java index d3c928018e4..b3c08f1f91f 100644 --- a/persistence/nosql/p...
2
2
0
[{"id": "G0", "claim": "A dedicated test case should be added for the new self-referencing-entry skip in loadGrants, since the pull request's new tests may not cover it directly.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Self-grant calls to grantPr...
null
apache__polaris__4326
apache/polaris
4,326
defect
19e2bc62e291704b8e1a5abaf22b5e234e5cfc5e
2edceb6edbbf2d3cbda7811b54297f4dd761e3a6
feat: add SESSION_NAME_FIELDS_IN_SUBSCOPED_CREDENTIAL for configurable STS session names
Adds a new feature flag `SESSION_NAME_FIELDS_IN_SUBSCOPED_CREDENTIAL` that mirrors the design of `SESSION_TAGS_IN_SUBSCOPED_CREDENTIAL`, allowing operators to compose structured AWS STS role session names from an ordered list of context fields (realm, catalog, namespace, table, principal). Fields are joined with `'-...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f0b539f42ca..c23d136f551 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ request adding CHANGELOG notes for breaking (!) changes and possibly other secti ### New Features - Added `envFrom` support in Helm chart. - Added summarize subcommand to Polaris CLI...
10
8
1
[{"id": "G0", "claim": "The session-name prefix should be configurable by allowing users to enter a prefix-X token in the field list (defaulting to p-).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "SessionNameField does not have to be public and should...
null
apache__polaris__4396
apache/polaris
4,396
defect
8fc4150f79e81e8b0286b76c5685d4d6a07cf7be
8365a85f5fd3ad04dd4fc589abda0a6b7049fc63
Prevent client id collison during reset
<!-- 📝 Describe what changes you're proposing, especially breaking or user-facing changes. 📖 See https://github.com/apache/polaris/blob/main/CONTRIBUTING.md for more. --> Currently only root principal can perform principal reset (which contains both client id and client secret). The problem here is there is la...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5edd81ba7b5..433aa1ef9ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,7 @@ request adding CHANGELOG notes for breaking (!) changes and possibly other secti ### Changes - Removed unused `PolarisAuthorizableOperation` values: `REVOKE_PRINCIPAL_GRANT_FROM_PRINC...
7
6
5
[{"id": "G0", "claim": "The new collision test should live in a shared test class so that all backends are covered, not only the one backend PolarisAdminServiceTest exercises.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In the NoSQL backend, the byCl...
null
apache__polaris__4404
apache/polaris
4,404
defect
d3944673b3320f205a909cc67394366627bca01d
6958d273540cdc0231fc5150d1d08e1b38a5cb76
fix(rate-limiter): return Iceberg ErrorResponse JSON body on HTTP 429
## Motivation `RateLimiterFilter` previously returned HTTP 429 with an empty body and no `Content-Type` header: ```java ctx.abortWith(Response.status(Response.Status.TOO_MANY_REQUESTS).build()); ``` Iceberg REST clients (pyiceberg, Spark, and any third-party caller) cannot meaningfully parse this. The Iceber...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5edd81ba7b5..35260004f50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ request adding CHANGELOG notes for breaking (!) changes and possibly other secti ### Fixes - Fixed `renameTable` to return HTTP 204 (No Content) instead of 200, as per the Iceberg R...
3
1
0
[{"id": "G0", "claim": "The hard-coded 429 error type name \"RateLimitExceededException\" has no reference in the Iceberg Java code, so the reviewer asks whether it is significant and, if not, that it be a name aligned with Iceberg's exceptions.", "category": "design", "verdict": "supported", "priority": "P2", "scope":...
null
apache__pouchdb__5800
apache/pouchdb
5,800
defect
62c32d8365482bfbcb66f892e2c0748e698a6f1b
b3a88bd41909391d730756a36c8d1f8028955437
5793 - fixes for sync against Couchbase Sync Gateway
This adds a couple of tests around handling of `conflicts` in `allDocs` and `bulkDocs`, the latter of which I expect to fail against Couchbase Sync Gateway. It also tweaks the workaround added in #5767 to strip the `_conflicts` array from the `allDocs` response to prevent POSTing it to the server unnecessarily.
diff --git a/packages/node_modules/pouchdb-adapter-idb/src/allDocs.js b/packages/node_modules/pouchdb-adapter-idb/src/allDocs.js index 8d08a3cb0d..4b6e50d334 100644 --- a/packages/node_modules/pouchdb-adapter-idb/src/allDocs.js +++ b/packages/node_modules/pouchdb-adapter-idb/src/allDocs.js @@ -99,6 +99,9 @@ function id...
2
2
2
[{"id": "G0", "claim": "The added `if (!doc._conflicts.length) delete doc._conflicts` guard is unnecessary given the preceding `if (conflicts.length)` check, and the assign-only-when-non-empty pattern should be used in the other places too rather than setting `_conflicts` and deleting it when empty (which also causes t...
null
apache__pouchdb__5812
apache/pouchdb
5,812
defect
9fc98515983bd25f6abca9a61768bb17a9440649
ca3e918dbc22551a311abd963d5f7de867660cd8
Fix memleak in pouchdb-core
This partially fixes #4868 by removing existing memleak in pouchdb-core. This is a revised and expanded version of a previous PR. This PR contains: - the memleak testing code (which is otherwise available in [my memleak-test branch](https://github.com/shimaore/pouchdb/tree/memleak-test)), with self-test and pouchdb-cor...
diff --git a/.gitignore b/.gitignore index 7652144109..4f436b41f9 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ lib_unit src_browser/ lerna-debug.log tests/integration/utils-bundle.js +*.heapsnapshot diff --git a/package.json b/package.json index 5f31d6a469..33e1a4ee4b 100644 --- a/package.json +++ b/pa...
4
3
1
[{"id": "G0", "claim": "The change replacing `var args = Array.prototype.slice.call(arguments)` with an explicit loop copy (and the related arguments-leak changes) should be avoided and done separately unless it is actually involved in the memory leak.", "category": "design", "verdict": "supported", "priority": "P2", "...
null
apache__pouchdb__5940
apache/pouchdb
5,940
defect
9c22e28c5f4623b6d7296cef0e9c29e0ee8abcc1
dabb7336a79955ebed0920c1b5f675b1a7a316c6
(#5857) - latest=true support
* Add support for the `latest` parameter to `get()` and `bulkGet()` * Replicator uses `latest:true` when fetching specific revisions * `pouchdb-merge` now has a method to find the leaf node associated with a given rev. This isn't perfect but matches the behaviour of CouchDB 1.6. I have a slight concern about push ...
diff --git a/docs/_includes/api/fetch_document.html b/docs/_includes/api/fetch_document.html index 45a5b71cd4..ae0636203c 100644 --- a/docs/_includes/api/fetch_document.html +++ b/docs/_includes/api/fetch_document.html @@ -20,6 +20,7 @@ * `options.binary`: Return attachment data as Blobs/Buffers, instead of as base6...
2
2
1
[{"id": "G0", "claim": "There is a true failure in the WebSQL adapter, with both node-websql and phantomjs failing in this PR's CI run.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Add a test that hits the bulk_get latest params line in the http a...
null
apache__pouchdb__6047
apache/pouchdb
6,047
defect
620d987a875542f9b0eec58573f9ed85c30bc00f
bbef5ce30a77d2d89613cda5842f03f936ade311
(#6039) - include id in all bulk_docs results
CouchDB already includes an id field for each result in a `_bulk_docs` response. For non-http adapters, ensure we do the same. It seems simpler to do this in the core adapter code rather than patch up each individual storage engine.
diff --git a/packages/node_modules/pouchdb-core/src/adapter.js b/packages/node_modules/pouchdb-core/src/adapter.js index 64965611ef..1885294c46 100644 --- a/packages/node_modules/pouchdb-core/src/adapter.js +++ b/packages/node_modules/pouchdb-core/src/adapter.js @@ -826,7 +826,8 @@ AbstractPouchDB.prototype.bulkDocs = ...
1
1
1
[{"id": "G0", "claim": "The new test should check that the conflict result's id equals the expected document id rather than only asserting its existence with should.exist().", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__pouchdb__6339
apache/pouchdb
6,339
defect
cfd20e2b383ed88856bc2f2c0477e22552513891
29f433ec859998ec3c7e66c6132e012d5b12b707
Selector support for `changes()`
As a precursor to supporting selectors in replication, add support for filtering _changes using a selector. Note that this doesn't work in CouchDB 1.x which predates the find/selector feature. The bulk of this involves splitting out the core selector logic from the pouchdb-find plugin into a new module, pouchdb-sele...
diff --git a/docs/_includes/api/changes.html b/docs/_includes/api/changes.html index 3b4d0cc01a..2ea15cc530 100644 --- a/docs/_includes/api/changes.html +++ b/docs/_includes/api/changes.html @@ -30,6 +30,7 @@ * `options.doc_ids`: Only show changes for docs with these ids (array of strings). * `options.query_params`: ...
1
1
1
[{"id": "G0", "claim": "A `_view` filter (or any filter set alongside it) takes precedence over a mango selector, with no validation, and the reviewer questions whether CouchDB 2.0 treats it the same way.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__pouchdb__6497
apache/pouchdb
6,497
defect
0c4fe87b4345d11e44ff07519274285342154ecd
7e99eb010538b1f8ba8c2ba3d9550819204bb1ed
Add use index
This fixes #6495 and #6452
diff --git a/docs/_guides/mango-queries.md b/docs/_guides/mango-queries.md index 8f6a0800b3..3a191060c4 100644 --- a/docs/_guides/mango-queries.md +++ b/docs/_guides/mango-queries.md @@ -5,7 +5,7 @@ title: Mango queries sidebar: guides_nav.html --- -Mango queries, also known as `pouchdb-find` or the `find()` API, a...
3
2
1
[{"id": "G0", "claim": "The new Explain API doc misspells \"Explain\" as \"Explai\" in \"Explai the query plan for a given query\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In docs/_guides/mango-queries.md the text says to use the explain en...
null
apache__pouchdb__6529
apache/pouchdb
6,529
defect
9f84af1f20af8ca423f3c35315b7180125e04ca3
4542c8a4690a134138a7c750e80c7e192778ae01
Include doc ID in 404 (not_found) errors for IDB adapter
Adds a property `docId` to not_found error when trying to get an individual doc in the IDB adapter. As posted on the issue: > It doesn't really feel like the correct place to be fixing this, so if anyone's got any guidance it would be appreciated. This patch took me less time to write than I spent debugging an ap...
diff --git a/packages/node_modules/pouchdb-adapter-http/src/index.js b/packages/node_modules/pouchdb-adapter-http/src/index.js index 0473dc34dd..aa065856cd 100644 --- a/packages/node_modules/pouchdb-adapter-http/src/index.js +++ b/packages/node_modules/pouchdb-adapter-http/src/index.js @@ -498,7 +498,10 @@ function Htt...
4
3
3
[{"id": "G0", "claim": "The fix should not live only in the idb adapter; PouchDB aims for consistent behavior across all adapters, so the change should be placed (as suggested) in pouchdb-core's adapter.js so it works for every adapter.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear...
null
apache__pouchdb__6544
apache/pouchdb
6,544
defect
ae989d8de27b7ad27c72f90debb3bdff589aed49
a979f49c6c84a5dbad60d85e49d0b2d8a9e60255
(#5490) include doc ID in conflict errors
Adds a property `suppliedDocId` to conflict error when trying to put or post an individual doc.
diff --git a/packages/node_modules/pouchdb-adapter-http/src/index.js b/packages/node_modules/pouchdb-adapter-http/src/index.js index 90cde06678..7a0e814596 100644 --- a/packages/node_modules/pouchdb-adapter-http/src/index.js +++ b/packages/node_modules/pouchdb-adapter-http/src/index.js @@ -659,6 +659,7 @@ function Http...
2
2
0
[{"id": "G0", "claim": "It would be an improvement to rename the error property `err.suppliedDocId` (here) and `err.requestedDocId` (in #6529) to `err.docId`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the console.log debugging statements left...
null
apache__pouchdb__6815
apache/pouchdb
6,815
defect
4bd9c087402102994f6cec6bfc54caaebafffb25
93cd9514d700ed5e97c46d8494a0f9a20b2d3236
(#6814) - Add support to store cookies on Node.js
On Node.js, PouchDB does not hold a cookie jar for cookies received from server during authentication. It uses the request Node.js module to make HTTP requests but it does not configure it correctly to hold a cookie jar. This PR adds the minimal required configuration for the request module. Fixes #6814.
diff --git a/packages/node_modules/pouchdb-ajax/src/request.js b/packages/node_modules/pouchdb-ajax/src/request.js index 92c1697cdd..6e8623529d 100644 --- a/packages/node_modules/pouchdb-ajax/src/request.js +++ b/packages/node_modules/pouchdb-ajax/src/request.js @@ -1,3 +1,5 @@ // May seem redundant, but this is to al...
1
1
0
[{"id": "G0", "claim": "The new cookie test in tests/integration/test.ajax.node.js is not an integration test and should have the `adapters` loop removed and be moved into /tests/components/.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__pouchdb__6833
apache/pouchdb
6,833
defect
31d609e51e3c9abcbc53a8be5986a9bb5e35a4ff
b34bd432f5699da8e56ab9f5ef0c581afa7d60ed
#6230 add missing update_seq option to allDocs() and query()
Closes #6230 Adds the missing `update_seq` option to the `allDocs()` and `query()` api's. i.e. You can now: ```javascript db.allDocs({update_seq: true}).then(result => { // result.update_seq is set correctly } db.query({update_seq: true}).then(result => { // result.update_seq is set correctly ...
diff --git a/docs/_includes/api/batch_fetch.html b/docs/_includes/api/batch_fetch.html index e7626c54d2..61bc888b50 100644 --- a/docs/_includes/api/batch_fetch.html +++ b/docs/_includes/api/batch_fetch.html @@ -26,6 +26,7 @@ - The row for a deleted document will have the revision ID of the deletion, and an extra k...
2
2
1
[{"id": "G0", "claim": "The test skips for pouchdb-server (and the isPouchServer/istanbul-ignore workarounds) should not be needed once pouchdb-server supports update_seq, and a follow-up should get that support and delete them.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
apache__pouchdb__6958
apache/pouchdb
6,958
defect
77380abf3474370cd63ea59a2f20aa86eb096f94
f90660de998b5bf1c0c0ffb91c7c1670578cabf5
fix find index with zero as values
I found an issue with find indexes if the value of the indexed fields is zero. The if condition is only if (!value) which is true with 0 and therefore no value is emitted. I also added a test for testing null values because they should also be allowed, but since I haven't figured out how I run tests on Windows I have...
diff --git a/packages/node_modules/pouchdb-find/src/adapters/local/abstract-mapper.js b/packages/node_modules/pouchdb-find/src/adapters/local/abstract-mapper.js index 24c9228fd8..46ff5eb1d2 100644 --- a/packages/node_modules/pouchdb-find/src/adapters/local/abstract-mapper.js +++ b/packages/node_modules/pouchdb-find/src...
2
2
2
[{"id": "G0", "claim": "The new 'handles zero as a valid index value' test doesn't return a promise and merely calls db.createIndex() as a side effect, creating race conditions that cause spurious test errors.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
apache__pouchdb__7136
apache/pouchdb
7,136
defect
64894da8f09d46da999f8d9069b7b4338b80b1cb
ba488b44ca73c8d422f120c249535b5da1921d24
Deterministic revision numbers with md5
This uses md5 to create the the revision number for a document. This means that each document will have a deterministic revision nubmer. This makes client side conflict resolution easier and will reduce the number of conflicts By default this is turned on, but a user can fallback to generating random revision nu...
diff --git a/packages/node_modules/pouchdb-adapter-idb/src/bulkDocs.js b/packages/node_modules/pouchdb-adapter-idb/src/bulkDocs.js index 3e0bf3acdb..cda8126062 100644 --- a/packages/node_modules/pouchdb-adapter-idb/src/bulkDocs.js +++ b/packages/node_modules/pouchdb-adapter-idb/src/bulkDocs.js @@ -45,7 +45,7 @@ functio...
3
3
0
[{"id": "G0", "claim": "The new test file uses ES6 (const/let) which PouchDB does not use yet, so it should stick to var for the moment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new option should be named deterministic_revs - snake cas...
null
apache__pouchdb__7411
apache/pouchdb
7,411
defect
4c250ac5f5811179c41ef1301fdc36c0c2a94bdb
5f7b1db9f3ce92758fedba5d6ffd4746daf87f53
Add some find perf tests
There is probably a lot more interesting stuff we can do here. These follow the level of complexity that existing perf tests look to have, and try to keep their run times reasonably low while testing useful things. This is some pre-amble work before implementing find for idbnext (the 'indexeddb' adapter, as oppo...
diff --git a/tests/performance/index.html b/tests/performance/index.html index 7e0c3768b4..e50a18b613 100644 --- a/tests/performance/index.html +++ b/tests/performance/index.html @@ -6,8 +6,8 @@ <body> <pre style="width: 100%; height: 100%;" id="output"></pre> <script src="/packages/node_modules/pouchdb/di...
3
2
1
[{"id": "G0", "claim": "The 'attachments' argument passed to utils.runTests in tests/performance/perf.attachments.js may be a bad copy/paste rather than intentional.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add another perf.find test case like...
null
apache__pouchdb__7830
apache/pouchdb
7,830
defect
2baed7c4b79afb71ae78fde62a1a8cf349890b15
97607486010bd87baad8692080e5b5aebd3e6958
Don't require an opaque string in the rev
This aims to fix #7829. PouchDB has a rev-validating regular expression in two places, and they don't match. This makes them match. packages/node_modules/pouchdb-adapter-utils/src/parseDoc.js-49- if (!/^\d+-./.test(rev)) { packages/node_modules/pouchdb-adapter-utils/src/parseDoc.js:50: return creat...
diff --git a/packages/node_modules/pouchdb-adapter-utils/src/parseDoc.js b/packages/node_modules/pouchdb-adapter-utils/src/parseDoc.js index d327738e54..b0c345d605 100644 --- a/packages/node_modules/pouchdb-adapter-utils/src/parseDoc.js +++ b/packages/node_modules/pouchdb-adapter-utils/src/parseDoc.js @@ -46,7 +46,7 @@...
1
1
1
[{"id": "G0", "claim": "The rev-parsing change should come with a test, ideally copied from test.bulk_docs.js and made to write a previously failing rev, so a later refactor cannot silently break it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__pouchdb__8165
apache/pouchdb
8,165
defect
e490d46624fc889365e07f7106ce0ea5d7f8053a
dc3ceb32d225454d48e240cb665ca5f116a24e86
Initial dollar sign escaped with unit tests.
I am not sure if I have done everything properly, please let me know. The unit test does not work when using pouchdb-server, but I suspect this is a difference between pouchdb-server and the real couchdb.
diff --git a/packages/node_modules/pouchdb-selector-core/src/utils.js b/packages/node_modules/pouchdb-selector-core/src/utils.js index 86a24cc05c..4b6c98aa00 100644 --- a/packages/node_modules/pouchdb-selector-core/src/utils.js +++ b/packages/node_modules/pouchdb-selector-core/src/utils.js @@ -33,13 +33,13 @@ function ...
1
1
0
[{"id": "G0", "claim": "The clause added for escaping `$` duplicates the existing `.` clause just above it, so a single bit of code should probably handle the escaping for both situations.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__pouchdb__8202
apache/pouchdb
8,202
defect
e490d46624fc889365e07f7106ce0ea5d7f8053a
9b737813e6666ac9f6a3c375d1c82004c0f8a853
(#8185) - RangeError: invalid date
I got the following error, when using bulkDocs with data I don't control: RangeError: invalid date. My current use case is importing data from mariadb; where some date fields have zeros: ''0000-00-00'. The error triggers when calling the Date.toISOString funciton. Because it throws and error, the entire bulk...
diff --git a/packages/node_modules/pouchdb-utils/lib/index.js b/packages/node_modules/pouchdb-utils/lib/index.js new file mode 100644 index 0000000000..26d7b31c2e --- /dev/null +++ b/packages/node_modules/pouchdb-utils/lib/index.js @@ -0,0 +1,765 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value...
4
3
3
[{"id": "G0", "claim": "Supporting '0000-00-00' dates appears to give no value since MySQL 5.7 and JavaScript treat them as invalid, so the PR should justify or drop that support.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Lint errors (missing semicolo...
null
apache__pouchdb__8277
apache/pouchdb
8,277
defect
7532eb30f514d37b94f829ed22e70da7f3c1ed3a
37f134f41e07c48261be7b2d87a7f0bfecf88900
feat: support partial_filter_selector
This PR closes https://github.com/pouchdb/pouchdb/issues/8276 by modifying the abstract mapper used by pouchdb-find so that it will apply a partial_filter_selector at index time if one is present. - [x] Includes tests. - [x] Updates documentation.
diff --git a/packages/node_modules/pouchdb-find/README.md b/packages/node_modules/pouchdb-find/README.md index 04940c7c03..b2e364ad3f 100644 --- a/packages/node_modules/pouchdb-find/README.md +++ b/packages/node_modules/pouchdb-find/README.md @@ -12,9 +12,7 @@ Eventually this will replace PouchDB's map/reduce API entir...
4
3
3
[{"id": "G0", "claim": "The PR's CI test failures are caused by the PR itself (the new tests never return their promises, so they do not wait for the operations they check) and must be fixed before the PR can merge.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G...
null
apache__pouchdb__8321
apache/pouchdb
8,321
defect
ef0a2c6b25bb556ae7126e684acbdf0365225763
ba1f4c973505bf41a61c95d1b97b9b6ce51f09ec
Add an indexing event to show progress of view updates
The motivation behind this PR is to show progress of view updates during the indexing. This PR is related to @chrisekelley 's [fork](https://github.com/chrisekelley/pouchdb/pull/1). Our goal is to extract and provide test for these functionalities. In this PR: - Add emit event `indexing` inside the package `pouchd...
diff --git a/packages/node_modules/pouchdb-abstract-mapreduce/src/index.js b/packages/node_modules/pouchdb-abstract-mapreduce/src/index.js index 1a80b9d651..ec89580557 100644 --- a/packages/node_modules/pouchdb-abstract-mapreduce/src/index.js +++ b/packages/node_modules/pouchdb-abstract-mapreduce/src/index.js @@ -512,6...
3
1
0
[{"id": "G0", "claim": "New tests should use await (async/await syntax) instead of callbacks and done.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It seems a brittle assumption that the indexing events are guaranteed to fire by the time bulkDocs and ...
null
apache__pouchdb__8324
apache/pouchdb
8,324
defect
8b3ed08952b314236b1c7ce0f87abeca27478d6f
a30de4d6cc864adb057c5cef9ef16ba517554672
Add checkpoint events during replication
The motivation behind this PR is to emit checkpoint events during the replication process. This PR is related to @chrisekelley 's [fork](https://github.com/chrisekelley/pouchdb/pull/1). Our goal is to extract and provide test for these functionalities. In this PR: - Add emit event `checkpoint` inside the package `...
diff --git a/.eslintrc.json b/.eslintrc.json index fc56bf127d..58efa456c9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -3,7 +3,7 @@ "extends": "eslint:recommended", "parserOptions": { - "ecmaVersion": 6, + "ecmaVersion": 8, "sourceType": "module" }, diff --git a/packages/node_modules/pouc...
1
1
0
[{"id": "G0", "claim": "The new 'diffing' checkpoint event payload key should be named 'revs_diff', since that is what the CouchDB API for this is called.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__pouchdb__8441
apache/pouchdb
8,441
defect
b1742b1d9373f19d0ad070779839a9d033f2b39d
bcaeeccc2441333bb76605ee544eefb3107c316a
activeTasks API
This PR brings an implementation of the activeTasks API sketched in https://github.com/pouchdb/pouchdb/issues/8422, similar to what the `_active_tasks` API does for CouchDB. Further discussion can also be found in our development PR, https://github.com/neighbourhoodie/pouchdb/pull/8. ### Long-running tasks We m...
diff --git a/packages/node_modules/pouchdb-abstract-mapreduce/src/index.js b/packages/node_modules/pouchdb-abstract-mapreduce/src/index.js index fb55c5d18c..e6bd3be09c 100644 --- a/packages/node_modules/pouchdb-abstract-mapreduce/src/index.js +++ b/packages/node_modules/pouchdb-abstract-mapreduce/src/index.js @@ -491,6...
3
2
1
[{"id": "G0", "claim": "The new activeTasks API should be documented under docs/ so the feature becomes release-ready.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Assigning the same ActiveTasks instance to both the static `PouchDB.activeTasks` ...
null
apache__pouchdb__8603
apache/pouchdb
8,603
defect
2b05059497ff0e05b9cab7fd8765ac1432139177
42cc8531e64fca8276c744caa6428000e74d5d05
indexeddb: improve allDocs() perf with skip & key ranges
This improves `pouchdb-adapter-indexeddb` performance for key ranges by: * adding a new index (`[deleted, id]`) to allow for skipping deleted docs by default * moving `_local/` docs to the `META_STORE` to simplify `allDocs()` implementation # TODO * [x] batching in `allDocs()` * [x] add `_getLocal()` impleme...
diff --git a/packages/node_modules/pouchdb-adapter-indexeddb/src/allDocs.js b/packages/node_modules/pouchdb-adapter-indexeddb/src/allDocs.js index 9d07595569..c76579f602 100644 --- a/packages/node_modules/pouchdb-adapter-indexeddb/src/allDocs.js +++ b/packages/node_modules/pouchdb-adapter-indexeddb/src/allDocs.js @@ -2...
9
7
3
[{"id": "G0", "claim": "The `basic-updates` benchmark result stands out from the rest and the reviewer asks the author what is going on there.", "category": "performance", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use `isLocalId()` from 'pouchdb-adapter-utils' instead of h...
null
apache__pouchdb__8771
apache/pouchdb
8,771
defect
eafc0f148ea4cc4979f455c0dba198e5abaf8b9c
c5e103e32f0ce4e8e510726aaa867d3479665615
indexeddb.getAttachments(): reduce selects from N+1
This one weird trick (probably) improves perf by quite a bit.
diff --git a/packages/node_modules/pouchdb-adapter-indexeddb/src/getAttachment.js b/packages/node_modules/pouchdb-adapter-indexeddb/src/getAttachment.js index 8bf00b5cbc..b12e590418 100644 --- a/packages/node_modules/pouchdb-adapter-indexeddb/src/getAttachment.js +++ b/packages/node_modules/pouchdb-adapter-indexeddb/sr...
1
1
0
[{"id": "G0", "claim": "The fourth parameter already has the corresponding attachment (stub) data, so the code should use it rather than looking up the digest from doc.revs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__pouchdb__9108
apache/pouchdb
9,108
defect
e2fb0720e0075f7608e5b4ffd65382749135eadf
4b94a9e5d792397db22bc1450f97b49a45b9a8e0
feat(pouchdb-mapreduce): (#9104) - enable _stats reducer to digest arrays of numbers
The builtin _sum reducer properly handles numbers AND arrays of numbers, returning an array of sums. In couchdb, this is also true for the _stats reducer, which returns an array of stats objects.
diff --git a/packages/node_modules/pouchdb-mapreduce/src/index.js b/packages/node_modules/pouchdb-mapreduce/src/index.js index bd0a8fd78a..947aad425e 100644 --- a/packages/node_modules/pouchdb-mapreduce/src/index.js +++ b/packages/node_modules/pouchdb-mapreduce/src/index.js @@ -1,5 +1,6 @@ import evalFunction from './...
4
4
1
[{"id": "G0", "claim": "The new stats.js should not mix tab and space indentations.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new tests added to test.mapreduce.js should use space indentations like the rest of the file.", "category": "style", "ve...
null
apache__pulsar-client-go__1052
apache/pulsar-client-go
1,052
defect
43986b16a90fee6306c95dd23ba30690300d53b5
f9498e058638f14c048954f08162bacecaaa5114
[Fix][Producer] Stop block request even if Value and Payload are both set
<!-- ### Contribution Checklist - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number. Skip *Issue XYZ* if there is no associated github issue for this pull request. Skip *component* if you are unsure about...
diff --git a/pulsar/producer_partition.go b/pulsar/producer_partition.go index 03729abb47..97eab8bac8 100755 --- a/pulsar/producer_partition.go +++ b/pulsar/producer_partition.go @@ -481,11 +481,6 @@ func (p *partitionProducer) internalSend(request *sendRequest) { var schemaPayload []byte var err error - if msg.V...
1
1
1
[{"id": "G0", "claim": "Add a test covering the pull request's changed behavior (a message with both Value and Payload set is now rejected in internalSendAsync instead of internalSend).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__pulsar-client-go__1053
apache/pulsar-client-go
1,053
defect
43986b16a90fee6306c95dd23ba30690300d53b5
e5a846427062bb8e701617e2bb8c19f1c993bb95
[fix] [issue 877] Fix ctx in partitionProducer.Send() is not performing as expected
Fixes #877 ### Motivation The original PR is #878. Because the original author @billowqiu has not continued to reply to the review comments for a long time, resubmit the fix here. ### Modifications - Add select for ctx and doneCh in partitionProducer.Send() ### Verifying this change - [x] Make sure t...
diff --git a/pulsar/producer_partition.go b/pulsar/producer_partition.go index 03729abb47..dd45ff249b 100755 --- a/pulsar/producer_partition.go +++ b/pulsar/producer_partition.go @@ -1095,9 +1095,13 @@ func (p *partitionProducer) Send(ctx context.Context, msg *ProducerMessage) (Mes }, true) // wait for send reque...
1
1
1
[{"id": "G0", "claim": "Add a test covering the changed context-cancellation behaviour of partitionProducer.Send().", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__pulsar-client-go__1055
apache/pulsar-client-go
1,055
defect
43986b16a90fee6306c95dd23ba30690300d53b5
b2195766cb7e10bf8bb6fed60630c4c1301863df
[fix] [issue 1051]: Fix inaccurate producer mem limit in chunking and schema
Fixes #1051 ### Motivation The producer memory limit have some problem when `EnableChunking=true` or `Schema` is set. - When `Schema` is set, the actual message payload is `msg.Value`. The `len(msg.Payload)` may be 0 and memory can not be reserved acurate. https://github.com/apache/pulsar-client-go/blob/be3574...
diff --git a/pulsar/producer_partition.go b/pulsar/producer_partition.go index 03729abb47..772bdf5ca5 100755 --- a/pulsar/producer_partition.go +++ b/pulsar/producer_partition.go @@ -477,7 +477,6 @@ func (p *partitionProducer) internalSend(request *sendRequest) { // read payload from message uncompressedPayload :...
7
3
0
[{"id": "G0", "claim": "The required resources (semaphores/memory, caching the compressed payload and meta in the sendRequest while calculating) should be calculated before a request is put into the dataChan, failing fast when there is not enough, so that the `sendRequest.blockCh` field can be deleted and requests need...
null
apache__pulsar-client-go__1059
apache/pulsar-client-go
1,059
defect
9867c29ca329302e97ddd9c6a99f66853c7f447f
d1220264ee4a6ce76306b9b7cd003c1323d296b5
[Fix][producer] Fail all messages that are pending requests when closing like java
Fixes #1042 , link #1057 ### Motivation producer not fail all messages that are in the pending queue when closing ### Modifications add `failPendingMessages()` to fail the pending requests when closing producer ### Does this pull request potentially affect one of the following parts: *If `yes` was cho...
diff --git a/pulsar/internal/connection.go b/pulsar/internal/connection.go index 1f80d20d33..e840135f1c 100644 --- a/pulsar/internal/connection.go +++ b/pulsar/internal/connection.go @@ -84,6 +84,7 @@ type Connection interface { ID() string GetMaxMessageSize() int32 Close() + FailPendingRequests(err error) bool ...
4
3
2
[{"id": "G0", "claim": "dataChan should be cleared in internalFlush, because internalFlush should guarantee flushing all the messages in dataChan, and internalClose can just invoke internalFlush to clear dataChan.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "pre_existing"}, {"id": "G1"...
null
apache__pulsar-client-go__1087
apache/pulsar-client-go
1,087
defect
41093516af21cf2238e11532d877e1aab73f95bf
06feb849915cc933002e03c588d7ba87fc755705
[improve][client] Implement GetLastMSgID for Reader
### Motivation Implement the GetLastMSgID API for Reader. ### Verifying this change - [ ] Make sure that the change passes the CI checks. *(Please pick either of the following options)* This change is a trivial rework / code cleanup without any test coverage. *(or)* This change is already covered by ...
diff --git a/pulsar/reader.go b/pulsar/reader.go index d58d06f6fe..d4d1762efb 100644 --- a/pulsar/reader.go +++ b/pulsar/reader.go @@ -134,4 +134,7 @@ type Reader interface { // the message publish time where to reposition the subscription // SeekByTime(time time.Time) error + + // GetLastMSgID get the...
2
2
1
[{"id": "G0", "claim": "The new public API name is misspelled: rename GetLastMSgID (and fix the doc comment that repeats it) to GetLastMessageID for consistency with other clients.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be a...
null
apache__pulsar-client-go__1128
apache/pulsar-client-go
1,128
defect
bea85d44eb4d55e9d0cec68219c219ac9fa349f1
21d9b7b0825f9a7ab746c8a95f8f5c927c37817f
When topic is terminated. Client must not retry connecting to broker.
### Motivation GoLang Pulsar client library has no support for Topic termination. When a topic is terminated following should happen at client library side. 1. Producers should stop reconnecting. As once topic is terminated, it is permanent. 2. All the pending messages should be failed. ### Modifications If...
diff --git a/pulsar/producer_partition.go b/pulsar/producer_partition.go index 922d89dbb9..3040826acd 100644 --- a/pulsar/producer_partition.go +++ b/pulsar/producer_partition.go @@ -421,6 +421,27 @@ func (p *partitionProducer) reconnectToBroker() { break } + if strings.Contains(errMsg, "TopicTerminatedError"...
2
2
2
[{"id": "G0", "claim": "On the topic-terminated path the pending send requests should be completed via sr.done() instead of calling sr.callback() directly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be added to verify the topic-term...
null
apache__pulsar-client-go__1143
apache/pulsar-client-go
1,143
defect
bd11581867c88f93e4b6f247d82914f9eb4ee476
0aec067e26da5e3bcf0f716fa7125ecd51218b51
[Improve][Producer] normalize and export the errors
<!-- ### Contribution Checklist - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number. Skip *Issue XYZ* if there is no associated github issue for this pull request. Skip *component* if you are unsure about whi...
diff --git a/Makefile b/Makefile index 4eb590b06b..34c3e82e96 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ IMAGE_NAME = pulsar-client-go-test:latest PULSAR_VERSION ?= 2.10.3 PULSAR_IMAGE = apachepulsar/pulsar:$(PULSAR_VERSION) -GO_VERSION ?= 1.18 +GO_VERSION ?= 1.20 GOLANG_IMAGE = golang:$(GO_VERSION) ...
5
5
2
[{"id": "G0", "claim": "The Go version bump to 1.20 (Makefile and go.mod) should be reverted and done in a separate PR, because keeping it here breaks the CI and the compatibility with older Go versions.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Err...
null
apache__pulsar-client-go__1178
apache/pulsar-client-go
1,178
defect
2a28e21c59d005515e118fed5bf8f333d6699e39
99d40a0f94ef734fda604e4e30dec7ca00345653
[feat] Support partitioned topic reader
<!-- ### Contribution Checklist - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number. Skip *Issue XYZ* if there is no associated github issue for this pull request. Skip *component* if you are unsure about whi...
diff --git a/pulsar/consumer.go b/pulsar/consumer.go index 667bff66cd..fea94cf6a3 100644 --- a/pulsar/consumer.go +++ b/pulsar/consumer.go @@ -246,6 +246,13 @@ type ConsumerOptions struct { // SubscriptionMode specifies the subscription mode to be used when subscribing to a topic. // Default is `Durable` Subscrip...
1
1
0
[{"id": "G0", "claim": "The consumer's hasNext() could return early as soon as any one partition consumer reports it has a next message, instead of waiting for all partition goroutines to finish.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__pulsar-client-go__1182
apache/pulsar-client-go
1,182
defect
3b9b1f8895d8924ec98db4612806b9871f1d135b
27f1523de4be34601dfee68e4f4489a3cdcab1d9
[fix] Fix Infinite Loop in Reader's `HasNext` Function
<!-- ### Contribution Checklist - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number. Skip *Issue XYZ* if there is no associated github issue for this pull request. Skip *component* if you are unsure about whi...
diff --git a/pulsar/consumer_partition.go b/pulsar/consumer_partition.go index 95b5bc0946..1a50665bde 100644 --- a/pulsar/consumer_partition.go +++ b/pulsar/consumer_partition.go @@ -570,15 +570,30 @@ func (pc *partitionConsumer) internalUnsubscribe(unsub *unsubscribeRequest) { func (pc *partitionConsumer) getLastMe...
9
7
3
[{"id": "G0", "claim": "A better design would be to change the readNext API so HasNext returns (bool, error) instead of hiding errors behind false, which the pre-v1.0 versioning arguably allows.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TestReader...
null
apache__pulsar-client-go__1194
apache/pulsar-client-go
1,194
defect
c4f47abd7c82402e7d4e95b55b24ebfef4bdb029
e135addaa7f8d7811712f91cfa2f61e8b002490a
[Improve] getMessagesById gets all messages
### Motivation To keep consistent with the Java client. Releted PR: https://github.com/apache/pulsar/pull/21918 ### Modifications Add `getMessagesById` interface. ### Verifying this change - [x] Make sure that the change passes the CI checks. ### Does this pull request potentially affect one of t...
diff --git a/pulsaradmin/pkg/admin/subscription.go b/pulsaradmin/pkg/admin/subscription.go index 456de46cdb..8ddb584523 100644 --- a/pulsaradmin/pkg/admin/subscription.go +++ b/pulsaradmin/pkg/admin/subscription.go @@ -72,8 +72,11 @@ type Subscriptions interface { // PeekMessages peeks messages from a topic subscript...
1
1
0
[{"id": "G0", "claim": "The if/else that increments messageIDMap in the test callback could be simplified.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__pulsar-client-go__1200
apache/pulsar-client-go
1,200
defect
393f80b4b93faa36936380b643426026a2b2cd02
62b978b51ff72b11b159939a4e6f50d2c001fae5
[Improve] Add admin api HealthCheckWithTopicVersion
### Motivation To keep consistent with the Java client. Releted PR: https://github.com/apache/pulsar/pull/11268 ### Modifications Add `HealthCheckWithTopicVersion` interface. ### Verifying this change - [x] Make sure that the change passes the CI checks. *(Please pick either of the following op...
diff --git a/integration-tests/tokens/admin-token b/integration-tests/tokens/admin-token new file mode 100644 index 0000000000..67acef15fd --- /dev/null +++ b/integration-tests/tokens/admin-token @@ -0,0 +1 @@ +eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiJ9.MKSR5Mb2wu_FQlMYACv2i4ubMCn4h4Dj_aIDo1dPsDk \ No newline at end of ...
1
1
0
[{"id": "G0", "claim": "Add a prefix to the TopicVersion constant names, e.g. TopicVersionV1.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
apache__pulsar-client-go__1221
apache/pulsar-client-go
1,221
defect
b0111a2dc473317e4b41ab4af09e42b09a72384c
58872ba96595c28c7edba8f67f681862f1d49e7b
[Improve] PIP-313 Add GetLastMessageIDs API
### Motivation To keep consistent with the Java client. Releted PR: https://github.com/apache/pulsar/pull/20040 ### Modifications - Add `GetLastMessageIDs`api for consumer. ### Verifying this change - [x] Make sure that the change passes the CI checks. ### Does this pull request potentially affec...
diff --git a/pulsar/consumer.go b/pulsar/consumer.go index 3161af5143..ee5c6480e5 100644 --- a/pulsar/consumer.go +++ b/pulsar/consumer.go @@ -278,6 +278,11 @@ type Consumer interface { // where more than one consumer are currently connected. UnsubscribeForce() error + // GetLastMessageIDs get all the last messag...
1
1
1
[{"id": "G0", "claim": "GetLastMessageIDs should return TopicMessageID values so that users can tell which topic each message id belongs to.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__pulsar-client-go__1225
apache/pulsar-client-go
1,225
defect
2d51323103a65ba522dc73f56f052cc81d663245
5a8e27542665d16a813ed1f4859b89da25fad0b1
[Issue 1223] Support ZeroQueueConsumer
Fixes #1223 ### Motivation Support ZeroQueueConsumer, refer to Java [ZeroQueueConsumerImpl](https://github.com/apache/pulsar/blob/8c50a6c2e91c81dbf187ce5e66cb39e2758a741e/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ZeroQueueConsumerImpl.java#L42) ### Modifications - The consumer add a ...
diff --git a/pulsar/consumer.go b/pulsar/consumer.go index 0b70a163dc..31f89a547b 100644 --- a/pulsar/consumer.go +++ b/pulsar/consumer.go @@ -160,6 +160,11 @@ type ConsumerOptions struct { // Default value is `1000` messages and should be good for most use cases. ReceiverQueueSize int + // EnableZeroQueueConsume...
4
4
2
[{"id": "G0", "claim": "Creating a zero queue consumer should also be prevented for a partitioned topic that has only one partition.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The partitionConsumerOpts construction logic should be abstracted so ...
null
apache__pulsar-client-go__1237
apache/pulsar-client-go
1,237
defect
b0111a2dc473317e4b41ab4af09e42b09a72384c
637d8abe67143c8dfce9dec5fbbdd4165253ea39
Fix transaction coordinator client cann't reconnect to the broker
<!-- ### Contribution Checklist - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number. Skip *Issue XYZ* if there is no associated github issue for this pull request. Skip *component* if you are unsure about whi...
diff --git a/pulsar/error.go b/pulsar/error.go index f03799342a..1a9345b0c3 100644 --- a/pulsar/error.go +++ b/pulsar/error.go @@ -121,6 +121,15 @@ const ( // fenced. Applications are now supposed to close it and create a // new producer ProducerFenced + // MaxConcurrentOperationsReached indicates that the maximu...
8
5
2
[{"id": "G0", "claim": "The test should call cli.cnxPool.Close() instead of closing connections manually, to avoid adding a GetConnections() method just for tests.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The semaphore is released twice for the same ...
null
apache__pulsar-client-go__1271
apache/pulsar-client-go
1,271
defect
01e32e7458dd1b96f8718adfdcff33a70b3e073d
0428f25768908b35fd7a7ae67b7b3a2686bc7416
feat: support the namespace offloadThresholdInSeconds API in pulsaradmin pkg
<!-- ### Contribution Checklist - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number. Skip *Issue XYZ* if there is no associated github issue for this pull request. Skip *component* if you are unsure about whi...
diff --git a/pulsaradmin/pkg/admin/namespace.go b/pulsaradmin/pkg/admin/namespace.go index 57c0297a26..152a096b71 100644 --- a/pulsaradmin/pkg/admin/namespace.go +++ b/pulsaradmin/pkg/admin/namespace.go @@ -114,6 +114,12 @@ type Namespaces interface { // GetOffloadThreshold returns the offloadThreshold for a namespac...
3
3
1
[{"id": "G0", "claim": "The comment above SetOffloadThresholdInSeconds should name the method, i.e. '// SetOffloadThresholdInSeconds sets the offloadThresholdInSeconds for a namespace'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment ab...
null
apache__pulsar-client-go__1278
apache/pulsar-client-go
1,278
defect
953d9eab07948d94234c6a2e6b04f1ffeb8ff833
3f9b72cd9b60782c2d732cc73cef246fba029e22
[Issue 1276] Fix multiple consumers using zeroQueueConsumer
Fixes #1276 Master Issue: #<xyz> ### Motivation In the current situation, when using `zeroQueueConsumer`, the permits will be incremented an additional time. ### Modifications When using `zeroQueueConsumer`, the permits are managed by itself. ### Verifying this change - [x] Make sure that the c...
diff --git a/pulsar/consumer_partition.go b/pulsar/consumer_partition.go index d8001dc122..0c6176766e 100644 --- a/pulsar/consumer_partition.go +++ b/pulsar/consumer_partition.go @@ -1494,7 +1494,10 @@ func (pc *partitionConsumer) dispatcher() { messages[0] = nil messages = messages[1:] - pc.availablePermit...
1
1
1
[{"id": "G0", "claim": "The producer in the new TestMultipleConsumer should be created with DisableBatching: true instead of false, so the zero-queue consumer test is correct.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__pulsar-client-go__1316
apache/pulsar-client-go
1,316
defect
279e1d74c216465bccdde492f392c9b5d52e4546
f244726fd7b489c561b8c60b0d0f778d855003f6
PIP-254: Support configuring client version
### Modifications Reference [Java client](https://github.com/apache/pulsar/pull/20009). ### Verifying this change - [ ] Make sure that the change passes the CI checks. *(Please pick either of the following options)* This change is a trivial rework / code cleanup without any test coverage. *(or)* ...
diff --git a/pulsar/client.go b/pulsar/client.go index 368b4f3767..ec3438b365 100644 --- a/pulsar/client.go +++ b/pulsar/client.go @@ -171,6 +171,15 @@ type ClientOptions struct { // The protocol is binary protocol, i.e. the service URL starts with "pulsar://" or "pulsar+ssl://" // The `loadManagerClassName` config...
5
5
0
[{"id": "G0", "claim": "In TestTokenAuthWithClientVersion the ClientVersion assertion should check the prefix 'Pulsar Go version' and the suffix '-test-client' instead of a plain Contains of 'test-client'.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
apache__pulsar-client-go__1351
apache/pulsar-client-go
1,351
defect
0ab28c229e4dab2adb505a135325b6ede6e0e4f4
c5c68f0c516b75e1300170a88d1294f849ff2fd1
[fix][sec] Bump golang.org/x/net to address CVE-2025-22870, requires go 1.23
### Motivation We have an unresolved vulnerability CVE-2025-22870 ### Modifications - bump golang.org/x/net to latest (v0.38.0) which requires go 1.23 - bump minimum required golang version to 1.23 ### Documentation Minimum required golang version is updated in README
diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index 4641eb9912..3bef8b4ede 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -22,7 +22,7 @@ on: jobs: pulsarbot: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest timeout-minutes: 10 if: github.event_name =...
5
1
0
[{"id": "G0", "claim": "Including Go 1.24 in the CI test matrix may be incompatible with the project's stated minimum of Go 1.23, and the reviewer asks to confirm this is intentional.", "category": "testing", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The go-version setting...
null
apache__pulsar-client-go__1361
apache/pulsar-client-go
1,361
defect
f673e4d6f4e86fbfafffd1a3063a44f2550e36a1
d0077e22bfa7df86fba37605b47cb9a9ca25e9a9
[improve] Add testcase to test using keyShared subscription and delayed messages at the same time
Master Issue: https://github.com/apache/pulsar/issues/23968 Related pr: https://github.com/apache/pulsar-client-go/pull/1339 ### Motivation Refered to pr [comment](https://github.com/apache/pulsar-client-go/pull/1339#issuecomment-2712819343), there is no test cases about using keyShared subscription mode to consu...
diff --git a/Makefile b/Makefile index 3ade7200d8..06e180252c 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,7 @@ bin/golangci-lint: # use golangCi-lint docker to avoid local golang env issues # https://golangci-lint.run/welcome/install/ lint-docker: - docker run --rm -v $(shell pwd):/app -w /app golangci/golangc...
2
1
0
[{"id": "G0", "claim": "The break in the select's timeout case only exits the select, not the outer receive loop, so the test can keep looping after the timeout instead of properly exiting when the timeout is reached.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": ...
null
apache__pulsar-client-go__1367
apache/pulsar-client-go
1,367
defect
05c1e32c0abe23686c155d06f233272b317bd711
491d13b23b6bfd6598f31e7977cc4c809ef2ecde
Fix CI can't be failed even the tests are failed
<!-- ### Contribution Checklist - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number. Skip *Issue XYZ* if there is no associated github issue for this pull request. Skip *component* if you are unsure about whi...
diff --git a/scripts/run-ci-blue-green-cluster.sh b/scripts/run-ci-blue-green-cluster.sh index 8c886db3d3..1aadaabe52 100755 --- a/scripts/run-ci-blue-green-cluster.sh +++ b/scripts/run-ci-blue-green-cluster.sh @@ -35,7 +35,7 @@ fi TEST_CMD="$TEST_CMD -timeout=5m -tags extensible_load_manager -v -run TestBlueGreenMigr...
1
1
0
[{"id": "G0", "claim": "Enable 'set -o pipefail' at the beginning of each of the four run-ci scripts so that the whole pipeline fails on any command error.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__pulsar-client-go__1368
apache/pulsar-client-go
1,368
defect
f673e4d6f4e86fbfafffd1a3063a44f2550e36a1
fb1ec4aaa01caa5f6680dbec4ec3da2d5c04667d
[improve] Support http lookup getSchema interface
Master Issue: https://github.com/apache/pulsar/wiki/PIP-43%3A-producer-send-message-with-different-schema#changespart-1 Related pr https://github.com/apache/pulsar-client-go/pull/611 ### Motivation Currently pulsar go sdk has supported multi-version schema in above pr, but the pr does not support `getSchema()` m...
diff --git a/Makefile b/Makefile index 3ade7200d8..06e180252c 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,7 @@ bin/golangci-lint: # use golangCi-lint docker to avoid local golang env issues # https://golangci-lint.run/welcome/install/ lint-docker: - docker run --rm -v $(shell pwd):/app -w /app golangci/golangc...
4
2
1
[{"id": "G0", "claim": "Verify that schemaVersion has the expected length (at least 8 bytes) before calling binary.BigEndian.Uint64(schemaVersion), to avoid a potential panic on insufficient data.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use a...
null
apache__pulsar-client-go__1385
apache/pulsar-client-go
1,385
defect
a5c6dee1af2d693a7db40720b436d05d1228ab51
f85b6c83f76b791177de0125d61f2085e4a6e2bd
[Issue 1384][consumer] Fix the default nack backoff policy
<!-- ### Contribution Checklist - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number. Skip *Issue XYZ* if there is no associated github issue for this pull request. Skip *component* if you are unsure about whi...
diff --git a/pulsar/negative_backoff_policy.go b/pulsar/negative_backoff_policy.go index 5cd35bcffb..c7d47839b4 100644 --- a/pulsar/negative_backoff_policy.go +++ b/pulsar/negative_backoff_policy.go @@ -41,9 +41,11 @@ func (nbp *defaultNackBackoffPolicy) Next(redeliveryCount uint32) time.Duration minNackTime := 1 * t...
2
1
0
[{"id": "G0", "claim": "The call to math.Abs is redundant because backoff is always non-negative, so the return can be simplified to math.Min(backoff, float64(maxNackTime)).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "math.MaxUint8/MaxUint16/...
null
apache__pulsar-client-go__1386
apache/pulsar-client-go
1,386
defect
55c71e62ac16f4193a9060b5fd41e355ad759d49
44ac5fc93391d97321c1df792b6df97c7149b419
Fix: namespace schema compatibility strategy
<!-- ### Contribution Checklist - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number. Skip *Issue XYZ* if there is no associated github issue for this pull request. Skip *component* if you are unsure about whi...
diff --git a/pulsaradmin/pkg/admin/namespace.go b/pulsaradmin/pkg/admin/namespace.go index e92f020cb2..df0c544af0 100644 --- a/pulsaradmin/pkg/admin/namespace.go +++ b/pulsaradmin/pkg/admin/namespace.go @@ -93,11 +93,20 @@ type Namespaces interface { // SetSchemaAutoUpdateCompatibilityStrategy sets the strategy used ...
3
1
0
[{"id": "G0", "claim": "Remove the extra \"the\" before \"a new schema\" in the doc comments so they read \"check a new schema provided\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code uses strings.ReplaceAll but the strings package is n...
null
apache__pulsar-client-go__1391
apache/pulsar-client-go
1,391
defect
c587b5cefb047a46e3c01dc3b65f9250ac99ee5d
7aa77e42f3e1988df092dadf122237f84751de9f
ZeroQueueConsumer is not supported with RetryEnable
*(If this PR fixes a github issue, please add `Fixes #<xyz>`.)* Fixes #1319 ### Modifications https://github.com/apache/pulsar/blob/89167308709cf72d3f2731bad1bb30384f80abb4/pulsar-client/src/main/java/org/apache/pulsar/client/impl/MultiTopicsConsumerImpl.java#L148-L149 We need to be consistent with th...
diff --git a/pulsar/consumer_impl.go b/pulsar/consumer_impl.go index b4903516ea..56c619bf0c 100644 --- a/pulsar/consumer_impl.go +++ b/pulsar/consumer_impl.go @@ -74,6 +74,11 @@ type consumer struct { } func newConsumer(client *client, options ConsumerOptions) (Consumer, error) { + + if options.RetryEnable && optio...
2
1
0
[{"id": "G0", "claim": "The Java client's MultiTopicsConsumerImpl assertion that disallows a zero receiver queue size seems unrelated to this PR, casting doubt on the justification for the added validation.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
apache__pulsar-client-go__1392
apache/pulsar-client-go
1,392
defect
9440f18f20ca27a3ba1162a98f1126f5b2e2f513
8a81866b25ed0c7eaaae5a1439d7b088e499dc4d
[Fix] DLQ Messages will lose system properties when sent from reconsumeLater()
Fixes https://github.com/apache/pulsar-client-go/issues/1388 Master Issue: https://github.com/apache/pulsar-client-go/pull/907, https://github.com/apache/pulsar/pull/23182 ### Motivation Since pulsar sdk does not support `AckTimeout()` method, we can only use `Nack()` or `ReconsumeLater()` to trigger dlq policy an...
diff --git a/pulsar/consumer_impl.go b/pulsar/consumer_impl.go index b4903516ea..b441005939 100644 --- a/pulsar/consumer_impl.go +++ b/pulsar/consumer_impl.go @@ -627,16 +627,21 @@ func (c *consumer) ReconsumeLaterWithCustomProperties(msg Message, customPropert } else { props[SysPropertyRealTopic] = msg.Topic() ...
3
1
1
[{"id": "G0", "claim": "A comment contains the typo 'orinal', which should be 'original'.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The DLQ message construction added in dispatcher() duplicates the logic in ReconsumeLaterWithCustomProperties ...
null
apache__pulsar-client-go__1396
apache/pulsar-client-go
1,396
defect
67c3d53d83f310bef34bd9810954e0a4fe8881d1
7518a07635ef39858a7ca898c7acf3ed4e043757
fix: add missing metric tracking of `pulsar_client_consumer_acks` for AckIDList method
### Motivation Fixes https://github.com/apache/pulsar-client-go/issues/1393 The metric `pulsar_client_consumer_acks` was not being incremented when using the `AckIDList` method, which is a bug that affects observability and monitoring of consumer acknowledgment behavior. This issue prevents proper tracking of bat...
diff --git a/pulsar/consumer_partition.go b/pulsar/consumer_partition.go index 6a8cf83d04..dc42003d8b 100644 --- a/pulsar/consumer_partition.go +++ b/pulsar/consumer_partition.go @@ -746,6 +746,8 @@ func (pc *partitionConsumer) AckIDList(msgIDs []MessageID) error { pendingAcks := make(map[position]*bitset.BitSet) v...
5
4
2
[{"id": "G0", "claim": "The ack counter is incremented with the total number of msgIDs before validation, so it may overcount acknowledgments when some msgIDs are invalid; it should only be incremented for successfully processed acknowledgments.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc...
null
apache__pulsar-client-go__1400
apache/pulsar-client-go
1,400
defect
0dee1133982f4a017d791211787dc1c90e4b8c44
ef60a38580d9d4e411e244e6bb0c55c474adf63d
[Issue 1399] add eventTime in reconsumeLaterWithCustomProperties func
Fixes #1399 Master Issue: #1399 ### Motivation `ReconsumeLater` doesnot adds the eventTime in new rebuilded consumer Message before pushing to Retry or Dlq topic ### Modifications ```go // line 639 (consumer_impl.go) consumerMsg := ConsumerMessage{ Consumer: c, Message: &message{ payL...
diff --git a/pulsar/consumer_impl.go b/pulsar/consumer_impl.go index 56c619bf0c..c8b28b1f28 100644 --- a/pulsar/consumer_impl.go +++ b/pulsar/consumer_impl.go @@ -642,6 +642,7 @@ func (c *consumer) ReconsumeLaterWithCustomProperties(msg Message, customPropert payLoad: msg.Payload(), properties: props, ms...
2
2
2
[{"id": "G0", "claim": "The PR should add a test covering the new eventTime propagation in ReconsumeLaterWithCustomProperties.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The CI run reports a lint issue on this PR that should be fixed.", "category": ...
null
apache__pulsar-client-go__1404
apache/pulsar-client-go
1,404
defect
5a320e8907d53033aec332ca0334b778c3c3d0d9
179a98695c8d41b74065f864bec126d3cd561728
fix: handle reconnection logic for zero queue consumer
Fixes #1330 #398 ### Motivation `ZeroQueueConsumer` cannot consume messages when the broker restarts or unload topic. ### Modifications - Increase `availablePermits` on reconnect for `ZeroQueueConsumer` - Add test case for zero queue consumer reconnection - Suppress/Do not print the "unable to send i...
diff --git a/pulsar/consumer_impl.go b/pulsar/consumer_impl.go index 56c619bf0c..f524381f70 100644 --- a/pulsar/consumer_impl.go +++ b/pulsar/consumer_impl.go @@ -473,6 +473,7 @@ func newPartitionConsumerOpts(topic, consumerName string, idx int, options Consu enableBatchIndexAck: options.EnableBatchIndexAckn...
5
3
0
[{"id": "G0", "claim": "The test sleeps 5 seconds after each received message (about a minute in total), making it unnecessarily slow; reduce or remove the sleep to speed up the test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local variable nam...
null
apache__pulsar-client-go__1406
apache/pulsar-client-go
1,406
defect
b12eccc2c60606ff208ad44087b6b913840d617d
eaae4745b8f95f91a71f4b8d9a73243ca9d3889e
Support Snappy CompressionType
Master Issue: https://github.com/apache/pulsar-client-go/issues/936 ### Motivation As above issue says. In go client, Snappy compression is not yet supported. When using go client to consume Snappy compressed messge, it will throw a `DecompressionError` exception ### Modifications - Realize SnappyProvider in `p...
diff --git a/pulsar/consumer_partition.go b/pulsar/consumer_partition.go index 41341edee0..56e90a1345 100644 --- a/pulsar/consumer_partition.go +++ b/pulsar/consumer_partition.go @@ -2242,6 +2242,8 @@ func (pc *partitionConsumer) initializeCompressionProvider( return compression.NewLz4Provider(), nil case pb.Compr...
1
1
1
[{"id": "G0", "claim": "The batching-enabled producer in TestConsumerMultiCompressions should use SendAsync instead of Send, because with synchronous Send the batching never takes effect.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__pulsar-client-go__1409
apache/pulsar-client-go
1,409
defect
d471a678ea54f1deaa016f09c377e5e41eb22a51
8cb7a65f8f61bfd0be37e5b0c8ab4b9231c8811f
[issue #1357][producer] fix: allow multiples callbacks with concurrent producer flushes (async publish)
Fixes #1357 ### Motivation When flushing concurrently with the same producer, the producer potentially creates a deadlock when the callback is only called once but the client waits for the flush request to be done in all `FlushWithCtx()`. ### Modifications Change the callback function for to a list of callb...
diff --git a/.gitignore b/.gitignore index bfa04f037f..91999bb137 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ pulsar-perf bin vendor/ +logs/ diff --git a/pulsar/consumer_test.go b/pulsar/consumer_test.go index 80ce0d2e65..8a4ea3f34e 100644 --- a/pulsar/consumer_test.go +++ b/pulsar/consumer_test.go @...
2
1
0
[{"id": "G0", "claim": "Use a classic indexed for loop instead of Go 1.22+ range-over-int for better compatibility with older Go versions.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The image-count check and 'Clean Docker cache if images exi...
null
apache__pulsar-client-go__1410
apache/pulsar-client-go
1,410
defect
1a0bfc9100147f4a036138a3475c81bd1cc35471
726e83c16fc6ec975447f2db237d1f03a039cb2d
[improve] modify the negativeACK structure to reduce memory overhead
### Motivation The main content of this PR is to implement the Pulsar Java community's [PIP-393](https://github.com/apache/pulsar/pull/23601) proposal in the Go client. Negative Acknowledgement handling in now Pulsar Go client exhibits inefficiencies related to memory usage, timing precision, and batch-level cont...
diff --git a/go.mod b/go.mod index be3bf744ba..9d2fccf7e6 100644 --- a/go.mod +++ b/go.mod @@ -6,9 +6,11 @@ require ( github.com/99designs/keyring v1.2.1 github.com/AthenZ/athenz v1.12.13 github.com/DataDog/zstd v1.5.0 - github.com/bits-and-blooms/bitset v1.4.0 + github.com/RoaringBitmap/roaring/v2 v2.8.0 + githu...
9
9
2
[{"id": "G0", "claim": "The time.Time type assertions in the AVL-tree comparator could panic if a value of the wrong type is passed; use the comma-ok pattern and handle the error case.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The type assertio...
null
apache__pulsar-client-go__1412
apache/pulsar-client-go
1,412
defect
7a9a33c178fb4bac6488469865a2ac07c466b554
ac04ff602a39370c06e87034ac751a6f22ee7b55
Fix missing topic in dlq producer name when using RetryEnable option
Fixes https://github.com/apache/pulsar-client-go/pull/1314 Master Issue: https://github.com/apache/pulsar/pull/21589 ### Motivation When creating a consumer with `option.RetryEnable` option, consumer initialization needs to subscribe both `option.Topic` and `options.DLQ.RetryLetterTopic`, it will set `option.Topic...
diff --git a/pulsar/consumer_impl.go b/pulsar/consumer_impl.go index 5f6dac3d80..9421a8a02b 100644 --- a/pulsar/consumer_impl.go +++ b/pulsar/consumer_impl.go @@ -181,8 +181,17 @@ func newConsumer(client *client, options ConsumerOptions) (Consumer, error) { } } - dlq, err := newDlqRouter(client, options.DLQ, opt...
1
1
0
[{"id": "G0", "claim": "The two nearly identical newDlqRouter calls in the if/else should be collapsed into a single call, with the topic chosen beforehand into a dlqTopic variable, as in the attached suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__pulsar-client-go__1417
apache/pulsar-client-go
1,417
defect
230d11b82ba8b60c971013516c4922afea4a022d
993917e2fb064c328188f68ab99105db2a3bda44
fix: add DLQPolicy.DeadLetterTopicProducerName
### Motivation When the retry mechanism is enabled, the RLQ producer first sends messages to the RLQ topic using the producer name if passed in the producer options inside the `DLQPolicy`. However, **with `DLQPolicy.ProducerOptions.Name` set**, when the delivery count is reached and the consumer `Nack()` the messa...
diff --git a/pulsar/consumer.go b/pulsar/consumer.go index d611c6916e..9ac8d50f6d 100644 --- a/pulsar/consumer.go +++ b/pulsar/consumer.go @@ -75,6 +75,14 @@ type DLQPolicy struct { // DeadLetterTopic specifies the name of the topic where the failing messages will be sent. DeadLetterTopic string + // DeadLetterTo...
2
2
0
[{"id": "G0", "claim": "The comment for the new DLQPolicy.DeadLetterTopicProducerName field misspells 'DLQ' as 'DQL' and should be corrected to 'DLQ topic'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In TestWithDeadLetterTopicDeadLetterTopicPr...
null
apache__pulsar-client-go__1419
apache/pulsar-client-go
1,419
defect
230d11b82ba8b60c971013516c4922afea4a022d
6cac1463edc24f8dab2b806256712419e6f846e5
[Issue #1418] Fix: Properties not getting consistently set on pulsaradmin subscription message responses
### Motivation The properties on messages returned by PeekMessages is not returned consistently as described in #1418 This change makes sure we set all properties from headers before continuing on, so the returned message should consistently contain all properties. Currently the properties returned is inconsi...
diff --git a/pulsaradmin/pkg/admin/subscription.go b/pulsaradmin/pkg/admin/subscription.go index a1a13619be..2dfa28d6e8 100644 --- a/pulsaradmin/pkg/admin/subscription.go +++ b/pulsaradmin/pkg/admin/subscription.go @@ -256,6 +256,7 @@ func handleResp(topic utils.TopicName, resp *http.Response) ([]*utils.Message, e } ...
2
1
1
[{"id": "G0", "claim": "In getIndividualMsgsFromBatch the shared properties map is mutated by adding each single message's properties to the same map reference, so all messages in a batch share one map and accumulate properties from all messages in the batch, and a copy of the properties map should be created for each ...
null
apache__pulsar-client-go__1435
apache/pulsar-client-go
1,435
defect
7b4b3a6a7b512068b5f6c993f5c2c6f4362d34ea
778835c8ff3934a9769db94939ebc58b9a5d7f4c
Fix the issue of unable to parse non-batch messages that with non-empty properties and empty payloads.
### Motivation ``` time="2025-11-03T12:22:21+08:00" level=info msg="Created producer" cnx="[::1]:55372 -> [::1]:6650" producerID=1 producer_name=standalone-0-14 topic="persistent://public/default/my-topic-965686000" time="2025-11-03T12:22:21+08:00" level=error msg="Discarding corrupted message" consumerID=1 msgID=...
diff --git a/pulsar/internal/commands.go b/pulsar/internal/commands.go index b9f462341e..7cca37d383 100644 --- a/pulsar/internal/commands.go +++ b/pulsar/internal/commands.go @@ -75,6 +75,8 @@ type MessageReader struct { buffer Buffer // true if we are parsing a batched message - set after parsing the message metad...
2
1
0
[{"id": "G0", "claim": "hasProperties is never reset between message reads when a MessageReader is reused, so a message without properties following one with properties will incorrectly still be treated as having properties; consider resetting the field in ResetBuffer() or at the start of ReadMessageMetadata().", "cate...
null
apache__pulsar-client-go__1436
apache/pulsar-client-go
1,436
defect
7b4b3a6a7b512068b5f6c993f5c2c6f4362d34ea
282c0b645cac6f1c8a41c6517e0a8919df2ad099
add timestamp to schema info
<!-- ### Contribution Checklist - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number. Skip *Issue XYZ* if there is no associated github issue for this pull request. Skip *component* if you are unsure about whi...
diff --git a/pulsaradmin/pkg/utils/schema_util.go b/pulsaradmin/pkg/utils/schema_util.go index b8a17d9628..0ad14f5b85 100644 --- a/pulsaradmin/pkg/utils/schema_util.go +++ b/pulsaradmin/pkg/utils/schema_util.go @@ -22,6 +22,7 @@ type SchemaInfo struct { Schema []byte `json:"schema"` Type string...
1
1
0
[{"id": "G0", "claim": "The new timestamp field on SchemaInfo needs unit tests to cover its population by the schema conversion helpers.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__pulsar-client-go__1437
apache/pulsar-client-go
1,437
defect
148c10c41f37ee1e15bb66d7ba09d2a8984b87b0
511459dad21be08201fd67349cf3a45388539c1c
Fix partition update failure causing existing producers to close
### Motivation When a partition update is triggered and the creation of one of the new producers fails, it currently fails all existing producers here:https://github.com/apache/pulsar-client-go/blob/148c10c41f37ee1e15bb66d7ba09d2a8984b87b0/pulsar/producer_impl.go#L267-L271 This causes the entire producer to become u...
diff --git a/pulsar/message_chunking_test.go b/pulsar/message_chunking_test.go index c2e1113df3..b85e914f8c 100644 --- a/pulsar/message_chunking_test.go +++ b/pulsar/message_chunking_test.go @@ -544,7 +544,7 @@ func sendSingleChunk(p Producer, uuid string, chunkID int, totalChunks int) { Payload: []byte(fmt.Sprintf(...
3
2
1
[{"id": "G0", "claim": "Loading the producers slice through unsafe.LoadPointer can race because a slice's pointer and length are not modified atomically, so a reader may pair an old pointer with a new length; the existing design of PR #286 is not safe.", "category": "correctness", "verdict": "supported", "priority": "P...
null
apache__pulsar-client-go__1441
apache/pulsar-client-go
1,441
defect
fa2b263d9f6dae72128945d277d8f9d25fbd7410
1c4fe9b4c15af4e071785f004f1bc81195a70d6e
Support reloading OAuth2 key file
### Motivation When using OAuth2 authentication, if the key file is updated, the token refresh process does not use the updated credentials, which can lead to token refresh failures. The root cause is that the client stores the grant information in a grant store, which cannot handle updates to the key file. In f...
diff --git a/oauth2/auth_suite_test.go b/oauth2/auth_suite_test.go index 54b24299a9..343bd945df 100644 --- a/oauth2/auth_suite_test.go +++ b/oauth2/auth_suite_test.go @@ -58,6 +58,20 @@ func (te *MockTokenExchanger) ExchangeDeviceCode(_ context.Context, return te.ReturnsTokens, te.ReturnsError } +type MockGrantPro...
17
13
3
[{"id": "G0", "claim": "The tokenCache doc comment still describes interacting with a store and should be updated to say it obtains a fresh token by calling the flow's Authorize method, allowing dynamic credential reloading.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}...
null
apache__pulsar-client-go__1443
apache/pulsar-client-go
1,443
defect
fa2b263d9f6dae72128945d277d8f9d25fbd7410
054f0df70224b01c590ec84e8d485372e65e8314
fix: enhance zero queue consumer reconnection handling and message permit management
### Motivation https://github.com/apache/pulsar-client-go/pull/1434#issuecomment-3542398661 When the broker restarts or a topic is unloaded, the zero consumer sends an extra permit, causing the number of UnAckedMessages to increase. ### Modifications https://github.com/apache/pulsar/blob/cc5e479d63103f8...
diff --git a/pulsar/consumer_partition.go b/pulsar/consumer_partition.go index bfd44b1837..886e52cfa5 100644 --- a/pulsar/consumer_partition.go +++ b/pulsar/consumer_partition.go @@ -124,10 +124,12 @@ type partitionConsumerOpts struct { expireTimeOfIncompleteChunk time.Duration autoAckIncompleteChunk bool //...
12
9
2
[{"id": "G0", "claim": "When the type assertion succeeds but message.getConn() returns nil, calling .ID() on it in Receive would panic; consider adding a nil check for the connection before calling .ID().", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
apache__pulsar-client-go__1456
apache/pulsar-client-go
1,456
defect
25af763adb2ec1062d634dcc75e870907bcbdefc
1a0288168f4a52d10090cd1a28b9f34c114a4207
Implement ReconsumeLater on regex consumer
### Motivation Currently, `ReconsumeLater` and `ReconsumeLaterWithCustomProperties` are unimplemented on `regexConsumer`. From what I can tell, these appear to just be missing methods rather than some fundamental limitation of the consumer implementation. Hopefully I'm correct there. ### Modifications I've es...
diff --git a/pulsar/consumer_regex.go b/pulsar/consumer_regex.go index ced770e996..853e36359c 100644 --- a/pulsar/consumer_regex.go +++ b/pulsar/consumer_regex.go @@ -186,12 +186,34 @@ func (c *regexConsumer) Ack(msg Message) error { return c.AckID(msg.ID()) } -func (c *regexConsumer) ReconsumeLater(_ Message, _ t...
5
5
2
[{"id": "G0", "claim": "Add a nil check for c.options.DLQ before accessing c.options.DLQ.RetryLetterTopic in topics(), to make the code more robust even though the current path through newConsumer is said to initialize DLQ when RetryEnable is true.", "category": "correctness", "verdict": "supported", "priority": "P2", ...
null
apache__pulsar-client-go__1457
apache/pulsar-client-go
1,457
defect
203dcf1cd22dbcf853c2a06c52dee3c4e1eba92b
c5c3ffd15e89cb5ccd38e40363a0218c4375f0c3
feat: regard ProducerBlockedQuotaExceededException as retryable exception to continue to reconnect
Fixes https://github.com/apache/pulsar-client-go/pull/1134 Master Issue: https://github.com/apache/pulsar-client-go/pull/1128 ### Motivation Currently, the Go client handles connections in two ways: 1. If the current connection is an initialization connection, meaning when the producer is initialized for the firs...
diff --git a/Makefile b/Makefile index 06e180252c..bee9902acd 100644 --- a/Makefile +++ b/Makefile @@ -44,13 +44,13 @@ lint: bin/golangci-lint bin/golangci-lint run bin/golangci-lint: - GOBIN=$(shell pwd)/bin go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0 + GOBIN=$(shell pwd)/bin go install...
7
5
1
[{"id": "G0", "claim": "The test's sending goroutine runs forever and leaks after the test ends, and it calls assert.NoError from a non-test goroutine, so it should be removed or made stoppable with errors checked on the main test goroutine.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "i...
null
apache__pulsar-client-go__1460
apache/pulsar-client-go
1,460
defect
cc185904de7b42dc97193188874ce6605ff2d560
f36847ace925a408755635f68a9eeae69ff2437d
fix(consumer): fix panic when messages size is 0
Fixes #1454 ### Modifications *Describe the modifications you've done.* if messages in `MessageReceived` are all skipped, then don't add into `queuech`. avoid panic when `dispatcher()` received clear command from `clearQueueCh` ### Verifying this change - [ ] Make sure that the change passes the CI ...
diff --git a/pulsar/consumer_partition.go b/pulsar/consumer_partition.go index ab35b7a18f..918de2cf4f 100644 --- a/pulsar/consumer_partition.go +++ b/pulsar/consumer_partition.go @@ -1437,6 +1437,11 @@ func (pc *partitionConsumer) MessageReceived(response *pb.CommandMessage, header pc.availablePermits.add(skippedMes...
1
1
1
[{"id": "G0", "claim": "Add a unit test covering the edge case where all messages in a batch are filtered/skipped (e.g. duplicates), verifying the consumer does not panic and the skipped messages are properly accounted for in availablePermits.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": ...
null
apache__pulsar-client-go__1463
apache/pulsar-client-go
1,463
defect
9d65d0ecf43f357a7a318c361553b258d88c56ea
79206ee2731d85dc7fd97d98bd051795abb01572
feat(oauth2): add support for issuer URL override in client credentials flow
<!-- ### Contribution Checklist - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number. Skip *Issue XYZ* if there is no associated github issue for this pull request. Skip *component* if you are unsure about whi...
diff --git a/oauth2/client_credentials_flow.go b/oauth2/client_credentials_flow.go index c45dc82118..991ab0f22b 100644 --- a/oauth2/client_credentials_flow.go +++ b/oauth2/client_credentials_flow.go @@ -53,6 +53,7 @@ type GrantProvider interface { type ClientCredentialsFlowOptions struct { KeyFile string ...
2
2
2
[{"id": "G0", "claim": "The new `options != nil` guard is ineffective because `GetGrant` dereferences `options` earlier (`options.KeyFile`), so a nil `options` would still panic; either make `options` a non-pointer parameter or return a clear error immediately when `options == nil` before any dereference.", "category":...
null
apache__pulsar-client-go__1464
apache/pulsar-client-go
1,464
defect
203dcf1cd22dbcf853c2a06c52dee3c4e1eba92b
2be1c8f86dce78fc328229f9419e303344775832
[Issue 1446][Consumer] Fix consumer can't consume resent chunked messages
Master Issue: https://github.com/apache/pulsar-client-go/issues/1446 related issue https://github.com/apache/pulsar/pull/21070 and https://github.com/apache/pulsar/pull/21101 ### Motivation Current, when the producer resend the chunked message like this: ``` M1: UUID: 0, ChunkID: 0 M2: UUID: 0, ChunkID: 0 // Re...
diff --git a/pulsar/consumer_partition.go b/pulsar/consumer_partition.go index ab35b7a18f..293de44adc 100644 --- a/pulsar/consumer_partition.go +++ b/pulsar/consumer_partition.go @@ -1456,31 +1456,137 @@ func (pc *partitionConsumer) processMessageChunk(compressedPayload internal.Buff partitionIdx: pc.partitionIdx, ...
5
5
4
[{"id": "G0", "claim": "The chunked-message context is fetched twice with pc.chunkedMsgCtxMap.get(uuid) without holding a lock between the calls, so it could be modified or removed in between; store the result of get() in a single variable to avoid a potential nil pointer dereference or inconsistent state.", "category"...
null
apache__pulsar-client-go__1468
apache/pulsar-client-go
1,468
defect
3564674615ac147075a299aafa8101ccbc2846cf
5df25c5ee69da92c2ad85391207c70c6a27031f5
improve: service URL parsing compatible with Go 1.26
Fixes https://github.com/apache/pulsar-client-go/issues/1466 ### Motivation Go 1.26 introduces stricter URL parsing via `url.Parse`, rejecting malformed URLs with multiple colons in the host, such as `http://::1/` or `http://localhost:80:80/`. Bracketed IPv6 addresses, e.g. `http://[::1]/`, remain valid. The old beha...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6634eaff2..30c18fe3d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [ '1.23', '1.24' ] + go-version: [ '1.24', '1.2...
10
7
4
[{"id": "G0", "claim": "ResolveHostURI builds hostURL from host.Hostname() + \":\" + host.Port(), which drops the brackets on IPv6 addresses and produces an invalid URL like pulsar://fec0::1:6650 that fails parsing under strict URL rules; build the URI using host.Host or net.JoinHostPort instead.", "category": "correct...
null
apache__pulsar-client-go__1470
apache/pulsar-client-go
1,470
defect
7832a7da85158d86a2bf56f9a6eaf7eebe5bde50
2b499826c2946747fb9a32c963c4fa0899224c74
admin: add remove replication clusters topic API
<!-- ### Contribution Checklist - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number. Skip *Issue XYZ* if there is no associated github issue for this pull request. Skip *component* if you are unsure about whi...
diff --git a/pulsaradmin/pkg/admin/topic.go b/pulsaradmin/pkg/admin/topic.go index 65f8c747a1..14662ddca7 100644 --- a/pulsaradmin/pkg/admin/topic.go +++ b/pulsaradmin/pkg/admin/topic.go @@ -832,6 +832,12 @@ type Topics interface { // list of replication cluster id SetReplicationClustersWithContext(ctx conte...
2
1
1
[{"id": "G0", "claim": "The new RemoveReplicationClusters/RemoveReplicationClustersWithContext methods are not covered by tests; please add a test exercising the DELETE /{topic}/replication call path.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The P...
null
apache__pulsar-client-go__154
apache/pulsar-client-go
154
defect
5004b5d81001f7276091b11699cf568778d83556
ab6f5a9e39bea3bd094fb6bcb12c95db386970f8
[Issue #153] Fix handler memory leak
Fixes: #153 Makes producer & consumer removed from client handler when producer / consumer closed.
diff --git a/pulsar/consumer_impl.go b/pulsar/consumer_impl.go index c962e52feb..a639c2a580 100644 --- a/pulsar/consumer_impl.go +++ b/pulsar/consumer_impl.go @@ -41,6 +41,7 @@ type acker interface { } type consumer struct { + client *client options ConsumerOptions consumers []*partitionConsumer @@ -114,...
4
3
1
[{"id": "G0", "claim": "The change (the new handler-delivery behaviour) should be covered by a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Close() must copy the handlers, release the lock and then close them, otherwise a handler calling Del() d...
null
apache__pulsar-client-go__184
apache/pulsar-client-go
184
defect
d9d535caef16c690e3b272e359cce1b2bdeda02a
e5b03bddbd4704c6815ca6f5c55835cee448d7d7
Dead letter queue implementation
### Motivation Added support for dead letter queue message routing
diff --git a/pulsar/consumer.go b/pulsar/consumer.go index 18eced8de2..a14b41cdf5 100644 --- a/pulsar/consumer.go +++ b/pulsar/consumer.go @@ -60,6 +60,15 @@ const ( SubscriptionPositionEarliest ) +// Configuration for Dead Letter Queue consumer policy +type DLQPolicy struct { + // Maximum number of times that a m...
3
1
1
[{"id": "G0", "claim": "The blocking send on the unbuffered closeCh in dlqRouter.close() could deadlock when close() is called more than once (e.g. for multiple topics sharing one router); the reviewer proposes replacing it with a non-blocking select send.", "category": "correctness", "verdict": "supported", "priority"...
null
apache__pulsar-client-go__343
apache/pulsar-client-go
343
defect
570d5ceffa19958403d3bb4c8e38070e93ef8fab
8b7ae5138d18fa60fbe0eb92a61217223c23d661
Support specified the oauth2 private key with prefix 'file://' and 'data://'
--- *Motivation* Make the oauth2 read the private key can handle with 'file://' schema and 'data://' schema.
diff --git a/oauth2/client_credentials_provider.go b/oauth2/client_credentials_provider.go index 731b39955b..78c7228614 100644 --- a/oauth2/client_credentials_provider.go +++ b/oauth2/client_credentials_provider.go @@ -20,6 +20,12 @@ package oauth2 import ( "encoding/json" "io/ioutil" + "strings" +) + +const ( + F...
1
1
0
[{"id": "G0", "claim": "A test case should be added for the new 'file://' and 'data://' oauth2 private key prefix support.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__pulsar-client-go__372
apache/pulsar-client-go
372
defect
3c523ba8288929ec4299b5a362fe8fc9088858e2
6be0285efa8847b5f36586475ff94fabb7b9e29b
[Issue 367][producer] Send delay message individually even batching is enabled
Fixes #367 ### Motivation Send delay message individually even batching is enabled. ### Modifications 1. flush batching messages immediately when a new delay message is received 2. reset deliverAtTime metadata of `BatchBuilder` ### Verifying this change Ref #367 ### Does this pull request ...
diff --git a/pulsar/internal/batch_builder.go b/pulsar/internal/batch_builder.go index 18ec3c4bf0..fe34f0cf2d 100644 --- a/pulsar/internal/batch_builder.go +++ b/pulsar/internal/batch_builder.go @@ -153,6 +153,7 @@ func (bb *BatchBuilder) reset() { bb.buffer.Clear() bb.callbacks = []interface{}{} bb.msgMetadata.R...
1
1
1
[{"id": "G0", "claim": "A test case should be added for the delay-message-individually change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__pulsar-client-go__394
apache/pulsar-client-go
394
defect
8ff27aec4c7fadb81573add63429618d0dd5f522
cf9e17272db731d4b04b75466953dc34809b1723
Support sendTimeout
### Motivation Support `SendTimeout` and `DisableBlockIfQueueFull ` for producer. ### Modifications - Add 2 configurations into `ProducerOptions` - Check and fail timeout messages before flushing batch. - Check `DisableBlockIfQueueFull` before acquiring publish semaphore while sending messages. - Add `TestS...
diff --git a/integration-tests/standalone.conf b/integration-tests/standalone.conf index 3fdf53a625..b426ff32b7 100644 --- a/integration-tests/standalone.conf +++ b/integration-tests/standalone.conf @@ -54,7 +54,7 @@ brokerShutdownTimeoutMs=3000 backlogQuotaCheckEnabled=true # How often to check for topics that hav...
3
2
1
[{"id": "G0", "claim": "The send timeout should be taken from the context passed in by the application at the moment of Send() rather than a producer-level SendTimeout option.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The logic of the queue-full opt...
null
apache__pulsar-client-go__400
apache/pulsar-client-go
400
defect
82e676ec34f72f8f0d1c8eda5e03fb6805530611
048e68ad5c27718a07d7749cdabb38fbf65a22cb
[Issue 172] Add key based batcher
Fixes #172 ### Motivation Add a new batch message container named `keyBasedBatchContainer` to support batching message in key_shared subscription mode. ### Modifications - add `BatchBuilder` interface, add `FlushBatches` and `IsMultiBatches` func - change old `BatchBuilder` struct to `batchContainer` - ad...
diff --git a/go.mod b/go.mod index 1c84b57b3e..17d898404c 100644 --- a/go.mod +++ b/go.mod @@ -14,6 +14,8 @@ require ( github.com/klauspost/compress v1.10.8 github.com/kr/pretty v0.2.0 // indirect github.com/linkedin/goavro/v2 v2.9.8 + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect...
1
1
0
[{"id": "G0", "claim": "TestKeyBasedBatchProducerConsumerKeyShared does not verify the order of the messages received by the consumer; order verification should be added to that test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__pulsar-client-go__518
apache/pulsar-client-go
518
defect
6426d39af9bcf3de44b155afc3eece56069b4a2b
8af24811c1f8c8675c3f9254f3816a86f16a20a4
Add open tracing to pulsar go clinet
As suggested by @sijie ![image](https://user-images.githubusercontent.com/84397028/118817792-47a09200-b8bc-11eb-845b-871da75aaf96.png) Here is the PR to add open tracing to the pulsar go client directly. This is replicating what the java tracer does: https://github.com/streamnative/pulsar-tracing The usage is s...
diff --git a/go.mod b/go.mod index 1ecd393acd..9a5534a809 100644 --- a/go.mod +++ b/go.mod @@ -15,8 +15,7 @@ require ( github.com/klauspost/compress v1.10.8 github.com/kr/pretty v0.2.0 // indirect github.com/linkedin/goavro/v2 v2.9.8 - github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect...
3
1
1
[{"id": "G0", "claim": "The pull request adds the tracing code without any test cases; the reviewer asks that test cases be added for it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Similar tracing interceptor functions could be added for the Reader,...
null
apache__pulsar-client-go__529
apache/pulsar-client-go
529
defect
07006dedd6e6e191f1a6e77d9561688bb4b281c0
418d3f7a69018fffc6585fe9bf2e0709e4551829
add LedgerId,EntryId,BatchIdx,PartitionIdx func for MessageId interface
In some cases, consumers need to obtain the ledgerId, entryId, batchId, partitionidx of the messageId. This expose LedgerId EntryId BatchId PartitionIdx func for MessageId interface.
diff --git a/pulsar/impl_message.go b/pulsar/impl_message.go index a84fc2dee6..fa96795ab6 100644 --- a/pulsar/impl_message.go +++ b/pulsar/impl_message.go @@ -123,6 +123,22 @@ func (id messageID) Serialize() []byte { return data } +func (id messageID) LedgerId() int64 { + return id.ledgerID +} + +func (id messageI...
2
2
1
[{"id": "G0", "claim": "Add a new test case to cover the new Get-func feature instead of extending the existing TestMessageId test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The import grouping makes the Go CI check fail, so the import block must b...
null
apache__pulsar-client-go__560
apache/pulsar-client-go
560
defect
7a60a7e529d6a52d52a1a5180dfaedebb8eb6987
3b8d912b46288c011d5846475c457ee65435aece
Encryption support producer
Breakdown of PR [#552 ](https://github.com/apache/pulsar-client-go/pull/552) This PR includes the encryption changes at producer side.
diff --git a/go.mod b/go.mod index 6d53cc6028..71d9764871 100644 --- a/go.mod +++ b/go.mod @@ -14,10 +14,7 @@ require ( github.com/google/uuid v1.1.2 github.com/inconshreveable/mousetrap v1.0.0 // indirect github.com/klauspost/compress v1.10.8 - github.com/kr/pretty v0.2.0 // indirect github.com/linkedin/goavro...
12
9
4
[{"id": "G0", "claim": "serializeBatchWithEncryption is largely a copy of serializeBatch and the duplicate code should be removed or reused.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The encryption settings on ProducerOptions should be wrap...
null
apache__pulsar-client-go__566
apache/pulsar-client-go
566
defect
58ee24465bd19b4cf32ea52c0c3c113f74444029
780de8eb16b55c78ab37363daf16bd7d349fd82a
Add send error logic for connection
Signed-off-by: xiaolongran <xiaolongran@tencent.com> Fixes #564 ### Motivation Add command of SendError logic for connection
diff --git a/pulsar/internal/commands.go b/pulsar/internal/commands.go index 1adfba469a..af6bac5dd1 100644 --- a/pulsar/internal/commands.go +++ b/pulsar/internal/commands.go @@ -176,6 +176,8 @@ func baseCommand(cmdType pb.BaseCommand_Type, msg proto.Message) *pb.BaseCommand cmd.Pong = msg.(*pb.CommandPong) case p...
8
4
2
[{"id": "G0", "claim": "The indentation of the multi-line c.log.WithField chain in handleSendError may be wrong.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The TopicTerminatedError case may need the Java client's handling of changing the state...
null