Skip to content

Commit ad0c01f

Browse files
spetzlukaszzborek
andauthored
feat(server): replace crc32fast with xxHash3, use uuidV4 for random message ID (#2341)
BREAKING --------- Co-authored-by: Łukasz Zborek <[email protected]>
1 parent b5323d3 commit ad0c01f

File tree

33 files changed

+219
-92
lines changed

33 files changed

+219
-92
lines changed

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ compio-ws = { git = "https://github.com/krishvishal/compio-ws", rev = "b30c9e4cd
100100
"rustls",
101101
] }
102102
console-subscriber = "0.5.0"
103-
crc32fast = "1.5.0"
104103
crossbeam = "0.8.4"
105104
cyper = { version = "0.6.2", features = ["rustls"], default-features = false }
106105
cyper-axum = { version = "0.6.0" }
@@ -120,9 +119,9 @@ futures = "0.3.31"
120119
futures-util = "0.3.31"
121120
human-repr = "1.1.0"
122121
humantime = "2.3.0"
123-
iggy = { path = "core/sdk", version = "0.8.0-edge.2" }
124-
iggy_binary_protocol = { path = "core/binary_protocol", version = "0.8.0-edge.2" }
125-
iggy_common = { path = "core/common", version = "0.8.0-edge.2" }
122+
iggy = { path = "core/sdk", version = "0.8.0-edge.3" }
123+
iggy_binary_protocol = { path = "core/binary_protocol", version = "0.8.0-edge.3" }
124+
iggy_common = { path = "core/common", version = "0.8.0-edge.3" }
126125
iggy_connector_sdk = { path = "core/connectors/sdk", version = "0.1.0" }
127126
integration = { path = "core/integration" }
128127
keyring = { version = "3.6.3", features = ["sync-secret-service", "vendored"] }

DEPENDENCIES.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,14 @@ icu_provider: 2.1.1, "Unicode-3.0",
368368
ident_case: 1.0.1, "Apache-2.0 OR MIT",
369369
idna: 1.1.0, "Apache-2.0 OR MIT",
370370
idna_adapter: 1.2.1, "Apache-2.0 OR MIT",
371-
iggy: 0.8.0-edge.2, "Apache-2.0",
372-
iggy-bench: 0.3.0-edge.2, "Apache-2.0",
373-
iggy-bench-dashboard-server: 0.5.0-edge.2, "Apache-2.0",
374-
iggy-cli: 0.10.0-edge.2, "Apache-2.0",
375-
iggy-connectors: 0.2.0-edge.2, "Apache-2.0",
376-
iggy-mcp: 0.2.0-edge.2, "Apache-2.0",
377-
iggy_binary_protocol: 0.8.0-edge.2, "Apache-2.0",
378-
iggy_common: 0.8.0-edge.2, "Apache-2.0",
371+
iggy: 0.8.0-edge.3, "Apache-2.0",
372+
iggy-bench: 0.3.0-edge.3, "Apache-2.0",
373+
iggy-bench-dashboard-server: 0.5.0-edge.3, "Apache-2.0",
374+
iggy-cli: 0.10.0-edge.3, "Apache-2.0",
375+
iggy-connectors: 0.2.0-edge.3, "Apache-2.0",
376+
iggy-mcp: 0.2.0-edge.3, "Apache-2.0",
377+
iggy_binary_protocol: 0.8.0-edge.3, "Apache-2.0",
378+
iggy_common: 0.8.0-edge.3, "Apache-2.0",
379379
iggy_connector_postgres_sink: 0.1.0, "Apache-2.0",
380380
iggy_connector_postgres_source: 0.1.0, "Apache-2.0",
381381
iggy_connector_quickwit_sink: 0.1.0, "Apache-2.0",
@@ -670,7 +670,7 @@ serde_with_macros: 3.15.1, "Apache-2.0 OR MIT",
670670
serde_yaml_ng: 0.10.0, "MIT",
671671
serial_test: 3.2.0, "MIT",
672672
serial_test_derive: 3.2.0, "MIT",
673-
server: 0.6.0-edge.2, "Apache-2.0",
673+
server: 0.6.0-edge.3, "Apache-2.0",
674674
sha1: 0.10.6, "Apache-2.0 OR MIT",
675675
sha2: 0.10.9, "Apache-2.0 OR MIT",
676676
sharded-slab: 0.1.7, "MIT",

core/ai/mcp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
[package]
1919
name = "iggy-mcp"
20-
version = "0.2.0-edge.2"
20+
version = "0.2.0-edge.3"
2121
description = "MCP Server for Iggy message streaming platform"
2222
edition = "2024"
2323
license = "Apache-2.0"

core/bench/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
[package]
1919
name = "iggy-bench"
20-
version = "0.3.0-edge.2"
20+
version = "0.3.0-edge.3"
2121
edition = "2024"
2222
license = "Apache-2.0"
2323
repository = "https://github.com/apache/iggy"

core/bench/dashboard/server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
[package]
1919
name = "iggy-bench-dashboard-server"
2020
license = "Apache-2.0"
21-
version = "0.5.0-edge.2"
21+
version = "0.5.0-edge.3"
2222
edition = "2024"
2323

2424
[dependencies]

core/binary_protocol/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
[package]
1919
name = "iggy_binary_protocol"
20-
version = "0.8.0-edge.2"
20+
version = "0.8.0-edge.3"
2121
description = "Iggy is the persistent message streaming platform written in Rust, supporting QUIC, TCP and HTTP transport protocols, capable of processing millions of messages per second."
2222
edition = "2024"
2323
license = "Apache-2.0"

core/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
[package]
1919
name = "iggy-cli"
20-
version = "0.10.0-edge.2"
20+
version = "0.10.0-edge.3"
2121
edition = "2024"
2222
authors = ["[email protected]"]
2323
repository = "https://github.com/apache/iggy"

core/common/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717
[package]
1818
name = "iggy_common"
19-
version = "0.8.0-edge.2"
19+
version = "0.8.0-edge.3"
2020
description = "Iggy is the persistent message streaming platform written in Rust, supporting QUIC, TCP and HTTP transport protocols, capable of processing millions of messages per second."
2121
edition = "2024"
2222
license = "Apache-2.0"
@@ -42,7 +42,6 @@ bytes = { workspace = true }
4242
chrono = { workspace = true }
4343
clap = { workspace = true }
4444
comfy-table = { workspace = true }
45-
crc32fast = { workspace = true }
4645
derive_more = { workspace = true }
4746
fast-async-mutex = { version = "0.6.7", optional = true }
4847
figment = { workspace = true }
@@ -58,3 +57,4 @@ tokio = { workspace = true }
5857
toml = { workspace = true }
5958
tracing = { workspace = true }
6059
tungstenite = { workspace = true }
60+
twox-hash = { workspace = true }

core/common/src/error/iggy_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub enum IggyError {
6464
#[error("State file corrupted")]
6565
StateFileCorrupted = 15,
6666
#[error("Invalid state entry checksum: {0}, expected: {1}, for index: {2}")]
67-
InvalidStateEntryChecksum(u32, u32, u64) = 16,
67+
InvalidStateEntryChecksum(u64, u64, u64) = 16,
6868
#[error("Cannot open database, Path: {0}")]
6969
CannotOpenDatabase(String) = 19,
7070
#[error("Resource with key: {0} was not found.")]

0 commit comments

Comments
 (0)