Connor Peet
e74db2a81c
docs: fix version numbers
2023-07-30 09:59:05 -07:00
Connor Peet
a974833ddc
1.1.2
2023-07-30 09:58:40 -07:00
Connor Peet
edf9ab0389
fix: elections sometimes electing >1 leader
...
Fixes #176
Fixes #158
2023-07-30 09:58:18 -07:00
Artur Malchanau
eb99050058
fix: a race condition in Host.resetAllServices ( #182 )
...
Fix a race condition in Host.resetAllServices() caused by calling
channel.close() as a callback of grpc.Client.waitForReady().
The root cause is gRPC subchannel pool state could become into
invalid state when global subchannel pool state is used, and there are
multiple channels used the same subchannel from the pool.
Closing the channel inside of waitForReady callback prevent all the
remaining callbacks for the subchannel from the correct state transition
handling.
Closing the channel inside of waitForReady callback prevents
the subchannel's remaining callbacks from the correct state transition handling.
The fix is to use setImmediate to allow the remaining callbacks for the
subchannel to process the state transition.
2023-07-28 10:12:09 -07:00
Connor Peet
d9013a8258
bump min node versions
2023-07-28 10:11:10 -07:00
Connor Peet
7945875ba1
1.1.1
2023-07-28 10:08:00 -07:00
Connor Peet
2ca0498a41
chore: update dependencies
2023-07-28 10:07:55 -07:00
dependabot[bot]
d0053ea162
chore(deps-dev): bump protobufjs from 6.10.1 to 7.2.4 ( #189 )
...
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js ) from 6.10.1 to 7.2.4.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases )
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/protobufjs/protobuf.js/compare/v6.10.1...protobufjs-v7.2.4 )
---
updated-dependencies:
- dependency-name: protobufjs
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-28 08:54:30 -07:00
microsoft-github-policy-service[bot]
00bfb8bf3a
Microsoft mandatory file ( #170 )
...
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
2022-08-31 08:46:55 -07:00
Connor Peet
912f66b67d
typo
2021-04-11 09:19:24 -07:00
Ivan Pegashev
3853acfb4e
Fixed example in docs ( #144 )
2021-03-10 08:16:50 -08:00
Connor Peet
ebad10f0f6
chore: clean up election tests
2020-12-01 22:30:56 -08:00
Connor Peet
eff6505b3c
chore: clean up election tests
2020-12-01 22:22:58 -08:00
Connor Peet
5c66c0d6b6
fix: leases revoked or released before grant completes leaking
2020-12-01 22:18:44 -08:00
Connor Peet
c296d0337b
1.1.0
2020-11-28 20:15:36 -08:00
Connor Peet
ee47cc68ab
docs: elections
2020-11-28 20:10:17 -08:00
Connor Peet
4b92eed156
refactor: apply treatment to campaigns as well
...
Campaigns are now, like observers, implemented as RAII-style classes
that avoid some of the complex manual states we dealt with before.
Resignation is simplified to a revokation of the lease.
2020-11-28 19:32:15 -08:00
Connor Peet
a7ae3d67ec
refactor: solidify observer side of elections
...
Previously observation was done "magically" by listening to an event.
This made it hard to monitor status and lifecycle. This moves the logic
into a subclass. Additionally, revisions were not being maintained
between different queries introducing the possibility for race
conditions. The inner event loop is functionally identical to the
one in the etcd3 official client.
2020-11-28 16:56:22 -08:00
Connor Peet
cead70a0d0
prevent user errors in watcher event listeners from causing backoffs in the underlying stream
2020-11-28 14:46:14 -08:00
Connor Peet
69129eb94b
fix: buffers not allowed in typings Namespace.get(key)
2020-11-28 12:56:55 -08:00
Connor Peet
0f7447c620
Merge branch 'pr/yujuiting/66'
2020-11-28 12:56:31 -08:00
moonrailgun
1c5b748edc
docs: fix incorrect docs link ( #139 )
2020-11-03 22:00:39 -08:00
yehiyam
0a951cc663
docs: fix usage example of defaultCallOptions
2020-09-22 08:53:35 -07:00
Connor Peet
964d7d8e2a
docs: update
2020-09-19 15:22:13 -07:00
Connor Peet
3476cc8442
1.0.2
2020-09-19 15:20:42 -07:00
Connor Peet
5f973eb47a
feat: allow passing a set of default CallOptions in new Etcd3()
2020-09-19 12:38:13 -07:00
Connor Peet
66b17697c5
fix: don't include the deadline in inherited lease call options
2020-09-18 20:46:53 -07:00
Connor Peet
b81df9192d
docs: fix error in lease example
2020-09-18 20:29:02 -07:00
Connor Peet
b9b2cd2a22
fix: update version of cockatiel to fix incompatible TypeScript types
...
Fixes #128
2020-09-18 20:25:00 -07:00
Connor Peet
ac38732581
1.0.1
2020-06-21 16:45:12 -07:00
Connor Peet
5aa4d6c272
fix: proto files not included in npm package
2020-06-21 16:45:07 -07:00
Connor Peet
2e2b6c5658
fix: flakey watch test
2020-06-21 14:29:10 -07:00
Connor Peet
a1fc5045f7
docs: fix readme example
2020-06-21 14:07:50 -07:00
Thomas Hunter II
145ebd3408
async README tweak ( #126 )
2020-06-21 14:04:33 -07:00
Connor Peet
a9d8033855
fix: broken links in readme with new docs
2020-06-21 09:47:40 -07:00
Connor Peet
9248ea8efd
1.0.0
2020-06-21 09:41:07 -07:00
Connor Peet
0fc9bc3a59
docs: prep for 1.0.0 release
2020-06-21 09:41:00 -07:00
Connor Peet
9dce5500cc
fix: various test flakes
2020-06-20 20:09:07 -07:00
Connor Peet
204eb2da17
feat: breaking: add cockatiel-based retry policies
2020-06-20 19:43:32 -07:00
Connor Peet
7b8e971ecd
fix: bad test cleanup causing failures
2020-06-18 08:19:45 -07:00
Connor Peet
27cff616f2
feat: allow disabling automatic lease keep-alives
...
Fixes : #110
2020-06-17 22:41:18 -07:00
Connor Peet
e6eaff250a
fix: mark leases as lost if the watch connection is alive but etcd is unresponsive
...
Fixes #110
2020-06-17 22:34:31 -07:00
Connor Peet
d50fb8a270
feat: allow apply call options to authentication token exchange
...
Fixes #111
2020-06-16 21:21:37 -07:00
Connor Peet
0ac0697373
fix: skip test in older version that lacks permission check
2020-06-16 21:14:46 -07:00
Connor Peet
b5306c9dd7
fix: handle errors that happen when a watch is created
...
Fixes #114
2020-06-16 21:07:14 -07:00
Connor Peet
dacc0805c7
chore: try to fix flaking lease test
2020-06-16 20:44:06 -07:00
Connor Peet
3fafea2e23
feat: add exists helper
2020-06-15 22:56:46 -07:00
Connor Peet
b51c22984d
fix: mismatched package-lock
2020-06-15 22:28:14 -07:00
Connor Peet
304130afeb
docs: update references mixer -> microsoft
2020-06-15 22:25:33 -07:00
Connor Peet
6d67af2e24
feat: apply update grpc module
2020-06-15 22:22:12 -07:00