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

10575 Коммитов

Автор SHA1 Сообщение Дата
Michael Berlin b306b98a2c test: Temporarily disable the webdriver test for the new vtctld2. (#1990)
The test requires many dependencies which prolong the current test duration by up to 10 minutes on Travis.

Once we figured out how to cache the dependencies both on Travis and our local machines, we can re-enable the test.

Instead of commenting the code for installing the dependencies, I've moved it to bootstrap_web.sh for now.
2016-08-24 22:16:06 -07:00
pkulsh c295efad21 Replaced paper dropdowns with primeNg dropdowns (#1989) 2016-08-24 16:57:57 -07:00
Anthony Yeh 75d7a7ff6e Merge pull request #1928 from dsslater/shard/crud
Shard/crud
2016-08-24 16:57:02 -07:00
David Slater dd1bad01d9 Removed Polymer from the app and replaced it with PrimeNG 2016-08-24 15:11:16 -07:00
Anthony Yeh 0be577ff54 java: Fix linter comments. (#1987) 2016-08-24 15:01:40 -07:00
David Slater 38fba2bb63 Addressed comments by enisoc
Changed pattern from preparing dialogs to preparing and opening in one
function.
Added ACL check for vtctl endpoint and schema endpoint.
Seperated the generation of vtctl commands into flags and args.
Better seperated the vtctl service from its clients.
Cleaned up style issues.
2016-08-24 13:56:02 -07:00
Alain Jobart 8f4eed4643 Merge pull request #1967 from alainjobart/vtgatewatch
topo.Backend.Watch conversion for vtgate.
2016-08-24 12:31:30 -07:00
Michael Berlin 8d6d92bac5 throttler: Fix the aggregated average historic value if multiple threads are used. (#1985) 2016-08-24 10:51:16 -07:00
Michael Berlin a983b1aa7d worker: *Clone: Add new flag --max_replication_lag. (#1982)
If turned on, it will enable the adaptive throttler which throttles the write rate (queries/second) based on the replication lag of all replicas in the same cell.
2016-08-24 09:47:03 -07:00
Michael Berlin c0bdd88584 vtworker: Fix default for --min_rows_per_chunk flag. (#1983) 2016-08-24 09:42:18 -07:00
Alain Jobart 9089f42952 topo.Backend.Watch conversion for vtgate.
Changing the Watch API a bit to return a CancelFunc function
instead of relying on the context for cancelation.
Adding unit tests for Watch.
Using the Watch API for WatchSrvKeyspace / WatchSrvVschema.
Retiring the old WatchSrvKeyspace / WatchSrvVschema API.

In the process, adding two new packages:
- memorytopo: an in-memory implementation of topo.Backend.
  It uses faketopo for the old-style methods it doesn't implement.
- topotests: unit test for go/vt/topo functions. Because of a circular
  dependency (faketopo depends on topo), it can't be with topo until
  further refactor / work is done.
2016-08-24 07:45:21 -07:00
Michael Berlin 6254bb7c29 throttler: Fix the problem that the increase mode did not make progress when the new rate was capped by the bad value. (#1975)
Other required changes:
- initialize the module's "lastRateChange" field to the current time
- change all tests to start at 1s instead of 0s to make sure that the code correctly distinguishes between a zero value and a set value
2016-08-23 16:50:39 -07:00
Anthony Yeh 202f3187d0 publish-site.sh: Ignore /web/ dir when validating generated HTML. (#1981) 2016-08-23 14:07:55 -07:00
Anthony Yeh 82ae9f0ed8 Merge pull request #1979 from enisoc/getRawValue
java: Add getRawValue(String columnLabel) to Row class.
2016-08-23 14:07:37 -07:00
sougou 44c4a6ea75 Merge pull request #1980 from sougou/master
TwoPC design doc
2016-08-23 13:39:28 -07:00
sougou c77be570da Rename TwoPC.md to TwoPhaseCommit.md 2016-08-23 13:23:18 -07:00
Michael Berlin 8c26383c3c throttler: Fix the problem that the updated/reset throttler configuration was never applied by the adapative throttler. (#1974) 2016-08-23 13:21:24 -07:00
sougou 2274cdc5de Update TwoPC.md 2016-08-23 13:06:05 -07:00
sougou 5c3d7b6d4c Update TwoPC.md 2016-08-23 13:04:47 -07:00
sougou 6408ca0e31 Add files via upload 2016-08-23 13:02:06 -07:00
Anthony Yeh 5547230cc6 java: Add getRawValue(String columnLabel) to Row class. 2016-08-23 13:01:41 -07:00
sougou 1f66babcec Create TwoPC.md 2016-08-23 12:56:06 -07:00
Michael Berlin 5c56799797 throttler: Reset the "replica under increase test" when we leave the increase state. (#1976)
Before this fix, the following sequence was not possible:

- increase by replica1
- decrease or emergency by replica2
- increase by replica2

That was because the module was still locked in to "replica1" and therefore only "replica1" could trigger the next increase.
2016-08-23 12:44:21 -07:00
Michael Berlin b69cc97802 Merge pull request #1973 from michael-berlin/age_bad_values
throttler: Support aging unchanged bad rates.
2016-08-23 12:27:31 -07:00
harshit-gangal b96c786a41 Handling Transaction Timeout (#1966)
* Handling Transaction Timeout

* Checking TX_NOT_FOUND using SQLRecoverableException

* Using inTransaction method

* Using inTransaction method
2016-08-23 11:45:07 -07:00
Michael Berlin ef676d0054 throttler: Support aging unchanged bad rates.
By default, a bad rate will get increased by 10% after it has not been changed for three minutes.
2016-08-23 10:17:10 -07:00
thompsonja 85afe6fb43 Merge pull request #1951 from thompsonja/webdriver2
Add webdriver support for new vtctld2 UI
2016-08-22 19:22:44 -07:00
Joshua Thompson e88ca5d105 Revert change to tablet_map.go, this should go in a separate PR 2016-08-22 16:38:20 -07:00
Joshua Thompson 517f468870 Add explicit replica/rdonly counts to vttest_sample_test's vtcombo 2016-08-22 16:20:57 -07:00
Joshua Thompson a0daad01d3 Use https instead of git protocol for fetching angular-cli. Move vtctld2/build.sh steps into Makefile 2016-08-22 15:24:47 -07:00
Anthony Yeh 0661157651 Merge pull request #1971 from enisoc/not_in_tx
Translate not_in_tx error in Java and PHP clients.
2016-08-22 15:10:09 -07:00
Joshua Thompson 9be280c370 Merge remote-tracking branch 'upstream/master' into webdriver2 2016-08-22 13:44:14 -07:00
Joshua Thompson 1fc82aab6b Fetch angular-cli from master 2016-08-22 13:44:00 -07:00
David Slater 746c386d3d Changed vtctl service to respect abstraction layers 2016-08-22 13:41:14 -07:00
Michael Berlin e3f31172d6 Merge pull request #1972 from michael-berlin/age_bad_values
throttler: HTTP handler /throttlerz which shows the most recent recalculation results.
2016-08-22 12:27:07 -07:00
David Slater 34a4174fc1 Merge branch 'master' into shard/crud 2016-08-22 11:53:16 -07:00
Michael Berlin 61dafabe19 throttler: demo: Always redirect / to /throttlerz. 2016-08-22 11:11:05 -07:00
Michael Berlin 64ea5d78d7 throttler: Split /throttlerz/<name>/log page out into /throttlerlogz/<name>.
This way, throttlers with a "/" in their name are supported.
2016-08-22 11:11:05 -07:00
Michael Berlin 28b35f6d06 throttler: demo: Increase the lag broadcast interval from 1s to 5s.
The new value is more realistic.
2016-08-22 11:11:05 -07:00
Michael Berlin fc48cfb6ce throttler: Use "servenv" in demo to run an HTTP server.
This way /throttlerz is working in the demo.
2016-08-22 11:11:05 -07:00
Michael Berlin 56988480f8 throttler: Create /throttlerz HTTP page.
It will:
- list all active throttlers
=> /throttlerz/
- show details of a throttler
=> /throttlerz/<name>
- show the most recent results of the adapative throttling of a throttler
=> /throttlerz/<name>/log
2016-08-22 11:11:05 -07:00
Michael Berlin 71fc83fb3f tabletserver: Move infrastructure for /<table>z pages into an extra package go/vt/logz.
This way, other packages can reuse the code without depending on go/vt/tabletserver.

I'll use the new package in go/vt/throttler shortly.
2016-08-22 11:11:05 -07:00
Michael Berlin 7904a0a1e8 throttler: Store past adapative throttler results in a ring buffer. 2016-08-22 11:11:05 -07:00
Michael Berlin b0c3245a95 throttler: memory.go: Return an error instead of logging it.
The returned error is populated in the "result" struct now.
2016-08-22 11:11:05 -07:00
Michael Berlin f0700f626c throttler: Capture the result of a recalculation in a dedicated object.
We're using this object for logging and later also for an HTTP page.

All call sites were changed to update the "Reason" field with a text why the rate was changed or not.
2016-08-22 11:11:05 -07:00
Michael Berlin d648f55a77 throttler: MaxReplicationLagModule: Set the current state at creation. 2016-08-22 11:11:05 -07:00
Michael Berlin 519131b2e0 throttler: Improve logging and error cases when guessing the slave rate. 2016-08-22 11:11:05 -07:00
Michael Berlin 311d7d63a8 throttler: Fix a bug that the emergency state could set a rate of 0.
The adaptive rate should always be at least 1.
2016-08-22 11:11:04 -07:00
Michael Berlin cff9ca0c9d throttler: Fixed a bug in the rate increase.
The code did not correctly set the new rate to the middle of [previous rate,lowest bad].
2016-08-22 11:11:04 -07:00
Michael Berlin 9c1efa0daf throttler: Change the state type from an int to a string.
This way it displays more nicely on a web page or in log files.

I've also prefixed the constants with "state" now to clarify that they belong to the "state" type.
2016-08-22 11:11:04 -07:00