Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Slack sync upstream 2018 12 21.r1 #123

Merged
merged 101 commits into from
Jan 7, 2019
Merged

Conversation

rafael
Copy link

@rafael rafael commented Dec 21, 2018

Description

rafael and others added 30 commits November 21, 2018 16:35
Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
A new implementation of split diff that diffs against all the
destination servers at the same time. Since we only have to read out of
the source a single time this could give significant time savings.

Signed-off-by: Jon Tirsen <[email protected]>
* Extracted a bunch of methods
* Instead of mutexes, use channels
* Check UIDs in separate channel
* Test if MSD can work with the given tables
* Remove destination tablet type that was not used anyway
* Make tests run MultiSplitDiff as well
* Make the unit test run MSD

Signed-off-by: Andres Taylor <[email protected]>
5.7:
  Ver 14.14 Distrib 5.7.24-SR1, for Linux
8.0
  Ver 8.0.13 for Linux

Version format changed with mysql/mysql-server@7597482cf2d58

Signed-off-by: Scott Lanning <[email protected]>
### Summary
This was added in order to support spining up a vtgate within a cell that
has a limited access to the keyspaces inside that cell. It was added instead
of modifying the existing `filter_tablets` behavior because bringing in the
`|<shard-or-keyrange>` syntax didn't make sense based on the desired behavior.
`filter_tablets` and `keyspaces_to_watch` were made mutually exclusive to
prevent situations where the flags required different keyspaces which would
have implied a non-obvious behavior (or had to fail anyway).

Implementation was relatively straight-forward: I added a new srvtopo.Server
that can filter the keyspaces returned and passed to the callback for
WatchSrvVSchema as well as tests. If a call is made to get the underlying
topo.Server is returned, e.g., calls to a server Conn's ListDir will not be
have any filtering applied.

### Testing

Automated: Unit tests for the new filtering `srvtopo.Server` impl

Manual:

Using the vagrant setup I spun up a cluster with:

2 keyspaces: aaa_keyspace, test_keyspace
10 vttablets: 5 fronting each keyspace
1 vtgate, 1vtctld

- when not watching a specific keyspace showed both keyspaces on `show vitess_keyspaces`
- when `keyspaces_to_watch=test_keyspace` was set only `test_keyspace` was returned for `show vitess_keyspaces`; `select now() from dual;` was functional

Signed-off-by: Richard Bailey <[email protected]>
Previously, the gRPC method was not included in the tablet query logs
which made debugging an ExecuteBatch vs Execute issue challenging.

To address this, replace the existing RemoteAddr hook with the more
generic CallInfo.Text() result that includes both the remote addr and the
method in the case of gRPC.

Signed-off-by: Michael Demmer <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Richard Bailey <[email protected]>
Signed-off-by: Richard Bailey <[email protected]>
…at instead of real code so that tests are easier to reason about

Signed-off-by: Richard Bailey <[email protected]>
stop using init in filtering server test

Signed-off-by: Richard Bailey <[email protected]>
Signed-off-by: Derek Perkins <[email protected]>
Signed-off-by: Derek Perkins <[email protected]>
Update plan was changed to support aliases. Even though we don't need aliases
here, this refactor makes sure that the table is set in the same way as is done
in that context. This makes both plans consistent and avoid potential
confusion on why they differ.

Signed-off-by: Rafael Chacon <[email protected]>
LK4D4 and others added 27 commits December 18, 2018 18:04
[vt/sqlparser] Use strings.Builder in compliantName
Replaced ". ./dev.env" with "source ./dev.env" in GettingStarted.md
mysqlctl uses env MYSQL_FLAVOR to set MySQL Flavor.
But helper template use EXTRA_MY_CNF to set MySQL Flavor.

This cause a bug when use mariadb or mariadb103.
mysqlctl set mariadb.conf or mariadb103.conf and 'mysql56.conf' in my.cnf.
And this wrong config cause failure to run mariadb or mariadb103.

Signed-off-by: Jungsub Shin <[email protected]>
helm: Use MYSQL_FLAVOR to set flavor instead of EXTRA_MY_CNF
Signed-off-by: Derek Perkins <[email protected]>
helm: safer shutdown + flag defaults
* This change allows to have constant time resolution of aggregates per region

Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
…gr-stats-remove-l2vtgates

[vt/discovery] Add region context in GetAggregateStats - v2
Copy link

@brirams brirams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but what do i know?

@rafael rafael merged commit 1a994d9 into master Jan 7, 2019
@rafael rafael deleted the slack-sync-upstream-2018-12-21.r1 branch January 7, 2019 21:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.