Anthony Romano
322e6ff022
test: fix PASSES=fmt for OSX
...
OSX dirname doesn't support multiple arguments; use a for loop instead.
Fixes #8359
2017-08-02 14:43:15 -07:00
Gyu-Ho Lee
ae748716e6
Merge pull request #8350 from gyuho/fix-typo
...
ctlv3/command: remove double-quote typos in fields printer
2017-08-01 17:24:41 -07:00
Gyu-Ho Lee
9040b3eb2b
ctlv3/command: remove double-quote typos in fields printer
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-01 17:21:15 -07:00
Anthony Romano
d543870966
Merge pull request #8347 from heyitsanthony/use-from-grpc-md
...
clientv3: use FromOutgoingContext to bucket watches
2017-08-01 17:05:56 -07:00
Anthony Romano
98adbbf031
Merge pull request #8321 from zbwright/revise-readme
...
docs: revising to match sidebar structure.
2017-08-01 16:55:33 -07:00
Gyu-Ho Lee
45e6b658dd
Merge pull request #8349 from gyuho/fix-lease-test
...
clientv3/integration: match context canceled on client close
2017-08-01 14:53:31 -07:00
Anthony Romano
9f1bfd9e4b
Merge pull request #8335 from heyitsanthony/test-put-atmostonce
...
clientv3: put at most once
2017-08-01 14:52:04 -07:00
Gyu-Ho Lee
b89ef7e295
clientv3/integration: match context canceled on client close
...
Fix https://github.com/coreos/etcd/issues/8329 .
Different behavior from https://github.com/grpc/grpc-go/pull/1369 ,
in grpc-go transportMonitor.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-01 13:25:13 -07:00
Anthony Romano
7de417d745
clientv3/integration: use grpc metadata to create unique watch ctxs
2017-08-01 13:14:31 -07:00
Anthony Romano
fdba9e5fb1
clientv3/integration: test Put succeeds following SetEndpoint
...
Still gets transport closing errors, but no unavailable endpoint errors.
2017-08-01 12:59:37 -07:00
Anthony Romano
10db0319d1
ordering: use default clients to populate etcd data
...
Switching endpoints on the same client was triggering balancer
reconnect errors that should be tested in clientv3/integration.
2017-08-01 12:56:04 -07:00
Anthony Romano
4669aaa9a2
clientv3: only retry mutable KV RPCs if no endpoints found
...
Was retrying when it shouldn't, causing multiple puts
2017-08-01 12:55:51 -07:00
Anthony Romano
8385c6682a
clientv3/integration: test client puts at most once on bad connection
2017-08-01 10:31:13 -07:00
Anthony Romano
585b1d7bdc
Merge pull request #8333 from fanminshi/retrieve_keep_from_index
...
mvcc: fix TestHashKVWhenCompacting hash mismatch
2017-08-01 09:57:08 -07:00
Anthony Romano
1c75c383a1
clientv3: use FromOutgoingContext to bucket watches
...
Watches were bucketed on string(ctx) for historical reasons;
metadata.FromOutgoingContext should be enough to key watches now.
Fixes #8338
2017-08-01 09:26:07 -07:00
fanmin shi
df5a3d15ce
mvcc: increase rev for TestHashKVWhenCompacting
2017-07-31 17:59:49 -07:00
fanmin shi
bb86c327e2
mvcc: HashKV gets keep from kvindex.Keep
2017-07-31 17:59:49 -07:00
fanmin shi
4c2c5b0084
mvcc: add tests for Keep
2017-07-31 17:59:42 -07:00
Gyu-Ho Lee
e0843c691b
Merge pull request #8322 from gyuho/health-grpc-proxy
...
*: add /health endpoint to grpc-proxy
2017-07-31 15:45:42 -07:00
Gyu-Ho Lee
073fa562d8
Merge pull request #8342 from gyuho/ep-exit
...
ctlv3: exit non-zero on unhealty ep command
2017-07-31 15:45:30 -07:00
Anthony Romano
cd142a0d1c
Merge pull request #8324 from heyitsanthony/txn-cmp-lease
...
api: lease comparison target
2017-07-31 14:52:14 -07:00
Dima Kurguzov
6603a77561
ctlv3: exit non-zero on unhealty ep command
2017-07-31 14:17:01 -07:00
Gyu-Ho Lee
661da1e609
e2e: test /metrics, /health endpoint in grpc-proxy
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-31 14:07:59 -07:00
Gyu-Ho Lee
b8fd5c3dba
etcdmain: add '/health' endpoint to grpc-proxy
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-31 14:07:59 -07:00
Gyu-Ho Lee
cd37ef2c1b
*: expose etcdhttp.Health, define proxy health handler
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-31 14:07:54 -07:00
fanmin shi
7b8fb3cf0a
mvcc: add and implement Keep api to index
...
Keep finds all revisions to be kept for a Compaction at the given rev.
2017-07-31 14:04:03 -07:00
Anthony Romano
341664f7b6
integration: test txn lease comparisons
2017-07-31 13:00:04 -07:00
Anthony Romano
79660db61b
etcdctl: add lease comparison to txn command
2017-07-31 13:00:04 -07:00
Anthony Romano
52b031cfa2
clientv3: accept Compare_LEASE in Compare()
2017-07-31 13:00:04 -07:00
Anthony Romano
ec4ca4408f
etcdserver: support lease txn comparison
2017-07-31 13:00:04 -07:00
Anthony Romano
71e56a44b7
*: regenerate protobuf assets
2017-07-31 13:00:04 -07:00
Anthony Romano
d8ca2bbffb
etcdserverpb: add lease to txn comparison targets
...
Also shifts down fields following target_union in case there's any more
reason to expand. OK since range_end is still pre-release.
2017-07-31 13:00:04 -07:00
Anthony Romano
2951faf770
Merge pull request #8315 from heyitsanthony/experimental-ordering
...
add experimental serializable ordering feature to grpcproxy
2017-07-28 14:48:53 -07:00
Gyu-Ho Lee
f216165aad
Merge pull request #8332 from gyuho/peer-url
...
ctlv3: print 'ETCD_INITIAL_ADVERTISE_PEER_URLS' in 'member add'
2017-07-28 14:21:21 -07:00
Gyu-Ho Lee
98fc5e5769
ctlv3: print 'ETCD_INITIAL_ADVERTISE_PEER_URLS' in 'member add'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-28 13:53:13 -07:00
Anthony Romano
ca586147bd
Merge pull request #8323 from fanminshi/fix_TestV3HashKV_Hash_MisMatch
...
integeration: fix TestV3HashKV hash mismatch
2017-07-28 10:45:43 -07:00
fanmin shi
451b062184
mvcc/backend: add TestBackendWritebackForEach to backend_test.go
2017-07-28 09:39:48 -07:00
fanmin shi
785deebd62
mvcc/backend: enforce ordering for UnsafeForEach in read_tx.go
...
This pr changes UnsafeForEach to traverse on boltdb before on the buffer.
This ordering guarantees that UnsafeForEach traverses in the same order
before or after the commit of buffer.
2017-07-28 09:30:23 -07:00
Gyu-Ho Lee
b36463efe5
Merge pull request #8312 from gyuho/health-lists
...
api/etcdhttp: serve error information in '/health', marshal health in JSON
2017-07-27 15:46:39 -07:00
Gyu-Ho Lee
8c7b639f81
Documentation/v2: update /health response
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-27 15:37:04 -07:00
Gyu-Ho Lee
4267d368df
api/etcdhttp: serve error information in '/health', marshal health in JSON
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-27 15:36:59 -07:00
Beth Wright
ff1c8c2191
docs: revising to match sidebar structure.
2017-07-27 15:06:59 -07:00
Gyu-Ho Lee
8365233d2a
Merge pull request #8296 from gyuho/grpc
...
vendor: upgrade grpc/grpc-go to v1.5.1
2017-07-27 13:21:20 -07:00
Anthony Romano
f6acd0316c
etcdmain: add --experimental-serializable-ordering to grpc proxy
...
Connect to another endpoint on stale reads.
2017-07-27 12:39:30 -07:00
Gyu-Ho Lee
9fee4b77de
bill-of-materials: update 'grpc' LICENSE
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-27 10:47:24 -07:00
Gyu-Ho Lee
8a589d2d73
grpcproxy/cluster_test: serve grpc server after register service
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-27 10:47:24 -07:00
Gyu-Ho Lee
be794d586c
vendor: upgrade grpc-go to v1.5.1
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-27 10:47:17 -07:00
Anthony Romano
fca56f132a
ordering: use x/net/context and add doc.go
...
Compilation troubles when using the "context" package.
2017-07-26 20:58:41 -07:00
Anthony Romano
5088ae3e67
docs: add ordering wrapper as experimental feature
2017-07-26 20:58:41 -07:00
Xiang Li
2a348fb8e9
Merge pull request #8263 from fanminshi/hash_by_rev
...
api: hash by rev
2017-07-26 11:22:33 -07:00