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

6697 Коммитов

Автор SHA1 Сообщение Дата
Ammar Aijazi bf9d02cbbd Merge pull request #976 from youtube/aaijazi_add_back_error_tests
Add back unit tests for error handling in tabletconn
2015-08-07 15:05:31 -07:00
Ammar Aijazi 21945ddfb6 Add back unit tests for error handling in tabletconn, fix gRPC StreamExecute to return errors correctly 2015-08-07 14:13:54 -07:00
Alain Jobart 8fae3c7c30 Merge pull request #972 from alainjobart/resharding
Adding integration test to make sure master health is correct
2015-08-07 13:23:57 -07:00
Alain Jobart 24345fa71b Merge pull request #975 from alainjobart/log
%u has been deprecated forever, pitr was cleaning it up, his PR was too old to apply as is though.
2015-08-07 13:22:47 -07:00
Alain Jobart f5b1c7697c Merge pull request #973 from alainjobart/replication
Replication
2015-08-07 13:21:01 -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 612d4a0d6c Re-applying fixes from:
48808a8003
wrt tablets dying at startup being detected faster.
2015-08-07 12:25:11 -07:00
Alain Jobart fcc8d71570 Merge branch 'master' into resharding 2015-08-07 12:15:26 -07:00
Alain Jobart 7d1225e19c Merge branch 'master' into replication 2015-08-07 12:15:21 -07:00
Alain Jobart fb684f89d4 Merge pull request #974 from alainjobart/log
Adding better error handling for grpc tablet client.
2015-08-07 12:14:50 -07:00
Alain Jobart ffffff2288 Merge pull request #763 from AndyDiamondstein/backup-restore
Backup restore
2015-08-07 12:13:44 -07:00
Alain Jobart 067bbcbb9a Fixing this test to work with grpc. 2015-08-07 12:00:08 -07:00
Alain Jobart bcb1647b49 Adding better error handling for grpc tablet client.
Still seems to break vtgatev2_test.py in grpc though.
2015-08-07 11:41:11 -07:00
Alain Jobart b3b24d62f1 Fixing flaky tests.
With N being integer:
base_time = N.2
terTime = N.4 rounded to N
so terTime < base_time, even though it's not.
2015-08-07 11:11:54 -07:00
Alain Jobart 4d6b71933f Moving Tablet member functions to package functions,
in prep for retiring Tablet.
2015-08-07 10:59:12 -07:00
Alain Jobart d5ed9e3ce9 Moving a Tablet member function out. For proto3. 2015-08-07 10:09:59 -07:00
Alain Jobart 43efd74c43 Adding integration test to make sure master health is correct
after external reparent.
2015-08-07 09:41:16 -07:00
Alain Jobart ef1e7a908e Merge pull request #971 from alainjobart/resharding
Resharding
2015-08-07 08:51:07 -07:00
Alain Jobart 07a81e272c Adding comment. 2015-08-07 08:50:50 -07:00
Alain Jobart dddbdbfb5f Adding unit tests for the go client.
We don't need to fork vtgateclienttest, we can just execute it
in process. The test cases are meant to be the blue print of all the
client implementation unit tests.
2015-08-06 17:46:45 -07:00
Alain Jobart 23572a3f85 Merge branch 'master' into resharding 2015-08-06 17:02:52 -07:00
Anthony Yeh 8d9479bf7c Merge pull request #970 from enisoc/unlock-context
Detach from parent timeout when releasing topo locks.
2015-08-06 16:53:46 -07:00
Ammar Aijazi 3fde459af2 Merge pull request #954 from youtube/aaijazi_add_vitess_error_enum
Reworked Vitess error codes
2015-08-06 16:49:25 -07:00
Anthony Yeh 5e148e5641 Detach from parent timeout when releasing topo locks.
A common pattern is:

```
Lock(ctx)
doSomething(ctx)
Unlock(ctx)
```

If doSomething() fails due to the timeout in ctx, we will also fail
to release the lock, since ctx is now invalid.
2015-08-06 15:46:15 -07:00
Michael Berlin 20abfd5322 Merge pull request #969 from michael-berlin/restore_go13_compability
bootstrap.sh: Restore Go 1.3 compability.
2015-08-06 15:27:14 -07:00
Michael Berlin 8cbe2a01c7 bootstrap.sh: Restore Go 1.3 compability. 2015-08-06 14:51:46 -07:00
Alain Jobart cfa4c4b056 Adding a server-side test scenario for callerid in vtgate. 2015-08-06 11:51:12 -07:00
Alain Jobart 1c73e598bf Merge pull request #968 from alainjobart/resharding
Adding tests for callerid in client -> vtgate connections.
2015-08-06 11:17:58 -07:00
Alain Jobart 6813971a29 Adding tests for callerid in client -> vtgate connections.
Fixing all the places that broke, in bson and grpc.
2015-08-06 11:08:56 -07:00
Ammar Aijazi 416747e390 Merge remote-tracking branch 'origin/master' into aaijazi_add_vitess_error_enum 2015-08-05 22:36:37 -07:00
Ammar Aijazi 572decc1f1 More course-grained Vitess errors 2015-08-05 22:34:04 -07:00
Alain Jobart b436bf95f6 Merge pull request #967 from alainjobart/replication
Replication
2015-08-05 20:54:16 -07:00
Alain Jobart d56b66ea1c Merge branch 'master' into replication 2015-08-05 20:42:09 -07:00
Alain Jobart ed0c4c9cf5 Adding tests for caller ids, and fixing grpc / bson to they work. 2015-08-05 20:41:21 -07:00
Alain Jobart 9c7241c70d Adding unit tests for target. 2015-08-05 16:43:39 -07:00
Michael Berlin d0de5242c9 Merge pull request #966 from michael-berlin/golint_precommit_eclipse_fix
Fix golint pre commit hook for non-interactive shell (2nd try).
2015-08-05 16:21:59 -07:00
Michael Berlin 16e920a949 golint precommit: Assume the shell is non-interactive when grabbing tty failed. 2015-08-05 15:41:00 -07:00
Michael Berlin 90a372642c Fix golint pre commit hook for non-interactive shell.
When running the precommit commands from Eclipse, such a shell is used.
2015-08-05 15:37:25 -07:00
Michael Berlin f866d3c29a Merge pull request #959 from michael-berlin/auto_threadsafe
automation: Fix data race.
2015-08-05 14:58:18 -07:00
Alain Jobart 63fdce3438 Merge branch 'master' into replication 2015-08-05 14:50:44 -07:00
Alain Jobart a483c92c37 Removing error in the app-level responses for queryservice / proto3. 2015-08-05 14:49:58 -07:00
Alain Jobart 813e4f1de9 Merge pull request #965 from alainjobart/replication
Replication
2015-08-05 13:36:27 -07:00
Michael Berlin 883b9313bc Merge pull request #962 from michael-berlin/fix_racy_test
Fix data race in vtgate unit test.
2015-08-05 12:04:11 -07:00
Alain Jobart e58395c43b Adding a couple missing targets. 2015-08-05 11:50:01 -07:00
Michael Berlin f2c527a2a6 Fix golint warnings for AtomicString. 2015-08-05 11:47:26 -07:00
Michael Berlin d8fa5fabf3 Make sync2.AtomicDuration a struct instead of an int64. 2015-08-05 11:47:26 -07:00
Michael Berlin 524d22339c Remove sync2.AtomicUint32 because it is not used. 2015-08-05 11:47:26 -07:00
Michael Berlin 9edfd3b76a Make sync2.AtomicUint32 a struct instead of an uint32. 2015-08-05 11:47:26 -07:00
Michael Berlin 44ed38c73f Make sync2.AtomicInt32 a struct instead of an int32. 2015-08-05 11:47:26 -07:00
Michael Berlin 7ab0dde538 Make sync2.AtomicInt64 a struct instead of an int64.
This fixes the problem that the wrapped integer value can be used without having to go through the interface.

Fixed all unit tests where this problem occurred.
2015-08-05 11:47:26 -07:00