Skip to content

Commit

Permalink
bump etcd-client to v0.14
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 committed Jul 12, 2024
1 parent 36a3e5e commit 9c75ee3
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 45 deletions.
44 changes: 3 additions & 41 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Add missing APIs for `Builder` in v0.10.0.

## etcd [0.4.0] - 2023-10-07

### Changed

- etcd: Update `etcd-client` to v0.12.1.

## tonic-build [0.4.1] - 2023-10-07

### Fixed
Expand All @@ -144,12 +138,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- tonic-build: Update methods `send_gzip` -> `send_compressed`, `accept_gzip` -> `accept_compressed` in generated clients and servers.

## tonic, etcd [0.3.0] - 2023-07-20
## tonic [0.3.0] - 2023-07-20

### Changed

- tonic: Update `tonic` and `tonic-build` to v0.9.2.
- etcd: Update `etcd-client` to v0.11.1.

## [0.2.25] - 2023-07-03

Expand All @@ -171,17 +164,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- etcd: Add `CampaignResponse::{take_header, take_leader}`.
- tokio: Add `tokio::task::futures::TaskLocalFuture`.

### Changed

- s3: Update `aws-sdk-s3` to v0.28.

### Fixed

- etcd: Fix the behavior when campaign is called multiple times.


## [0.2.22] - 2023-04-19

Expand Down Expand Up @@ -213,7 +201,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- madsim: Fix leak of task introduced in 0.2.19.
- etcd,tonic: Fix leak of RPC task in server.
- tonic: Fix leak of RPC task in server.

## [0.2.19] - 2023-04-07

Expand All @@ -237,15 +225,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- madsim: Replace `SmallRng` with `Xoshiro256PlusPlus` for reproducibility across platforms.
- etcd: Fix election implementation. Put a key for each candidate.
- tonic: Return an error when the server stream is broken.

## [0.2.17] - 2023-02-17

### Fixed

- madsim: Prevent deadlock when killing a node.
- etcd: Support "etcdserver: request is too large".
- s3: Make fields public for `*Output` structs.

## [0.2.16] - 2023-02-14
Expand All @@ -269,10 +255,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- madsim: After the initial task completes, the other tasks of the node are dropped.

### Fixed

- etcd: Return error on "lease not found".

## [0.2.14] - 2023-01-30

### Added
Expand All @@ -282,21 +264,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- tonic/etcd/rdkafka: Resolve DNS on connection.
- tonic/rdkafka: Resolve DNS on connection.

## [0.2.13] - 2023-01-11

### Added

- etcd: Add `KeyValue::{lease, create_revision, mod_revision}` API.
- etcd: Add maintenance `status` API.

### Fixed

- madsim: Fix join cancelled tasks.
- etcd: Fix response stream of `keep_alive`.
- etcd: Fix waking up other candidates on leadership resign or lease revoke.
- etcd: Fix unimplemented election `observe`.

## [0.2.12] - 2022-12-13

Expand All @@ -315,13 +289,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- tokio: Add `task::Builder::new_current_thread` but panic inside.
- tonic: Add `service` module and `Extensions`.
- tonic: Support interceptor.
- etcd: Support load and dump in toml format.

### Fixed

- tonic: Fix passing metadata in request and response. Add `content-type` and `date` field.
- tonic: Fix panic on unimplemented error.
- etcd: Fix lease grant.

## [0.2.10] - 2022-11-09

Expand All @@ -339,7 +311,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- etcd: Add lease and election API.
- madsim: Expose `JoinHandle::cancel_on_drop`.

## [0.2.7] - 2022-09-13
Expand All @@ -362,22 +333,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- madsim: Add hook function for RPC.
- etcd: Add logging in etcd service.

### Removed

- madsim: Deprecate `Network::(dis)connect(2)` functions. Rename them to `(un)clog_*`.

### Fixed

- etcd: Complete `Error` type and fix the error kind of `request timed out`.

## [0.2.5] - 2022-09-02

### Added

- Add simulation crate of `etcd-client`.

### Changed

- madsim: Forbid creating system thread in simulation.
Expand Down
110 changes: 110 additions & 0 deletions madsim-etcd-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.5.0] - 2024-07-12

### Changed

- Update `etcd-client` to v0.14.0.

## [0.4.0] - 2023-10-07

### Changed

- Update `etcd-client` to v0.12.1.

## [0.3.0] - 2023-07-20

### Changed

- Update `etcd-client` to v0.11.1.

## [0.2.23] - 2023-05-22

### Added

- Add `CampaignResponse::{take_header, take_leader}`.

### Fixed

- Fix the behavior when campaign is called multiple times.

## [0.2.20] - 2023-04-13

### Fixed

- Fix leak of RPC task in server.

## [0.2.18] - 2023-03-08

### Fixed

- Fix election implementation. Put a key for each candidate.

## [0.2.17] - 2023-02-17

### Fixed

- Support "etcdserver: request is too large".

## [0.2.15] - 2023-02-07

### Fixed

- Return error on "lease not found".

## [0.2.14] - 2023-01-30

### Fixed

- Resolve DNS on connection.

## [0.2.13] - 2023-01-11

### Added

- Add `KeyValue::{lease, create_revision, mod_revision}` API.
- Add maintenance `status` API.

### Fixed

- Fix response stream of `keep_alive`.
- Fix waking up other candidates on leadership resign or lease revoke.
- Fix unimplemented election `observe`.

## [0.2.11] - 2022-12-02

### Added

- Support load and dump in toml format.

### Fixed

- Fix lease grant.

## [0.2.8] - 2022-09-26

### Added

- Add lease and election API.

## [0.2.6] - 2022-09-05

### Added

- Add logging in etcd service.

### Fixed

- Complete `Error` type and fix the error kind of `request timed out`.

## [0.2.5] - 2022-09-02

### Added

- Add simulation crate of `etcd-client`.
8 changes: 4 additions & 4 deletions madsim-etcd-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "madsim-etcd-client"
version = "0.4.0+0.12.1"
version = "0.5.0+0.14.0"
edition = "2021"
authors = ["Runji Wang <[email protected]>"]
description = "The etcd simulator on madsim."
Expand All @@ -13,18 +13,18 @@ license = "Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[target.'cfg(not(madsim))'.dependencies]
etcd-client = "0.12"
etcd-client = "0.14"

[target.'cfg(madsim)'.dependencies]
http = "0.2"
http = "1"
futures-util = "0.3"
madsim = { version = "0.2.20", path = "../madsim" }
serde = { version = "1.0", features = ["derive"] }
serde_with = "3"
spin = "0.9"
thiserror = "1"
toml = "0.8"
tonic = { version = "0.10", default-features = false, features = ["transport"] }
tonic = { version = "0.12", default-features = false, features = ["transport"] }
tokio = { version = "1", features = ["sync"] }
tracing = "0.1"

Expand Down

0 comments on commit 9c75ee3

Please sign in to comment.