Xiang Li
|
06f1b7f2e8
|
refactor change Index to modifiedIndex
|
2013-11-09 20:49:19 -08:00 |
Xiang Li
|
d8e5994c35
|
feat attach etcd-index,raft-index,raft-term to header
|
2013-11-09 20:20:47 -08:00 |
Xiang Li
|
d87e0e93d3
|
fix get return the last modified index of the node
|
2013-11-09 19:05:38 -08:00 |
Xiang Li
|
eca433cee5
|
fix add sync_command.go
|
2013-11-09 18:59:43 -08:00 |
Xiang Li
|
6156d5c790
|
refactor separate etcd index from raft index
|
2013-11-09 17:55:54 -08:00 |
Xiang Li
|
0372cdea23
|
refactor move sync command into etcd
|
2013-11-08 16:00:58 -08:00 |
Brandon Philips
|
6a074d4f6f
|
chore(*.go): add copyright notice
|
2013-11-08 14:04:15 -08:00 |
Xiang Li
|
acd940a450
|
refactor comments on IsPermanent
|
2013-11-08 13:37:30 -08:00 |
Xiang Li
|
4c1d864095
|
fix cleanup
|
2013-11-06 21:27:39 -08:00 |
Xiang Li
|
c307b6abca
|
fix watcher_hub
|
2013-11-06 21:19:37 -08:00 |
Xiang Li
|
55058c64f5
|
feat wathch for expiring need to be pending
|
2013-11-05 23:30:48 -08:00 |
Xiang Li
|
779195eb4f
|
fix bug in update ttl
|
2013-11-05 22:18:54 -08:00 |
Xiang Li
|
49c55477e5
|
refactor clean up
|
2013-11-05 21:56:21 -08:00 |
Xiang Li
|
797d996535
|
init sync to delete expiring keys
|
2013-11-05 21:47:25 -08:00 |
Ben Johnson
|
8c6606ed12
|
Fix TTL migration issue.
|
2013-11-05 15:57:53 -07:00 |
Xiang Li
|
1d49098954
|
feat add heap top
|
2013-11-04 22:13:26 -08:00 |
Xiang Li
|
07b52ee24c
|
fix save and recovery
|
2013-11-04 21:51:14 -08:00 |
Xiang Li
|
0d8510df33
|
refactor use push
|
2013-11-04 21:36:05 -08:00 |
Xiang Li
|
efe431ead0
|
refactor add push/pop function
|
2013-11-04 21:33:23 -08:00 |
Xiang Li
|
c5a6f9bb6b
|
fix iszero
|
2013-11-04 21:22:22 -08:00 |
Xiang Li
|
3f6d6cf4c6
|
refactor use time.IsZero
|
2013-11-04 20:56:41 -08:00 |
Xiang Li
|
c05df9e3f5
|
refactor add newTTLKeyHeap function
|
2013-11-04 20:31:24 -08:00 |
Xiang Li
|
b9593b80ec
|
feat add update heap test
|
2013-11-03 23:51:48 -08:00 |
Xiang Li
|
5394c8a894
|
feat add ttl heap
|
2013-11-03 23:34:47 -08:00 |
Xiang Li
|
9d0de611a7
|
feat add snapCount parameter
|
2013-10-30 17:36:15 -07:00 |
Xiang Li
|
0e15962cef
|
Merge pull request #276 from xiangli-cmu/feat-kvpair-ttl
feat kvpair include ttl
|
2013-10-30 15:56:28 -07:00 |
Xiang Li
|
107762e82a
|
fix snapshot
|
2013-10-30 15:14:34 -07:00 |
Ben Johnson
|
ddf527e092
|
Add version upgrade endpoint.
|
2013-10-29 15:49:10 -06:00 |
Xiang Li
|
ec175d4c47
|
test add test for ttl in kv pair
|
2013-10-28 09:42:54 -07:00 |
Ben Johnson
|
23dc0b9317
|
Merge branch '0.2' of https://github.com/coreos/etcd into versioning
Conflicts:
server/v2/put_handler.go
|
2013-10-28 06:39:56 -06:00 |
Ben Johnson
|
aa9ae32998
|
Internal versioning.
|
2013-10-27 14:09:40 -06:00 |
Xiang Li
|
7b60f8bdc3
|
feat kvpair include ttl
|
2013-10-26 21:21:48 -07:00 |
Xiang Li
|
1fb3799118
|
fix put ttl
|
2013-10-26 21:04:44 -07:00 |
Xiang Li
|
6803d077b9
|
fix store pacakge pass go vet
|
2013-10-21 12:37:22 -07:00 |
Ben Johnson
|
23119d1672
|
Refactor store tests.
|
2013-10-20 16:09:45 -06:00 |
Xiang Li
|
61f238f22e
|
Merge pull request #255 from xiangli-cmu/0.2-fix-devlist-issue
0.2 fix devlist issue
|
2013-10-20 10:29:29 -07:00 |
Xiang Li
|
b852a746ce
|
refactor move http status logic to server.go
|
2013-10-20 10:21:54 -07:00 |
Xiang Li
|
acbc0c8846
|
refactor return http status 201 Created when creating a new node
|
2013-10-19 19:57:36 -07:00 |
Xiang Li
|
7b6e305d40
|
fix update also return newValue
|
2013-10-19 11:51:41 -07:00 |
Xiang Li
|
28722e2127
|
fix v1 handler: use create command when test against prevexistence
|
2013-10-16 23:57:42 -07:00 |
Xiang Li
|
0392c18794
|
refactor put_handler.go
|
2013-10-15 23:18:03 -07:00 |
Xiang Li
|
baa683b484
|
feat POST-create unique node under given path
|
2013-10-15 22:21:55 -07:00 |
Xiang Li
|
c5f9afa0e8
|
fix store test
|
2013-10-14 23:15:31 -07:00 |
Xiang Li
|
fbf40fb74a
|
refactor store.go add set function
|
2013-10-14 23:04:21 -07:00 |
Xiang Li
|
278a089908
|
fix set should register set rather than create
|
2013-10-14 22:45:29 -07:00 |
Xiang Li
|
53a9bd0618
|
feat add set command
|
2013-10-14 22:44:17 -07:00 |
Xiang Li
|
9ebdcb8ae3
|
refactor change testAndSet to CompareAndSwap
|
2013-10-14 22:32:22 -07:00 |
Xiang Li
|
545f8ed6a1
|
fix update PUT handler
|
2013-10-14 22:22:23 -07:00 |
Xiang Li
|
2b6c628342
|
Merge branch '0.2' of https://github.com/coreos/etcd into 0.2
|
2013-10-14 12:57:38 -07:00 |
Xiang Li
|
c87a7a039e
|
feat test both of the condidtion
|
2013-10-14 12:57:35 -07:00 |
Ben Johnson
|
e7598075ac
|
Use raft.Server interface.
|
2013-10-14 13:51:20 -06:00 |
Ben Johnson
|
1321c63f3b
|
Extract Store into an interface.
|
2013-10-14 11:12:30 -06:00 |
Xiang Li
|
2b291aabea
|
Merge pull request #218 from benbjohnson/refactoring
[wip] Refactoring
|
2013-10-13 21:15:29 -07:00 |
Xiang Li
|
0c5808eeec
|
fix server/server.go accept name when creating a when server; gofmt
|
2013-10-13 10:44:40 -07:00 |
Xiang Li
|
b0793e2dd9
|
refactor create do not need to check existence first
|
2013-10-12 21:48:29 -07:00 |
Ben Johnson
|
8670e1b7aa
|
Refactored.
|
2013-10-12 15:56:43 -06:00 |
Ben Johnson
|
eb78d96a20
|
Intermediate commit.
|
2013-10-12 00:28:46 -06:00 |
Ben Johnson
|
89334df5ae
|
Refactor commands.
|
2013-10-11 01:02:38 -06:00 |
Xiang Li
|
40c520ca1b
|
refactor remove raft singleton
|
2013-10-10 15:40:05 -07:00 |
Xiang Li
|
4bf57537b5
|
refactor store.go remove extra assignment
|
2013-10-08 22:12:00 -07:00 |
Xiang Li
|
e597947bd8
|
refactor store.go update
|
2013-10-08 22:10:18 -07:00 |
Xiang Li
|
a030a41153
|
refactor store.go remove unwanted print
|
2013-10-08 22:01:22 -07:00 |
Xiang Li
|
75959f9948
|
refactor add node.ExpirationAndTTL
|
2013-10-08 21:49:10 -07:00 |
Xiang Li
|
c3e2332479
|
refactor separate kvpair to kvpair.go; simplify sorting interface
|
2013-10-08 21:25:56 -07:00 |
Xiang Li
|
3c7f9215d1
|
comments node.go
|
2013-10-07 23:30:51 -07:00 |
Xiang Li
|
48e6137f46
|
fix node.go race between expire and update
|
2013-10-07 23:21:39 -07:00 |
Xiang Li
|
a07802a347
|
refactor node.go; use once
|
2013-10-07 23:12:13 -07:00 |
Xiang Li
|
a71838a59b
|
refactor watcher.go
|
2013-10-07 22:17:58 -07:00 |
Xiang Li
|
baaaf24f70
|
(feat) v1 apt backward support
|
2013-10-06 11:23:52 -07:00 |
Xiang Li
|
b8b81d5b03
|
feat(store) create node with incremental suffix. accept #190 in new API
|
2013-10-03 08:59:05 -07:00 |
Xiang Li
|
512dede9ce
|
finish todo
|
2013-10-02 22:15:12 -07:00 |
Xiang Li
|
9412c86b97
|
fix wrong logic in event.go
|
2013-09-30 23:51:47 -07:00 |
Xiang Li
|
558d30f33f
|
simplify lock
|
2013-09-30 23:18:52 -07:00 |
evan-gu
|
974d74befb
|
add some comment and change a declaration form
|
2013-10-01 01:25:45 -04:00 |
evan-gu
|
6f591032ef
|
rename to DupCnt, duped; add some comments, maintained some format, add notification for immediate expiration
|
2013-10-01 00:35:44 -04:00 |
evan-gu
|
6fdffbcc85
|
delete some debug comments in stats_test.go
|
2013-09-30 22:17:17 -04:00 |
evan-gu
|
b8ac1d082b
|
fix race between Expire() and others, fix UpdateTTL(), modified watcher to catch Expire()
|
2013-09-30 22:10:40 -04:00 |
evan-gu
|
0959448855
|
add LastIndex and LastTerm in EventHistory
|
2013-09-30 12:18:28 -04:00 |
evan-gu
|
3ae316ac38
|
add ExpireCount and some test case
|
2013-09-30 02:39:40 -04:00 |
evan-gu
|
35724319c9
|
add watcher for expiration, add expiration for TestAndSet, add related test case
|
2013-09-30 01:06:18 -04:00 |
Xiang Li
|
4b2e53f29e
|
minor clean up
|
2013-09-28 17:41:45 -07:00 |
Xiang Li
|
33e010ebd8
|
add watchHistory clone
|
2013-09-28 17:41:02 -07:00 |
Xiang Li
|
784d286f37
|
merge from master
|
2013-09-28 16:58:57 -07:00 |
Xiang Li
|
da83ee223b
|
clean up from yifan
|
2013-09-28 16:26:19 -07:00 |
Xiang Li
|
1caf2a3364
|
remove old store
|
2013-09-15 22:28:42 -04:00 |
Xiang Li
|
2d7c1be164
|
merge
|
2013-09-14 15:22:37 -04:00 |
evan-gu
|
643a92a490
|
now it will sort recursively, and the sorting test case is better....
|
2013-09-08 23:13:28 -04:00 |
evan-gu
|
1a7b3e8e08
|
add sorting and its test case
|
2013-09-08 21:14:31 -04:00 |
Xiang Li
|
197689fcb5
|
Merge branch 'master' into moreStats
|
2013-08-23 13:45:51 -04:00 |
Xiang Li
|
6108f8536f
|
add testandset test
|
2013-08-23 01:37:20 -04:00 |
Fabrizio (Misto) Milo
|
a543d644b4
|
Split raw get into rawGetNode and rawGetNodeList
|
2013-08-22 22:02:50 -07:00 |
Fabrizio (Misto) Milo
|
6345e02d20
|
test and set creates the key if key does not exists. fixes #96
|
2013-08-22 22:02:50 -07:00 |
Xiang Li
|
a97590ff50
|
basic stats
|
2013-08-19 17:19:45 -07:00 |
Xiang Li
|
cf2d6888c2
|
add error package
|
2013-08-17 20:41:15 -07:00 |
Mairbek Khadikov
|
ac9801f570
|
Concurrent GET requests should not block.
|
2013-08-15 23:06:08 +03:00 |
Xiang Li
|
21c658b151
|
Merge pull request #86 from xiangli-cmu/master
Change snapshot to clientside
|
2013-08-12 10:46:34 -07:00 |
Xiang Li
|
928781aaa3
|
fix #95
|
2013-08-12 09:24:33 -07:00 |
Xiang Li
|
d3649d3254
|
gofmt
|
2013-08-11 09:48:12 -07:00 |
Xiang Li
|
434b0045db
|
add snapshot
|
2013-08-11 09:47:23 -07:00 |
Xiang Li
|
328b92e8e7
|
able to get root dir
|
2013-08-10 09:42:23 -07:00 |
Fabrizio (Misto) Milo
|
384d79d671
|
remove duplicate logic
|
2013-08-08 16:47:12 -07:00 |
Fabrizio (Misto) Milo
|
f4fc4caf6f
|
remove pointer to map
|
2013-08-08 16:47:00 -07:00 |
Fabrizio (Misto) Milo
|
140bbfec38
|
nip
|
2013-08-08 16:46:49 -07:00 |
Fabrizio (Misto) Milo
|
f5c2d19b90
|
nip
|
2013-08-08 16:46:39 -07:00 |
Fabrizio (Misto) Milo
|
ab10f95911
|
set messager as send only
|
2013-08-08 16:46:29 -07:00 |
Xiang Li
|
d0e9449ba2
|
use url package to parse url; fix commented codes
|
2013-08-06 09:08:22 -07:00 |
Xiang Li
|
65c34457de
|
fix test file
|
2013-08-05 21:28:42 -07:00 |
Xiang Li
|
bebcf4b733
|
simplify tree list
|
2013-08-05 17:03:31 -07:00 |
Xiang Li
|
c6a4321310
|
gofmt
|
2013-08-05 16:06:23 -07:00 |
Xiang Li
|
63ba16f51a
|
add clone func to help snapshot. add benchmarks
|
2013-08-05 16:05:49 -07:00 |
Xiang Li
|
39fa2eb4ee
|
add benchmarks
|
2013-08-05 13:21:08 -07:00 |
Xiang Li
|
026f93cd83
|
add watch benchmark
|
2013-08-04 23:10:16 -07:00 |
Xiang Li
|
06c9f1893f
|
avoid set value to root
|
2013-08-04 18:16:49 -07:00 |
Xiang Li
|
dc2eae8595
|
fix watcher test and keyword test
|
2013-08-04 17:42:28 -07:00 |
Xiang Li
|
8a4b2e83a5
|
change create->new, follow go spec
|
2013-08-04 17:17:40 -07:00 |
Xiang Li
|
ce33c4d29f
|
gofmt
|
2013-08-03 23:30:15 -07:00 |
Xiang Li
|
66f4e0aa19
|
clear watchers before recover from a snapshot
|
2013-08-03 23:29:05 -07:00 |
Xiang Li
|
53feb9d973
|
add space in comments
|
2013-08-03 21:16:09 -07:00 |
Xiang Li
|
7ea4ae8693
|
add RawGet that will return Response struct
|
2013-08-02 20:17:37 -07:00 |
Xiang Li
|
4a5abf1ab8
|
gofmt
|
2013-08-02 12:45:17 -07:00 |
Xiang Li
|
3ba4ea65f2
|
version name etcd 0.1
|
2013-08-02 12:44:16 -07:00 |
Xiang Li
|
0ebd133a0d
|
support version and basic stats
|
2013-08-02 12:31:35 -07:00 |
Cong Ding
|
13af54fdd0
|
revise log handling
All the log-related operations are calling functions in util.go. This makes
the consistancy of the logs.
|
2013-08-01 23:28:03 +02:00 |
Xiang Li
|
cc428c4e84
|
change keyword from /machines to /_etcd/machines
|
2013-07-31 19:40:40 -07:00 |
Xiang Li
|
e4fde5b044
|
fix typo
|
2013-07-31 14:55:03 -07:00 |
Xiang Li
|
612fcf120e
|
check keywords before set/testandset
|
2013-07-31 10:10:00 -07:00 |
Xiang Li
|
756b2cc750
|
add keyword checker
|
2013-07-31 09:52:03 -07:00 |
Xiang Li
|
69f8b8693d
|
add new node to /machines
|
2013-07-30 22:39:45 -07:00 |
Xiang Li
|
5f51c728c6
|
fix the recoveryTest
|
2013-07-16 18:12:19 -07:00 |
Cong Ding
|
f6b46fb0f2
|
make store test work
|
2013-07-17 01:45:45 +02:00 |
Cong Ding
|
9da955ca75
|
clean format with gofmt -w
|
2013-07-16 19:44:09 +02:00 |
Cong Ding
|
823691feaa
|
remove trailing space
|
2013-07-16 19:40:41 +02:00 |
Xiang Li
|
ac945c77de
|
add keyword file to keep keys for internal usage
|
2013-07-13 19:44:45 -07:00 |
Xiang Li
|
9dc51d0412
|
fix can change the value of a dir bug
|
2013-07-12 16:36:21 -07:00 |
Xiang Li
|
bff9321aa2
|
merge get and list operation
|
2013-07-12 16:04:00 -07:00 |
Xiang Li
|
0aa70e125c
|
create error map
|
2013-07-12 13:35:43 -07:00 |
Xiang Li
|
4b9b5d8069
|
merge get and list
|
2013-07-12 10:10:56 -07:00 |
Xiang Li
|
a131632d3d
|
error handling
|
2013-07-12 08:41:28 -07:00 |
Xiang Li
|
1e9307e88a
|
clean up tree.go and watcher.go
|
2013-07-09 13:14:12 -07:00 |
Xiang Li
|
55146c3ece
|
clean tree struct code
|
2013-07-08 21:20:50 -07:00 |
Xiang Li
|
dc3844a1f8
|
add testAndSet Command
|
2013-07-08 11:00:10 -07:00 |
Xiang Li
|
93c96b3813
|
add list feature
|
2013-07-05 16:22:45 -07:00 |
Xiang Li
|
b02a7d8bb4
|
traverse also record the key and add sorted traverse
|
2013-07-04 13:50:37 -07:00 |
Xiang Li
|
547ad6ee3b
|
add func arg to traverse func
|
2013-07-03 15:35:25 -07:00 |
Xiang Li
|
4768b82b11
|
add traverse func and fix testing
|
2013-07-03 15:00:50 -07:00 |
Xiang Li
|
6e3379c3ef
|
treeStruct first commit
|
2013-07-03 12:57:23 -07:00 |
Xiang Li
|
c5901f4b88
|
tree store init commit
|
2013-07-02 18:09:54 -07:00 |
Xiang Li
|
ab285a90bb
|
using go http lib to parse post body
|
2013-07-01 11:16:30 -07:00 |
Xiang Li
|
e211554b91
|
watch accept sinceIndex
|
2013-06-30 16:30:41 -07:00 |
Xiang Li
|
a2b44bf9b7
|
use map to store the results.
|
2013-06-30 10:09:05 -07:00 |
Xiang Li
|
b9a30986bb
|
fix checking wrong index in watcher.go
|
2013-06-29 22:20:18 -07:00 |
Xiang Li
|
047f8ab6a8
|
watch sinceindex works
|
2013-06-29 15:29:10 -07:00 |
Xiang Li
|
eef6f45e09
|
add ttl to response
|
2013-06-29 13:48:13 -07:00 |
Xiang Li
|
cff78e2e5e
|
keep index in the store
|
2013-06-29 13:13:51 -07:00 |
Xiang Li
|
5681e1a9d0
|
return command index
|
2013-06-29 12:49:05 -07:00 |
Xiang Li
|
c2f436a58b
|
fix redirect after seprate client and server pot
|
2013-06-28 15:37:29 -07:00 |
Xiang Li
|
c3bfe19ae9
|
fix a bug in set(update node need to create a new one, not get the pointer of the node)
|
2013-06-20 21:34:27 -07:00 |
Xiang Li
|
ef59a03fbb
|
gofmt
|
2013-06-20 15:59:23 -07:00 |
Xiang Li
|
58e7b456bb
|
redirect the join command and do not redirect other commands (let client does that)
|
2013-06-20 15:26:31 -07:00 |
Xiang Li
|
30da72623f
|
add tls fetures
|
2013-06-19 21:03:28 -07:00 |
Xiang Li
|
74650431e9
|
fix a expiration bug
|
2013-06-18 15:04:30 -07:00 |
Xiang Li
|
cc2608e9f8
|
add new files
|
2013-06-18 11:14:22 -07:00 |