Anthony Yeh
aa1da5cd71
Upgrade to ZooKeeper 3.4.6.
...
Fixes #1204
2015-11-02 20:45:43 -08:00
Alain Jobart
e397a2b266
Removing zkns / pdns code. Mostly unused.
2015-10-26 16:09:19 -07:00
Anthony Yeh
3b2295c10f
fakezk: Don't return pointers to internal structures.
...
It could cause race conditions in tests, since data can change
underneath the caller after we return it.
2015-08-26 00:58:45 -07:00
Michael Berlin
c4a8b0d7ff
netutil: Support Go 1.5. Replace LookupCNAME with a double (reverse-)lookup of the machine name.
2015-08-21 18:41:37 -07:00
Anthony Yeh
b3e1dc130b
fakezk: Fix interface check.
...
The methods have pointer receivers now, so the mutex works.
2015-08-11 15:54:23 -07:00
Anthony Yeh
8c1053c6ef
Fix races on node data in fakezk.
2015-08-11 15:02:21 -07:00
Alain Jobart
9ff9694ca7
ZKNS consistency fixes: removing old Port, renaming NamedPortMap to PortMap.
2015-07-28 12:15:17 -07:00
Alain Jobart
a0044c91b3
Now using proto3 EndPoint everywhere.
2015-07-28 11:05:29 -07:00
Alain Jobart
281d9c2efa
Fix for thread sanetizer-reported issue.
2015-06-19 11:50:28 -07:00
Anthony Yeh
100325673a
fakezk: respect version in Delete.
2015-06-04 14:51:50 -07:00
Alain Jobart
16807a416e
Now using ShardReferences fields in a few places instead of
...
Shards in the Keyspace.Partitions map.
2015-03-16 08:42:25 -07:00
Alain Jobart
1bb3fabde9
First pass at API to watch end points.
...
Let's iterate on that base.
2015-01-26 16:02:12 -08:00
Anthony Yeh
a2e3d87a6b
Remove debug print.
2015-01-06 16:48:42 -08:00
Anthony Yeh
a3438c36d0
Reject empty cell name in ZkCellFromZkPath.
...
Otherwise, the missing cell name is masked by strange downstream errors.
2015-01-06 15:21:56 -08:00
Anthony Yeh
182cdfd54d
Fix Zkd.Shutdown in Go 1.4.
2014-12-24 02:32:11 -08:00
Alain Jobart
1dc7acf487
Fixing a number of golint issues.
2014-12-18 14:16:41 -08:00
Alain Jobart
1ca080869d
Removing zkocc and related files.
2014-12-16 18:44:35 -08:00
Alain Jobart
931d6da2ef
Merge branch 'master' into replication
2014-12-15 09:57:00 -08:00
Alain Jobart
8fe6283edc
Using context in all the topo server lock methods.
...
So we can remove timeout and interrupted.
Removing global wrangler interrupted channel, now just
cancelling its context.
2014-12-15 09:27:37 -08:00
Anthony Yeh
04f9e79bbc
Rewrite imports for golang subrepositories.
...
As per this announcement:
https://groups.google.com/forum/m/#!msg/golang-announce/eD8dh3T9yyA/HDOEU_ZSmvAJ
2014-12-14 12:48:10 -08:00
Shengzhe Yao
4a1a4ce76a
rename _vtocc, _vts and _mysql in vitess server
...
Rename _vtocc, _vts and _mysql ports in the portmap to vt, vts and mysql.
2014-12-09 14:42:24 -08:00
Anthony Yeh
0fb0a0fd00
Merge branch 'typofixes-vlajos-20141204' of github.com:vlajos/vitess into vlajos-typofixes-vlajos-20141204
2014-12-04 14:53:41 -08:00
Veres Lajos
18fb59b104
typofixes - https://github.com/vlajos/misspell_fixer
2014-12-04 22:33:57 +00:00
Alain Jobart
0105f5ed70
Removing PID node support in lock server. Not very useful.
2014-12-04 11:00:11 -08:00
Anthony Yeh
b09ca93ea3
Add tracing in rpcplus and other places downstream from tabletmanager.
...
The goal is to start getting useful traces out of tabletmanager.
To start, we trace outgoing RPC calls on the client side.
Certain high-level TopoServer operations are also traced at this point.
To facilitate tracing, I've begun plumbing Context through tabletmanager
and all its users. At this time, it is simply a few regexes adding the
parameter so it can be used by tracing; no timeouts or cancellation are
using Context yet. Those use cases will require more careful
consideration.
Other than tabletmanager, most callers use context.TODO() since they
aren't plumbed yet.
2014-11-11 22:56:57 -08:00
liuqi
0876a98c71
fakezk: fix create node with prefix sequence
2014-10-29 12:42:18 +08:00
Anthony Yeh
3f96a0135e
Fail fast and report errors when parsing zk config files.
2014-10-09 11:01:42 -07:00
Anthony Yeh
0d10c26e4a
Add -follow flag for zkctl and mysqlctl.
2014-10-08 11:23:36 -07:00
Mike Solomon
954e2cd940
Improve guessing of cell name based on hostname.
2014-09-30 00:20:27 -07:00
Alain Jobart
7dc0e0cc37
Adding a mutex lock in an extra place to make thread sanitizer happy.
2014-09-04 13:09:50 -07:00
Anthony Yeh
22bce36635
Fix all govet issues in preparation for govet presubmit.
2014-08-06 12:14:44 -07:00
Anthony Yeh
9b4f1a8dc9
Skip long tests in "go test -short" mode.
2014-07-22 23:52:38 -07:00
Ryszard Szopa
c34681e1a9
Make the zk config test work regardless of whether the hostname contains a -, add more logging.
2014-06-04 16:44:36 -07:00
Alain Jobart
4d3091ef2c
Creating ephemeral lock files for keyspace/shard/srvshard.
...
We never go cross-process with them, and they need to disappear
when a process dies.
2014-04-28 14:56:12 -07:00
Alain Jobart
1025110172
Merge branch 'master' of github.com:youtube/vitess
2014-04-17 14:58:34 -07:00
Mike Solomon
99ceabbacf
Fix typos.
2014-04-17 13:02:55 -07:00
Mike Solomon
c63ab53bac
Fix CNAME test case.
2014-04-17 12:57:15 -07:00
Alain Jobart
eb06d0c096
Allowing writes in ZK directories, otherwise we can't create
...
sub-directories.
2014-04-17 10:54:36 -07:00
Alain Jobart
49fff35fd4
Merge pull request #42 from msolo/zk-name-service
...
Zk name service
2014-04-17 09:22:42 -07:00
Mike Solomon
13f4f3a64d
Add comments.
2014-04-16 23:31:21 -07:00
Mike Solomon
b59d2031c8
Add election support methods.
2014-04-15 23:18:04 -07:00
Mike Solomon
38bc9e7ae8
Add a distributed lock primitive that handles complex edge cases.
2014-04-15 23:18:04 -07:00
Mike Solomon
83af46b4b9
Add support for weightless round-robin A records.
2014-04-15 23:18:03 -07:00
Mike Solomon
5357826b2f
Improve CNAME resolution. Improve SRV record randomization.
2014-04-15 23:18:03 -07:00
Mike Solomon
35efab6f4e
List cells when listing the root directory.
2014-04-15 23:18:03 -07:00
Mike Solomon
ff3cd8aaf8
Extract zkns pdns adapter code and fix a number of small bugs. Improve test clarity.
2014-04-15 23:18:03 -07:00
Mike Solomon
6aabd763aa
Make default paths externally accessible. Add IsDirectory() function.
2014-04-15 23:18:03 -07:00
Mike Solomon
b50395e8fb
Add directory semantics to zk, make magic prefix configurable.
2014-04-15 23:18:03 -07:00
Mike Solomon
f5bea5bb48
libzookeeper_mt prior to 3.4.x doesn't handle IPv6, so prune the resolved addresses we give the library for now.
2014-04-15 23:12:20 -07:00
Alain Jobart
997a74e4be
Fixing typo in bson encoding of ZK stats.
2014-04-08 09:26:56 -07:00