Yicheng Qin
739db062d4
Merge pull request #2630 from yichengq/remove-coreos-pkg
...
pkg: remove unused pkg/coreos
2015-04-06 13:41:03 -07:00
Yicheng Qin
2b830dd64b
pkg: remove unused pkg/coreos
...
The package was used in upgrade path, and is not used anywhere now.
2015-04-06 13:33:42 -07:00
Yicheng Qin
7d10385ec6
Merge pull request #2617 from yichengq/add-tls-test
...
integration: add TestTLSClusterUsingDiscovery and TestDoubleTLSCluster
2015-04-06 09:46:08 -07:00
Yicheng Qin
51548acb4f
rafthttp: reduce allocs in msgappv2
...
The patch decreases the allocs when sending one AppEntry in msgappv2
stream from 30 to 9. This helps reduce CPU load when etcd is under
high write load.
2015-04-06 09:45:39 -07:00
Xiang Li
27083093d3
Merge pull request #2627 from mateusbraga/patch-2
...
osutil: fix InterruptHandler comment position
2015-04-04 09:06:55 -07:00
Mateus Braga
cec8466ad2
osutil: fix InterruptHandler comment position
2015-04-04 11:32:42 -04:00
Yicheng Qin
c777516a5d
Merge pull request #2620 from yichengq/new-rafthttp-msgapp
...
rafthttp: introduce msgappv2 stream format
2015-04-03 17:13:05 -07:00
Yicheng Qin
0d88e0d111
rafthttp: introduce msgappv2 stream format
...
msgappv2 stream is used to send all MsgApp, and replaces the
functionality of msgapp stream. Compared to v1, it has several
advantanges:
1. The output message is exactly the same with the input one, which
cannot be done in v1.
2. It uses one connection to stream persistently, which prevents message
reorder and saves the time to request stream.
3. It transmits 10 addiontional bytes in the procedure of committing one
proposal, which is trivia for idle time.
4. It transmits less bytes when committing mutliple proposals or keep
committing proposals.
2015-04-03 17:08:56 -07:00
Yicheng Qin
89495f9194
Merge pull request #2626 from yichengq/fix-raft-status
...
raft: generate correct json-format status
2015-04-03 13:54:46 -07:00
Yicheng Qin
fa96e64b43
Merge pull request #2624 from yichengq/fix-raft-storage
...
raft: lock storage when compact it
2015-04-03 13:51:06 -07:00
Yicheng Qin
3d32c059dd
raft: generate correct json-format status
...
Current json-format string misses the double quote around status field.
Use %q for better clearance.
2015-04-03 13:49:46 -07:00
Yicheng Qin
422cb7cb06
Merge pull request #2621 from yichengq/fix-inflight
...
raft: fix freeTo fails to free
2015-04-03 13:28:29 -07:00
Yicheng Qin
d91ea7f199
raft: fix freeTo fails to free
...
If freeTo is called when to is set to the lastest inflight, freeTo
fails to free the slots.
2015-04-03 13:21:26 -07:00
Yicheng Qin
c6de464587
raft: lock storage when compact it
...
etcd now compact raft storage asynchronously, and append entry to raft
storage may happen at the same time. Add the lock to fix the bug that
the entries saved in storage may be organized in a wrong way.
2015-04-03 11:38:01 -07:00
Xiang Li
471aa1aa89
Merge pull request #2622 from xiang90/fix_watcher
...
store: fix watcher removal
2015-04-03 10:39:03 -07:00
Xiang Li
999917010d
store: fix watcher removal
2015-04-03 10:13:43 -07:00
Kelsey Hightower
c38a6a38bb
Merge pull request #2619 from kelseyhightower/update-docker-docs
...
Documentation: update docker docs to use new image and mount certs
2015-04-02 13:39:24 -07:00
Kelsey Hightower
3db33d19e9
Documentation: update docker docs to use new image and mount certs
2015-04-02 13:22:27 -07:00
Yicheng Qin
73936d1874
integration: add TestDoubleTLSCluster
2015-04-02 10:08:40 -07:00
Yicheng Qin
ccb0934e22
integration: add TestTLSClusterUsingDiscovery
2015-04-02 00:01:39 -07:00
Yicheng Qin
39633850d1
Merge pull request #2610 from yichengq/add-tls-test
...
integration: add TestTLSClusterOf3
2015-04-01 21:57:44 -07:00
Yicheng Qin
d2efa2a615
integration: add TestTLSClusterOf3
2015-04-01 20:55:00 -07:00
Yicheng Qin
a719f78046
Merge pull request #2616 from yichengq/stop-raft
...
etcdserver: stop raft node goroutine before stop server
2015-04-01 11:53:24 -07:00
Yicheng Qin
9e5743c816
etcdserver: stop raft node goroutine before stop server
...
Stop raftNode goroutine before stopping server goroutine, so
server.Stop does stop all underlying stuffs elegantly now. This fixes
the problem that previous-round lock on WAL may not be released when
etcd is restarted.
2015-04-01 11:20:51 -07:00
Yicheng Qin
2c7a8c2216
Merge pull request #2615 from yichengq/fix-upgrade-test
...
integration: fix upgrade test
2015-04-01 09:44:01 -07:00
Yicheng Qin
f3baf4517b
integration: fix upgrade test
...
Upgrade test listens on a fixed port, which may fail with 'bind address
already in use' if the port was just used to send tcp sockets.
The commit makes it listen on a random available port to avoid this.
2015-03-31 16:17:58 -07:00
Barak Michener
9ad2eaf16c
Merge pull request #2614 from barakmich/typos
...
etcdctl: fix import typos
2015-03-31 16:43:43 -04:00
Barak Michener
ad7a12066f
etcdctl: fix import typos
2015-03-31 16:41:35 -04:00
Yicheng Qin
8ac7639459
Merge pull request #2612 from yichengq/fix-isolate
...
pkg/netutil: fix DropPort and RecoverPort in linux
2015-03-31 11:58:12 -07:00
Xiang Li
a4fefd7f73
Merge pull request #2613 from xiang90/fix_import
...
etcdctl: wait for goroutine existing
2015-03-31 11:56:35 -07:00
Xiang Li
1024f587e0
etcdctl: main routine of import command should wait for goroutine existing
2015-03-31 11:55:19 -07:00
Xiang Li
46cfbb3a26
Merge pull request #2605 from xiang90/build
...
build: do not build internal debugging tool
2015-03-31 11:47:00 -07:00
Xiang Li
a9157ce6d3
build: do not build internal debugging tool
...
We are still playing around with the dump-log tool.
Stop building it publicly until we are happy with its
ux and functionality.
2015-03-31 11:45:12 -07:00
Xiang Li
b67ee7d222
Merge pull request #2608 from xiang90/walallocation
...
wal: reduce allocation when encoding int64
2015-03-31 10:55:20 -07:00
Xiang Li
44665fc055
Merge pull request #2611 from xiang90/ctlport
...
etcdct: adopt new client port by default
2015-03-31 10:47:06 -07:00
Yicheng Qin
24f9ba8ee8
pkg/netutil: fix DropPort and RecoverPort in linux
...
The iptables commands in DropPort do not work because setting
destination-port flag without specifying the protocol is invalid.
2015-03-31 10:39:31 -07:00
Xiang Li
8ac565bc38
etcdct: adopt new client port by default
...
etcdserver uses both 4001 and 2379 for serving client requests by
default. etcdctl supports both ports by default.
2015-03-31 09:56:42 -07:00
Xiang Li
8bcaa2bfdf
wal: reduce allocation when encoding int64
2015-03-30 20:41:31 -07:00
Xiang Li
2990c29a71
Merge pull request #2607 from xiang90/walallocation
...
wal: reduce allocation when encoding entries
2015-03-30 20:31:00 -07:00
Xiang Li
c32cca3a4f
wal: reduce allocation when encoding entries
2015-03-30 19:20:46 -07:00
Xiang Li
4cbbbb6c46
Merge pull request #2606 from xiang90/update
...
*: update context pkg
2015-03-30 18:59:39 -07:00
Xiang Li
73adb20166
*: update context pkg
2015-03-30 18:58:44 -07:00
Xiang Li
77a04cda0c
Merge pull request #2597 from xiang90/wal-repair
...
wal: fix the unexpectedEOF error in the last wal.
2015-03-30 13:49:05 -07:00
Xiang Li
3e9a033cd2
wal: repair decoder needs to update its crc
2015-03-30 13:45:23 -07:00
Xiang Li
253f7c4ae1
Merge pull request #2522 from xiang90/user_pw
...
etcdserver/etcdhttp: do not return back the password of a user
2015-03-30 13:42:41 -07:00
Xiang Li
80d08ca280
Merge pull request #2521 from xiang90/sec_remove_lastmodified
...
doc/rfc: remove unimplemented stuff
2015-03-30 13:42:31 -07:00
Xiang Li
c0f7ca26a3
Merge pull request #2587 from xiang90/ctl
...
etcdctl: add import command
2015-03-30 13:42:01 -07:00
Xiang Li
fbfa6ba86a
Merge pull request #2598 from xiang90/raft_bench
...
raft: node bench matches reality
2015-03-30 09:55:13 -07:00
Yicheng Qin
81750ab2d7
Merge pull request #2600 from yichengq/failure-isolate
...
tools/functional-tester: add isolate failures
2015-03-29 22:43:51 -07:00
Xiang Li
0b9a318e68
etcdserver: make the wal repairing logic clear
2015-03-29 21:10:28 -07:00