You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by hg...@apache.org on 2026/10/07 17:42:03 UTC
(iggy) branch perf/task-per-partition updated: fix(sdk): recognize partition history changes in Swift
This is an automated email from the ASF dual-hosted git repository.
hubcio pushed a commit to branch perf/task-per-partition
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/perf/task-per-partition by this push:
new c1ce09a39 fix(sdk): recognize partition history changes in Swift
c1ce09a39 is described below
commit c1ce09a39fa89f3b4b4003b08918e7812eb5d384
Author: Hubert Gruszecki <h....@gmail.com>
AuthorDate: Wed Oct 7 19:41:37 2026 +0200
fix(sdk): recognize partition history changes in Swift
The new server error 3014 left the Swift error table incomplete and
failed the golden-vector CI check. Add its Swift mapping and refresh
the generated fixture.
---
foreign/swift/Sources/Iggy/Errors/IggyErrorCode.swift | 2 ++
foreign/swift/Tests/IggyTests/Fixtures/golden.json | 1 +
2 files changed, 3 insertions(+)
diff --git a/foreign/swift/Sources/Iggy/Errors/IggyErrorCode.swift b/foreign/swift/Sources/Iggy/Errors/IggyErrorCode.swift
index bc09e848e..fdaaec0ad 100644
--- a/foreign/swift/Sources/Iggy/Errors/IggyErrorCode.swift
+++ b/foreign/swift/Sources/Iggy/Errors/IggyErrorCode.swift
@@ -163,6 +163,7 @@ public enum IggyErrorCode: UInt32, Sendable, Hashable, CaseIterable, Codable {
case cannotDeleteConsumerOffsetFile = 3011
case cannotCreateConsumerOffsetsDirectory = 3012
case partitionIdSpaceExhausted = 3013
+ case partitionHistoryChanged = 3014
case cannotReadConsumerOffsets = 3020
case consumerOffsetNotFound = 3021
case notResolvedConsumer = 3022
@@ -413,6 +414,7 @@ extension IggyErrorCode {
case .cannotDeleteConsumerOffsetFile: "cannot_delete_consumer_offset_file"
case .cannotCreateConsumerOffsetsDirectory: "cannot_create_consumer_offsets_directory"
case .partitionIdSpaceExhausted: "partition_id_space_exhausted"
+ case .partitionHistoryChanged: "partition_history_changed"
case .cannotReadConsumerOffsets: "cannot_read_consumer_offsets"
case .consumerOffsetNotFound: "consumer_offset_not_found"
case .notResolvedConsumer: "not_resolved_consumer"
diff --git a/foreign/swift/Tests/IggyTests/Fixtures/golden.json b/foreign/swift/Tests/IggyTests/Fixtures/golden.json
index 32005aee7..66096197b 100644
--- a/foreign/swift/Tests/IggyTests/Fixtures/golden.json
+++ b/foreign/swift/Tests/IggyTests/Fixtures/golden.json
@@ -783,6 +783,7 @@
"3011": "cannot_delete_consumer_offset_file",
"3012": "cannot_create_consumer_offsets_directory",
"3013": "partition_id_space_exhausted",
+ "3014": "partition_history_changed",
"3020": "cannot_read_consumer_offsets",
"3021": "consumer_offset_not_found",
"3022": "not_resolved_consumer",