Граф коммитов

35 Коммитов

Автор SHA1 Сообщение Дата
Alain Jobart caf8f95d1a Adding temporary link so travis passes.
Once the PR is submitted, I will rebuild the docker images, and this
won't be necessary any more.
2017-12-14 07:46:16 -08:00
Alain Jobart cecb9bbed5 Removing old ZK code.
The only part of go/zk we were still using is go/zk/zkctl.
Moved it to go/vt/zkctl.

Removed the rest of go/zk code. The config part (ZK_CLIENT_CONF json
config) was moved to CellInfo.The Metaconn part was moved to the topo
service code (for the cell map) and to zk2topo (for the ZkConn retrying
part).

Note re-running bootstrap.sh is required here, as the path for zksrv.sh
has changed.
2017-12-13 14:41:32 -08:00
Sugu Sougoumarane 8bfd4ca39a log.Fatal->log.Exit
Issue #3330, #3391
For invalid inputs, log.Exit is a more graceful way of reporting
errors. Otherwise, people think the binary crashed.
2017-12-03 15:17:07 -08:00
Sugu Sougoumarane ffc856d974 zookeeper: 3.4.6->3.4.10 2017-11-10 11:09:48 -08:00
Sugu Sougoumarane 7af23e1dde license: BSD->Apache v2.0
Please refer to #2694 and #2670 for motivation and reasoning for
this change.

I've tried to follow best practice in inserting the copyright
headers. In other open source projects, not all files carry
the notice. For example documentation doesn't. I've followed
similar ground rules.

I did not change the php because there is a separate LICENSE
file there by Pixel Federation. We'll first need to notify
them our intent before changing anything there.

As for the presubmit check, it's going to be non-trivial
because of the number of exceptions, like file types,
directories and generated code. So, it will have to be
a separate project.
2017-05-06 00:38:56 -07:00
alex.lvxin 9582c5c2c6 Update zksrv.sh
fix the error : no java binary found
If I installed the java without yum or apt-get, but by setting the environment variable JAVA_HOME and PATH,the script with rise error :no java binary found

So we should consider the java binary installed manuelly
2017-02-09 16:03:11 +08:00
Alain Jobart a1ef409126 Adding a testfiles/ports.go library.
It handles port and zookeeper IDs allocation for tests, so they don't
step on eachothers toes.
2016-12-29 10:25:22 -08:00
Alain Jobart b3cea990e4 Upgrading memorytopo to full topo.Impl.
And using it in all tests that can use it.
Removing other fake zk connections in favor of launching a ZK server.
Refactoring zkcustomrule to use new zk2 library.
2016-12-28 15:56:03 -08:00
Alain Jobart 2dd81c2095 Replacing launchpadnet zk client.
With the github.com/samuel/go-zookeeper/zk package.
It's a much simpler library, no dependency, and can be vendored
as is.
2016-07-14 13:03:24 -07:00
Anthony Yeh 4d20b0b7ce zk: Automatically create /zk root if it doesn't exist.
Create /zk root as necessary instead of relying on zkctl to do it.
This makes it easier to use Vitess with ZooKeeper servers that aren't
started via zkctl.
2016-06-10 16:11:00 -07:00
Anthony Yeh ede5718174 Don't treat arbitrary strings as format strings. 2016-03-19 17:54:06 -07:00
Anthony Yeh aa1da5cd71 Upgrade to ZooKeeper 3.4.6.
Fixes #1204
2015-11-02 20:45:43 -08: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 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
Anthony Yeh 0d10c26e4a Add -follow flag for zkctl and mysqlctl. 2014-10-08 11:23:36 -07:00
Anthony Yeh 9b4f1a8dc9 Skip long tests in "go test -short" mode. 2014-07-22 23:52:38 -07:00
Ryszard Szopa cead93c364 Automatic rewrite of relog import paths and calls to use glog.
Commands run:

  find go -name "*.go" | xargs sed --in-place -r 's,"github.com/youtube/vitess/go/relog",log "github.com/golang/glog",g; s,relog.Info,log.Infof,g; s,relog.Warning,log.Warningf,g; s,relog.Error,log.Errorf,g; s,relog.Fatal,log.Fatalf,g; s,relog.Debug,log.V(6).Infof,g'
  find . -name '*.go' -exec gofmt -w {} \;
2013-08-06 14:56:00 -07:00
Ryszard Szopa 4ccb53c557 Makefile and test improvements. 2013-07-26 17:07:54 -07:00
Ryszard Szopa 0d046a5984 Replace code.google.com with github.com/youtube/vitess. 2013-07-18 18:18:20 -07:00
Alain Jobart 7ac8dd32cc Creating a netutil library, moving some common code there.
LGTM Sugu, Ric.
2013-07-15 11:55:37 -07:00
Alain Jobart 219fe644c0 Now allocating ports from a port base for zk / zkocc, more to come. 2013-04-12 12:21:52 -07:00
Alain Jobart dd43b7f242 Fixing process discovery in vtaction, and fixing zkctl and its test.
LGTM Mike.
2013-03-12 16:13:50 -07:00
Mike Solomon f605b0e957 make bootstrap process more friendly 2013-03-08 12:01:49 -08:00
Alain Jobart 90367a5553 Upgrading to zookeeper 3.3.5.
LGTM Mike.
2013-02-11 12:26:03 -08:00
Alain Jobart 5ed0d42a60 Using time.Second more extensivily.
LGTM Sugu.
2012-12-10 12:04:42 -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
Ric Szopa 7bb8631da3 Use env.VtRoot() instead of $VTROOT 2012-10-31 14:24:17 -07:00
Shruti Patil d133a42d27 Mycnf cleanup - separated the code that reads it from that generates it. Standardized the
Mycnf struct and enforced correct initialization.
2012-10-01 16:50:39 -07:00
Sugu Sougoumarane 64cc603008 cleanup of various configs & tests to use the new VTROOT structure 2012-09-06 16:14:19 -07:00
Mike Solomon ce8ef74f42 Provide new alternate paths based on $VTROOT. 2012-08-28 18:57:05 -07:00
Mike Solomon 1e74075bfb resolve the fdqn more reliably
this function is small enough i didn't feel like pulling it into a separate library.
2012-08-23 19:06:48 -07:00
Mike Solomon 0f30193c8c improve error handling and path searching for zkctl 2012-08-22 23:36:46 -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