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

64 Коммитов

Автор SHA1 Сообщение Дата
Anthony Yeh 4e13248a69 Merge pull request #1521 from enisoc/semisync
Support semi-sync without async fallback.
2016-02-25 15:54:04 -08:00
Anthony Yeh f92686a2a4 Print human-readable tables for CLI queries.
The table output is similar to the `mysql` CLI.
2016-02-25 15:01:33 -08:00
Anthony Yeh 44d10d40c4 Use semi-sync in integration tests.
Some tests had to be modified to not assume that masters without
replicas will still accept writes. Also, some tests would create tablets
as SPARE without enabling healthcheck. As a result, the tablet has no
way of knowing whether it will eventually be a replica or rdonly, and
hence can't decide whether to enable semi-sync before starting
replication.

Healthcheck is basically required now, and definitely will be once we
fully switch to vtgate discovery mode. So I've removed cases where
tablets were being started SPARE without enabling healthcheck.
2016-02-24 18:08:12 -08:00
Anthony Yeh 59cd68f07d test/utils: Close grpc connections even with --skip-teardown.
We can't skip closing of grpc connections, or else the Python
interpreter will never exit.
2016-02-17 18:01:26 -08:00
Alain Jobart f46bd25d3e Adding vtctld functionnality to vtcombo. 2015-12-10 06:56:36 -08:00
Alain Jobart 5f5ffb8fcf Fixint vtctld test to query at least top level api for explorer. 2015-12-10 06:56:36 -08:00
Alain Jobart 6389f7bc2e Retiring logutil.LoggerEvent in favor of logutilpb.Event. 2015-11-16 08:08:18 -08:00
Anthony Yeh 993663574f vtctld: Clean out old UI. 2015-11-12 22:52:07 -08:00
Alain Jobart 6751c65693 Using enumerate() in a few places where it's appropriate.
Thanks @aaijazi for the suggestion.
2015-11-09 14:23:14 -08:00
Alain Jobart 35ee67fd9e Adding a test to make sure an interrupted vtctl command works. 2015-11-09 13:14:59 -08:00
Alain Jobart 477c948cc2 Using topo proto3 in tests to get tablet types. 2015-10-23 07:12:49 -07:00
Alain Jobart 4954056bdd Fixing a bunch of linter errors. 2015-10-23 07:12:49 -07:00
Alain Jobart 73497d2a16 Checkpoint of removing IDLE and SCRAP states. All unit tests pass,
most integration tests pass too.
2015-10-23 07:12:49 -07:00
Alain Jobart a605eb92d2 Fixing vtctld test, adding it to travis run. 2015-10-20 09:33:54 -07:00
Alain Jobart 87693af4c7 Removing direct tablet access from python.
One hack left in vtrouting.py, and then topology.py can go too.
Dean, I'll let you handle that one.
2015-10-13 07:41:58 -07:00
Dean Yasuda f636e15166 Second pass of python lint fixes.
This is the first pass for some subdirectories.

Recurring issues include:

1. Inconsistent quote chars. Use the same quote character as the first
use in the file (usually single-quote). Double quotes are OK if the
quoted string contains single quotes.

2. Bad indentation. Indent 2 for logic, 4 for continuations if the
previous line ends with '(', '[', or '{'. If drop does not immediately
follow the group-symbol, align with the opening group-symbol. I suggest
immediate drops, since these are stable if the content of the first
line changes, while aligning with the opening group-symbol requires
shifting the continuation lines.

3. Bad docstrings. A full docstring looks like:

   """Initial line ending with punctuation.

   Optional text.

   Args:
     Arg1: Description.
     Arg2: Description with
         indented continuation.

   Returns:
     Return text.

   Raises:
     ErrorClass: Description.
   """

4. Vertical spacing. Exactly two blank lines before top-level classes
or functions. Exactly one blank line before non-top-level classes or
functions. No more than one blank line within top-level constructs.
2015-08-30 09:32:00 -07:00
Dean Yasuda fe15c10907 Fix remaining syntax errors caused by previous test/*.py lint fix. 2015-08-25 23:21:32 -07:00
Dean Yasuda 8be90a9cce Fix some more obvious lint errors in test/*.py. 2015-08-25 22:45:44 -07:00
Dean Yasuda 09a23591a9 Post-merge: fix some simple lint issues on more test/*.py files. 2015-08-25 21:00:52 -07:00
Alain Jobart a79192c887 Fixing vtctld_test to pass. 2015-08-10 12:59:12 -07:00
Alain Jobart ad4dcbd726 Replacing all python %u by %d. Apparently it's what we need to do now. 2015-08-07 12:42:36 -07:00
Alain Jobart a56aff043f Now using the VtGate object in all tests. 2015-06-04 08:37:20 -07:00
Alain Jobart 8fd2ff4ba3 Changing integration tests to use InitShardMaster. 2015-04-02 09:07:41 -07:00
Alain Jobart 014287ef41 Fix this test. 2015-03-20 14:20:01 -07:00
Alain Jobart ed9a25393d Adding integration test support for grpc.
Only supported for vtctl client protocol for now.
2015-02-27 14:24:04 -08:00
Alain Jobart f6639362bb Using fqdn in this test instead of localhost in message. 2015-01-27 15:00:19 -08:00
Shengzhe Yao 4b78311b95 fix typo, use assertTrue instead of assertIn in vtctld_test 2015-01-22 11:22:16 -08:00
Shengzhe Yao 06632f4cd5 fix vtctld_test
1. make HTMLName() in go/vt/health/health.go return consistent name
2. fix test_tablet_status in vtctld_test to do a regular exprssion
   search for MySQLReplicationLag status.
2015-01-21 13:59:12 -08:00
Alain Jobart 4d3628b724 Fixing vtctld_test, fixing status page, and storing
health status inside tabletmanager.
2015-01-20 13:22:31 -08:00
Anthony Yeh 3ee8a59cf1 Make topo server flavor pluggable in integration tests. 2014-11-14 16:37:05 -08:00
Alain Jobart e74b0d9c29 Changing served-from to served_from, new standard. 2014-10-10 16:19:43 -07:00
Alain Jobart e58b5db21a Converting a bunch of tests to vtctl RPCs. 2014-08-22 14:35:26 -07:00
Alain Jobart 05377a6aa7 Adding test glue to run vtctl commands in various ways.
Also fixing a few things here and there.
2014-08-22 09:27:06 -07:00
Alain Jobart eb2571d652 Better defaults for params, skipping a zookeeper only test. 2014-08-21 14:43:12 -07:00
Alain Jobart 3a90117fab Adding vtctl python gorpc client, and tests. 2014-08-20 22:50:34 -07:00
Alain Jobart 9a2be8be4b Adding test for vtctlclient. 2014-08-20 21:11:13 -07:00
Alain Jobart 8db3031863 Moving test Vtctld class. 2014-08-20 16:56:16 -07:00
Anthony Yeh 88feb393ec Global flag injection for integration tests 2014-07-07 12:46:20 -07:00
Alain Jobart aa45c95231 Adding more data in topology serving graph.
Also making vtctld parallelized for serving graph retrieval,
and also only querying the serving graph, not global topology.
2014-06-12 10:28:40 -07:00
Alain Jobart 9f77435d2d Reworking the vtctld backend.
Now when we get errors, we keep them and list them,
instead of aborting the entire Serving Graph display.
Also changing the data structures a bit: used to have a map
of shard name -> list of tablets, and an accessor to convert
to a sorted list, now we have the list directly.
2014-06-11 12:27:51 -07:00
Alain Jobart c4bcd0b5cc Adding and checking vtgate->vtctld links. 2014-05-14 13:30:23 -07:00
Alain Jobart 208a7e99a6 Adding a status view of topo in vtgate. 2014-05-14 13:08:22 -07:00
Alain Jobart 905eb39851 Moving a few status functions to this source tree.
They allow the status page of vttablet to be better.
Also testing this code in vtctld_test, so we make sure the
templates work. And manual inspection works very well too.
2014-05-14 09:41:49 -07:00
Alain Jobart 92e29b05aa Refactoring this test. 2014-01-16 15:44:47 -08:00
Alain Jobart 360ded3c07 Use a separate variable for logs in tests. 2014-01-07 21:09:43 -08:00
Alain Jobart f6cc294723 Faster tests.
Optimizations:
- RebuildKeyspaceGraph rebuilds all the shards, no need to do it.
- start tablets in parallel
- kill tablets in parallel
2014-01-07 13:53:43 -08:00
Alain Jobart 85791a2740 Adding first version of environment.py for tests. 2014-01-02 10:17:38 -08:00
Alain Jobart 53aea12c90 Fixing DbTopology to support missing cells.
We will just echo a warning then.
2013-12-11 11:46:04 -08:00
Ryszard Szopa 9a824c6a35 Replication vtctld redirect. 2013-11-12 12:04:05 -08:00
Ryszard Szopa 9ec047b811 Vtctld redirects for the serving graph. 2013-11-11 16:36:12 -08:00