4183b69e12 
					 
					
						
						
							
							*: move from third_party to Godep  
						
						
						
						
					 
					
						2014-10-14 00:37:52 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f693c6ddf2 
					 
					
						
						
							
							etcdserver: apply bootstrap conf change  
						
						
						
						
					 
					
						2014-10-13 11:22:23 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0319b033ea 
					 
					
						
						
							
							etcdserver/raft: set context for bootstrap addnode entries  
						
						
						
						
					 
					
						2014-10-13 11:22:23 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3516cc3ee5 
					 
					
						
						
							
							*: change all ID to uint64  
						
						
						
						
					 
					
						2014-10-12 08:38:48 +08:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						77271b0663 
					 
					
						
						
							
							etcdserver: split Member into RaftAttributes and Attributes  
						
						... 
						
						
						
						The split helps to save them in different key paths, because they have
distinct life cycle on update. 
						
						
					 
					
						2014-10-09 20:28:00 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8bbbaa88b2 
					 
					
						
						
							
							*: raft related int64 -> uint64  
						
						
						
						
					 
					
						2014-10-09 14:29:21 +08:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8e8719f6ac 
					 
					
						
						
							
							etcdserver: Create, Delete -> Add, Remove  
						
						
						
						
					 
					
						2014-10-07 16:21:58 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d051af4d3d 
					 
					
						
						
							
							etcdserver: apply config change on cluster store  
						
						
						
						
					 
					
						2014-10-07 11:04:50 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5587e0d73f 
					 
					
						
						
							
							raft: compact takes index and nodes parameters  
						
						... 
						
						
						
						Before this commit, compact always compact log at current appliedindex of raft.
This prevents us from doing non-blocking snapshot since we have to make snapshot
and compact atomically. To prepare for non-blocking snapshot, this commit make
compact supports index and nodes parameters. After completing snapshot, the applier
should call compact with the snapshot index and the nodes at snapshot index to do
a compaction at snapsohot index. 
						
						
					 
					
						2014-10-07 16:03:11 +08:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						45ebfb4217 
					 
					
						
						
							
							raft: refine initial entries logic in StartNode  
						
						
						
						
					 
					
						2014-10-06 16:06:01 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						314d425718 
					 
					
						
						
							
							main/raft: write addNode ConfChange entries in log when start raft  
						
						
						
						
					 
					
						2014-10-06 14:33:12 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1308c3e809 
					 
					
						
						
							
							etcdserver: unexport EtcdServer fields where possible  
						
						
						
						
					 
					
						2014-10-03 13:34:56 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						af6b29f291 
					 
					
						
						
							
							main: move server configuration to etcdserver package  
						
						
						
						
					 
					
						2014-10-03 13:34:49 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1c11f6a144 
					 
					
						
						
							
							*: expose etcd-index in watch requests  
						
						... 
						
						
						
						This adds a StartIndex field to the Watcher interface, which represents
the Etcd-Index at which the Watcher is created.
Also refactors the HTTP tests to use a table for most handleWatch tests 
						
						
					 
					
						2014-10-02 18:10:11 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b64246720b 
					 
					
						
						
							
							etcdserver: fix test due to rebase  
						
						
						
						
					 
					
						2014-10-01 14:57:39 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e4a6c9651a 
					 
					
						
						
							
							raft: add removed  
						
						... 
						
						
						
						The usage of removed:
1. tell removed node about its removal explicitly using msgDenied
2. prevent removed node disrupt cluster progress by launching leader election
It is set when apply node removal, or receive msgDenied. 
						
						
					 
					
						2014-10-01 14:57:38 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						83137f9eba 
					 
					
						
						
							
							pkg/types: introduce a URLs type  
						
						... 
						
						
						
						Cleanup the usage of URLs into its own type so we don't have to use a
FlagValue everywhere we have a list of URLs. 
						
						
					 
					
						2014-10-01 14:41:01 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						073eb7677d 
					 
					
						
						
							
							etcdserver: move grep member logic into publish func  
						
						
						
						
					 
					
						2014-10-01 11:50:47 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a40a270e19 
					 
					
						
						
							
							etcdserver: publish self info when start  
						
						
						
						
					 
					
						2014-10-01 11:47:17 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0e8345aa73 
					 
					
						
						
							
							Merge pull request  #1143  from unihorn/136  
						
						... 
						
						
						
						*: Id -> ID for protobuf types 
						
						
					 
					
						2014-09-29 13:58:02 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						89077167c3 
					 
					
						
						
							
							etcdserver: add publish func  
						
						
						
						
					 
					
						2014-09-29 10:13:06 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1d5d2e3726 
					 
					
						
						
							
							*: Id -> ID for protobuf types  
						
						... 
						
						
						
						We use ID instead of Id in this project based on golang conventions. 
						
						
					 
					
						2014-09-26 11:49:30 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5e3fd6ee3f 
					 
					
						
						
							
							etcdserver: introduce the cluster and member  
						
						... 
						
						
						
						This introduces two new concepts: the cluster and the member.
Members are logical etcd instances that have a name, raft ID, and a list
of peer and client addresses.
A cluster is made up of a list of members. 
						
						
					 
					
						2014-09-25 18:04:10 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						45f71af33e 
					 
					
						
						
							
							pkg: move testutil to pkg  
						
						
						
						
					 
					
						2014-09-25 10:40:40 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c2ced7dc70 
					 
					
						
						
							
							etcdserver: add tests for Set and Dir=true/false  
						
						
						
						
					 
					
						2014-09-24 15:57:06 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ef0ba361df 
					 
					
						
						
							
							etcdhttp: add test for expiration time  
						
						
						
						
					 
					
						2014-09-24 15:46:40 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c28fd92d10 
					 
					
						
						
							
							etcdserver: extend storeRecorder to test parameters  
						
						
						
						
					 
					
						2014-09-24 14:33:51 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e97134e767 
					 
					
						
						
							
							etcdserver: eliminate race in sync test  
						
						
						
						
					 
					
						2014-09-23 15:49:20 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c6cb635e01 
					 
					
						
						
							
							etcdserver: refine comments of config change tests  
						
						
						
						
					 
					
						2014-09-23 13:03:30 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bc7b0108dc 
					 
					
						
						
							
							raft: ConfigChange -> ConfChange  
						
						
						
						
					 
					
						2014-09-23 12:02:44 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d92931853e 
					 
					
						
						
							
							raft: Config -> ConfigChange  
						
						... 
						
						
						
						Configure -> ProposeConfigChange
AddNode, RemoveNode -> ApplyConfigChange 
						
						
					 
					
						2014-09-22 23:39:53 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						dc36ae7058 
					 
					
						
						
							
							raft: use pb.Config instead of []byte for Configure  
						
						
						
						
					 
					
						2014-09-22 15:44:47 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b82d70871f 
					 
					
						
						
							
							raft: use EntryType in protobuf  
						
						
						
						
					 
					
						2014-09-22 15:44:46 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						aaffb9eb78 
					 
					
						
						
							
							etcdserver: add AddNode, RemoveNode  
						
						... 
						
						
						
						AddNode and RemoveNode is used to propose config change to the cluster.
If succeeds, it will add/remove node from the cluster. 
						
						
					 
					
						2014-09-22 15:44:46 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7d1126fb35 
					 
					
						
						
							
							etcdserver: init time.Time only if Expiration > 0  
						
						... 
						
						
						
						golang's concept of "zero" time does not align with the zero value of
a unix timestamp. Initializing time.Time with a unix timestamp of 0
makes time.Time.IsZero fail. Solve this by initializing time.Time only
if we care about the time. 
						
						
					 
					
						2014-09-22 15:31:31 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8ba801ec06 
					 
					
						
						
							
							etcdserver: fix sync tests  
						
						... 
						
						
						
						This is to fix possible testing failures caused by sync tests.
Changes:
1. Get rid of time sleep operations, which introduces uncertainty.
2. Use fake Store. 
						
						
					 
					
						2014-09-20 17:41:30 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ddfcb67ce3 
					 
					
						
						
							
							Merge pull request  #1118  from unihorn/133  
						
						... 
						
						
						
						etcdserver: add TestRecvSnapshot 
						
						
					 
					
						2014-09-20 17:10:01 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fac38aad33 
					 
					
						
						
							
							etcdserver: add TestRecvSlowSnapshot  
						
						
						
						
					 
					
						2014-09-19 15:09:04 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b8e59a3c6a 
					 
					
						
						
							
							etcdserver: not push ready to readyNode automatically  
						
						
						
						
					 
					
						2014-09-19 14:40:11 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f2ebd64a1b 
					 
					
						
						
							
							*: add testutil pkg  
						
						
						
						
					 
					
						2014-09-19 14:32:38 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4eb156a324 
					 
					
						
						
							
							Merge pull request  #1104  from unihorn/132  
						
						... 
						
						
						
						etcdserver: add TestDoBadLocalAction 
						
						
					 
					
						2014-09-19 09:30:34 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d5988c3ec2 
					 
					
						
						
							
							etcdserver: add TestDoBadLocalAction  
						
						
						
						
					 
					
						2014-09-19 09:22:26 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						44ab66d858 
					 
					
						
						
							
							etcdserver: add TestRecvSnapshot  
						
						
						
						
					 
					
						2014-09-18 23:19:00 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						91003cb994 
					 
					
						
						
							
							*: s/prevExists/prevExist/  
						
						
						
						
					 
					
						2014-09-18 21:25:08 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a42d52482c 
					 
					
						
						
							
							etcdserver: use simple PRNG for GenID  
						
						
						
						
					 
					
						2014-09-17 15:29:14 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f2e92d9140 
					 
					
						
						
							
							Merge pull request  #1097  from unihorn/130  
						
						... 
						
						
						
						etcdserver: use Action to fix possible data race 
						
						
					 
					
						2014-09-17 14:28:37 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b66a40495d 
					 
					
						
						
							
							raft: introduce Node interface  
						
						
						
						
					 
					
						2014-09-17 14:18:56 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ab61a8aa9a 
					 
					
						
						
							
							*: init for on disk snap support  
						
						
						
						
					 
					
						2014-09-17 13:56:12 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0ad0e24a86 
					 
					
						
						
							
							etcdserver: use Action to fix possible data race  
						
						
						
						
					 
					
						2014-09-17 13:48:03 -07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a91d745c46 
					 
					
						
						
							
							etcdserver: refine printout  
						
						
						
						
					 
					
						2014-09-16 14:54:22 -07:00