Commit Graph

4753 Commits

Author SHA1 Message Date
Nurlan Moldomurov
99df5e853c PMM-9337 Fix build (#531) 2022-01-03 18:34:10 +03:00
Carlos Salguero
678cd3472a Merge branch 'release-3.3.2' of percona.github.com:percona/percona-toolkit into release-3.3.2 2021-09-30 15:21:39 -03:00
Carlos Salguero
7d76913185 Updated changelog 2021-09-30 15:21:23 -03:00
Carlos Salguero
33a2108822 Merge branch '3.x' into release-3.3.2 2021-09-27 08:27:00 -03:00
Carlos Salguero
9d6508da5f PT-1900 pt-query-digest not hiding parameter properly sometimes when parameter=binary (#510)
* PT-1900 WIP

* Fixed quoted strings regexes

* PT-1900 Fixed query rewriter to properly handle quoted text

* Fixed merge conflicts with 3.x branch
2021-09-27 08:23:23 -03:00
Carlos Salguero
d91ba9cadd PT-1959 Updated version number (#515)
Not updated in files that will be updated during the build like the
python script, Makefile.PL and some other files like documentation.
2021-09-20 10:27:29 -03:00
Jelle van der Waa
b19654fa48 Make build reproducible (#499)
By setting SOURCE_DATE_EPOCH builds the build binaries can become
reproducible as a rebuild will take the old build date as input.

Motivation: https://reproducible-builds.org
2021-09-20 10:26:27 -03:00
Carlos Salguero
dd2b144004 PMM-8575 migrate toolkit to modules (#512)
* PMM-8575 Fixed test

Fixed sandbox used by go programs, updated all tests.

* PMM-8575 Fixed test

Fixed sandbox used by go programs, updated all tests.

* Removed Gopkg

* Switched to go 1.16

* Updated go.mod

* Upgraded deps

* Updated deps
2021-09-10 16:08:58 -03:00
Sergey Kuzmichev
ad593c6de9 Fix for PT-1983: pt-summary has missing records for memory due to dmidecode changes (#513)
* Fix for PT-1983 pt-summary missing one DIMM

This is a fix for PT-1983. dmidecode now doesn't print "Speed: UKNOWN" for
missing DIMMs. pt-summary code relies on the Speed field to be there, and when
it's missing, rows get concatenated (or rather not broken down correctly).
Adjusted the relevant code to not rely on the Speed field to be present.

* Added test for the fix for PT-1983

Due to dmidecode changes in 3.2, pt-summary needs to be able to work
with memory-related info with some missing fields in the dmidecode
output. This commit adds a test with dmidecode output modified to
include new format.

In addition, fixing test that are failing due to commit c9ec74c251

* PT-1983: updated changelog to reflect the bug fixed
2021-09-08 07:32:30 -03:00
Carlos Salguero
e389d2181a PT-1800 Updated docs (#511) 2021-08-31 08:16:34 -03:00
Sergey Pronin
ee6a9da438 Update installation.rst (#508)
1. the list of operation systems is outdated
2. not on any installation page we have the list of supported OSes
3. we have supported OSes in our lifecycle doc - why add it here?
2021-08-20 11:22:54 +03:00
Paul Jacobs
e71fc0376b Spelling 2021-08-20 08:21:18 +03:00
Carlos Salguero
4b8ae0563f PMM-8489 Cluster ID for standalone server (#507)
* PMM-8489 Cluster ID for standalone server

* Updated error type

* Updated MyState to ignore errors on standalone servers

* Deleted dep files

* Revert "Deleted dep files"

This reverts commit 236303196b.

* Removed go.mod &^ updated lock

* Updated mongodb driver

* PMM-8489 Updated errors list
2021-08-18 11:22:47 -03:00
Roma Novikov
7eaca8a98e versions update (#505)
* versions update 

according to https://www.percona.com/services/policies/percona-software-support-lifecycle#pt

* correcting Debian versions (forgot to change them)

according to https://www.percona.com/services/policies/percona-software-support-lifecycle#pt
2021-08-10 07:50:41 -03:00
Carlos Salguero
d14d18a1bf PT-1997 Added error logs (#506) 2021-08-03 09:07:25 -03:00
Carlos Salguero
297bf58e32 Updated changelog for (WIP) 3.3.2 2021-07-31 10:03:26 -03:00
Carlos Salguero
21c154d86b Updated changelog for PT-1940 2021-07-30 19:46:13 -03:00
duxthefux
4a32ca7675 Added mysql version check for bug fix introduced in 8.0.14 (#474)
Thanks for the fix.
2021-07-30 19:41:53 -03:00
dependabot[bot]
35a19ad0a4 Bump go.mongodb.org/mongo-driver from 1.3.4 to 1.5.1 (#501)
Bumps [go.mongodb.org/mongo-driver](https://github.com/mongodb/mongo-go-driver) from 1.3.4 to 1.5.1.
- [Release notes](https://github.com/mongodb/mongo-go-driver/releases)
- [Commits](https://github.com/mongodb/mongo-go-driver/compare/v1.3.4...v1.5.1)

---
updated-dependencies:
- dependency-name: go.mongodb.org/mongo-driver
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-29 16:27:18 -03:00
Carlos Salguero
ecf43e2a17 PT-1985 pt-deadlock db schema check (#502) 2021-07-29 12:15:53 -03:00
Carlos Salguero
543f30c073 PT-1986 Check schema exists upon start (#503) 2021-07-29 12:15:23 -03:00
Andrii Dema
d84cb2496e PT-1930: pt-k8s-debug-collector should not attempt collecting PXC information when running against PSMDB (#498)
* PT-1930: pt-k8s-debug-collector should not attempt collecting PXC information when running against PSMDB

https://jira.percona.com/browse/PT-1930

Removed PXC resources to collect while running with `--resource psmdb`

* Add more `psmdb` resources

Also resolves https://jira.percona.com/browse/PT-1934

* Add `resourceType` function to collect summaries for PXC/PSMDB when option `--cluster` is specified
2021-07-28 09:01:20 -03:00
Andrii Dema
b0597554ad PT-1931: pt-k8s-debug-collector does not gather summaries for PSMDB (#500)
https://jira.percona.com/browse/PT-1931

When I tried to reproduce the bug, `pt-mongodb-summary` didn't launch only when option `--cluster` was specified. This PR fixes this behavior and also fixes https://jira.percona.com/browse/PT-1932
2021-07-27 13:49:58 -03:00
Andrii Dema
1114eb4dad PT-1926: pt-k8s-debug-collector should not collect passwords (#497)
https://jira.percona.com/browse/PT-1926

Save secrets only with configuration data
2021-07-21 10:38:20 -03:00
グリアンドロ
bdbfd44a1f Updated CONTRIBUTE.md to describe the steps in more depth (#496) 2021-07-02 17:20:08 -03:00
I
8e334d9ed2 PT-1974: Support fingerprinting for --print in pt-kill (#495)
* PT-1974: Support fingerprinting for --print in pt-kill

This commit implements `--fingerprint` that modifies the `--print`
behaviour and forces the query fingerprint to be displayed instead of an
original query.

* Added changelog entry.
2021-06-24 11:40:32 -03:00
yoku0825
dcf237ef8c Fix test PT-1966 (#493)
* Detect raising error for PT-1966

* Fix non-duplicated column name for PT-1966

* More good way to catch an error. (PT-1966)

- https://github.com/percona/percona-toolkit/pull/493#pullrequestreview-678426876

* Add Changelog (PT-1966)

- https://github.com/percona/percona-toolkit/pull/493
2021-06-17 10:28:54 -03:00
Sergey Kuzmichev
49b570ed0c Fix for PT-1965 mysql-only lacks mysqladmin output (#492)
* Fix for PT-1965 mysql-only lacks mysqladmin output

This is a fix for PT-1965. Moved mysqladmin execution out of an if block
that contains stuff executed only when --mysql-only is not specified.
Before this fix, mysqladmin was not executed with --mysql-only.

* PT-1965: updated changelog to reflect the bug fixed
2021-06-10 08:43:07 -03:00
Carlos Salguero
0b97e1f471 PT-1747 pt-online-schema-change was bringing the database into a broken state (#491)
* PT-1717 Updated behavior for FKs

* Fixed rename_columns.t

* Fixed pt-244.t

* fixed drop swap test

* Fixed test for MySQL 8.0

* Updated test for MySQL 8

* Updated test for MySQL 8
2021-06-03 12:00:43 -03:00
Dávid Mikuš
4dd72d96b1 Add some missing attributes for members (#490) 2021-05-04 10:49:48 -03:00
Paul Jacobs
be856c84b5 Update copyright year 2021-05-04 15:42:25 +03:00
Carlos Salguero
c47ac4d4df PT release 3.3.1 testing branch (#486)
* PT release 3.3.1 testing branch

* Update pkgs version

* Updated version from build script
2021-04-30 10:08:05 -03:00
PaulJacobs-percona
2cd3673314 RM-1954 Release Notes 3.3.1 (#489) 2021-04-29 09:45:01 -03:00
Roma Novikov
d9b3280f07 Update pt-summary (#487) 2021-04-27 08:55:10 -03:00
Carlos Salguero
5a0cbd79fc PT-716 [WIP] Forced free to use wide mode (#485) 2021-04-06 10:13:21 -03:00
Carlos Salguero
d78acd961c PMM-7689 Updated data type for getLastErrorDefaults.w (#484)
This field is not being used by any tool but it is needed to decode
bigger structures having it. Since the value can be an int to indicate
the number 1-primary, etc, or 'majority', I've changed the field type
from int to interface{}
2021-04-05 14:45:46 -03:00
Carlos Salguero
e570cecbab PT-1914 Column data lost when 'Generated' is in the column comment (#482)
* PMM-1914 Fixed column parsing having generated

Fixed table parser code that errouneously considered a column as
generated when the default was empty DEFAULT '' and the COMMENT had
the word 'Generated'.

* PMM-1914 Updated TableParser in all programs

* PT-1914 Updated changelog

* PT-1914 Added test
2021-03-09 11:46:05 -03:00
Carlos Salguero
4f78d5450c PT-1919 drop-swap can drop triggers (#483)
* PT-1919 drop-swap can drop triggers

* PT-1919 Update changelog
2021-03-05 11:32:03 -03:00
PaulJacobs-percona
9913690ebc Merge pull request #481 from percona/pt-k8s-debug-collector-doc-correction
Update and rename pt-k8s-psmdb-summary.rst to pt-k8s-debug-collector.rst
2021-01-15 09:06:22 +03:00
Roma Novikov
9b62421772 Update and rename pt-k8s-psmdb-summary.rst to pt-k8s-debug-collector.rst 2021-01-14 21:10:55 +02:00
PaulJacobs-percona
df16170eda Release 3.3.0 (#480)
* Updated Percona::Toolkit version

* Updated version in POD headers

* RM-880-RN-3.3.0

* Update makefile to use go dep

* Update year

* Theme is downloaded by Makefile

* Correct path to icon

* Updated pt-osc --reverse-triggers help

* Update reverse-triggers option

* PT-1905 Reverse triggers wording

Co-authored-by: Carlos Salguero <carlos.salguero@percona.com>
2021-01-14 15:22:19 -03:00
Carlos Salguero
00c437bfe2 Fixed --reverse-triggers help v3.3.0 2021-01-13 09:44:37 -03:00
Carlos Salguero
9ef2b56f4d PT-1905 Reverse triggers (#477)
* PT-1905 Reverse triggers

* WIP

* PT-1905 Updated reverse triggers creation

* PT-1905 Fixed trigger creation
2021-01-12 13:58:34 -03:00
Carlos Salguero
71c9902532 PT-1898 pt archiver keeps transaction open (#479)
* PT-1898 WIP

* PT-1898 Added commit for open txns

* PT-1898 Added commit for open txns

* PT-1898 removed dev leftover
2021-01-12 13:40:51 -03:00
PaulJacobs-percona
142bc69137 Merge pull request #470 from percona/CLOUD-535
CLOUD-535 Added pt-k8s-debug-collector tool
2021-01-07 09:37:36 +03:00
PaulJacobs-percona
77d2025a5a Update README.md
Formatting, spelling
2021-01-07 09:20:12 +03:00
PaulJacobs-percona
5c8a8bdda6 Update pt-k8s-psmdb-summary.rst
Formatting, spelling
2021-01-07 09:14:58 +03:00
Roma Novikov
b568d0cfe7 Create pt-k8s-psmdb-summary.rst 2021-01-06 21:09:21 +02:00
Roma Novikov
aecd10a869 PT-1907 Socket connection support by pt-pg-summary (#476) 2021-01-04 10:29:46 -03:00
Carlos Salguero
e1b7a6a1fd PT-1857 heartbeat can't reconnect (#475)
* PT-1857 pt-heartbeat reconnect

* PT-1857 Updated changelog
2020-12-24 16:23:42 -03:00