Anthony Yeh
ec81cacb59
Return error instead of log.Fatal in zk commands.
2015-01-12 16:15:20 -08:00
Anthony Yeh
2d4b14b12b
Don't use glog.Fatal in main().
...
Because:
- It prints a stack trace, which is useless for main().
- The trace also obscures the (usually simple) error message, like
"no command specified" or "invalid flag value".
- It skips deferred functions.
2015-01-12 14:08:27 -08:00
Alain Jobart
1ca080869d
Removing zkocc and related files.
2014-12-16 18:44:35 -08:00
Ryszard Szopa
6f49422792
Use logutil.Flush() instead of log.Flush().
2014-06-27 16:29:23 -07:00
Ryszard Szopa
a0857eb082
Remove dependency on opts-go.
2014-06-27 14:43:31 -07:00
Alain Jobart
5af902d026
Switching a few more places to glog.
2014-01-27 11:59:14 -08:00
Sugu Sougoumarane
064d69300d
go vet cleanup
2013-12-24 15:24:45 -08:00
Damian Gryski
9fe8e50c32
all: for foo, _ := range ... -> for foo := range ...
2013-10-19 14:35:39 +02:00
Damian Gryski
276daeef9b
all: format string fixes
2013-10-19 14:32:06 +02:00
Ryszard Szopa
0d046a5984
Replace code.google.com with github.com/youtube/vitess.
2013-07-18 18:18:20 -07:00
Alain Jobart
0be41cc6dc
Now that zk enforces a maximum of 64 connections, no need to do a workqueue there.
...
LGTM Ric.
2013-05-23 18:39:28 -07:00
Mike Solomon
b5dbc052f5
add a measure of safety for recursive delete
2013-04-24 18:12:53 -07:00
Alain Jobart
06f169358c
Using -force in zk a bit more to mask errors.
...
LGTM Mike.
2013-03-14 11:48:41 -07:00
Mike Solomon
d2ac9d6bd0
apply resource limit to zk connections
2013-03-04 22:59:07 -08:00
Alain Jobart
f7ee776560
Full correct wildcard detection, and enabling wildcards in a few more places.
...
LGTM Mike.
2013-03-01 12:22:33 -08:00
Mike Solomon
48f7f7e945
limiting maximum concurrency
2013-02-28 10:09:21 -08:00
Alain Jobart
58f33d73d3
Now signaling wrangler while waiting on a shard or keyspace lock will also exit properly.
...
LGTM Mike.
2013-02-26 13:20:00 -08:00
Mike Solomon
a72e055d04
simplify zk lock api and cleanup properly when a lock times out
2012-12-10 18:57:10 -08:00
Mike Solomon
6de7457188
adding a lock wait timeout option for all complex wrangler actions
2012-12-05 18:12:13 -08:00
Alain Jobart
f306c08c22
Configurable timeout for zk conns, and passing zk flags from vttablet to vtaction.
...
LGTM Mike.
2012-12-05 16:15:47 -08:00
Alain Jobart
795856cbfa
gofmt decided to remove trailing whitespaces, here is the
...
full change.
LGTM Ric.
2012-11-21 17:08:45 -08:00
Mike Solomon
4104e14d44
fix bug when stat is nil
2012-11-14 13:18:59 -08:00
Mike Solomon
ef74eaab0f
make expected error conditions less cosmetically scary
2012-10-26 13:30:13 -07:00
Mike Solomon
3073ea47b9
improve formatting of ls/cat when looking at multiple nodes
2012-10-23 00:58:07 -07:00
Mike Solomon
ead021ca6b
pad data with a newline when stdout is a tty to make things cosmetically more pleasant.
2012-10-19 23:16:50 -07:00
Alain Jobart
2d5c23ce22
Added more comments to zk Dial, and implemented a DialZkTimeout.
...
Using it in zkcmd.
LGTM Mike.
2012-10-18 17:15:49 -07:00
Mike Solomon
4754ec59d7
fix Wait command a bit
2012-10-15 13:22:41 -07:00
Alain Jobart
e501e358a8
Adding timeouts to all rpc calls.
...
LGTM Mike.
2012-10-11 18:02:03 -07:00
Alain Jobart
0a87053760
Refactoring connection logic for zk and zkocc (less duplicate code).
...
LGTM Mike.
2012-10-11 14:10:48 -07:00
Alain Jobart
ab981f541e
Supporting multiple zkocc servers in conn_cache.go, with test.
...
Also refactoring Dial from ZkoccConn to behave like zookeeper.Dial.
LGTM Mike.
2012-10-10 14:36:26 -07:00
Alain Jobart
6f72f7ccd9
Various fixes and improvements to the sharded client.
...
LGTM Mike.
2012-10-10 09:40:00 -07:00
Alain Jobart
ec0763b35d
Fixing change 7e84a84f9708: the Exist and ExistW methods now return a
...
real 'nil' value (instead of a typed nil interface that doesn't compare
to nil).
LGTM Sugu.
2012-10-04 13:50:37 -07:00
Alain Jobart
9847c6fda3
Fixing zk.Conn.Exists and ExistsW to return a boolean, and not rely
...
on Stat to be nil (since Stat is an interface, it's not easy to
compare it to nil).
LGTM: Ric & Shruti.
2012-10-01 14:29:27 -07:00
Alain Jobart
da930d174f
Adding the skeleton of a sharded client test.
...
LGTM Ric.
2012-10-01 13:42:26 -07:00
Alain Jobart
ed782a2556
Zkocc: Implementing an option to use 'zk' to talk to zkocc for ls and cat. And tests.
...
Also using a wrapper around the zk connection now, so we can use the same interfaces
for zkocc.
LGTM: Mike.
2012-09-27 15:02:21 -07:00
Mike Solomon
a7cf2e553a
fix zk wait command to error out when too many paths are specified
2012-09-17 00:27:39 -07:00
Mike Solomon
704ff2b232
properly squelch error messages for zk rm -f
2012-09-08 17:13:20 -07:00
Mike Solomon
ece32b31fe
use zookeeper.IsError consistently
2012-08-25 13:14:12 -07:00
Mike Solomon
5866f155cd
gofmt
2012-08-01 23:51:05 -07:00
Mike Solomon
07193feded
fix paths for repository migration
2012-07-24 01:07:52 -07:00
Mike Solomon
0f2dd36be2
import packages graduating from the experimental repo
2012-07-23 22:56:17 -07:00