Sveta Smirnova
2cdd973e59
Merge pull request #733 from percona/make_build_docs_for_go
...
Added hook for help output for new option in src/go/Makefile: build
2023-12-22 23:11:31 +03:00
Sveta Smirnova
bab154be03
Updated modules and version
2023-12-22 23:11:31 +03:00
Sveta Smirnova
c6bec028c3
Changelog updated
2023-12-22 23:11:31 +03:00
Sveta Smirnova
55171b2a4a
Merge pull request #729 from percona/PT-2268-pt-online-schema-change_3.5.5_breaks_on_mysql5.7_with_server_id_0
...
PT-2268 - pt-online-schema-change 3.5.5 breaks on mysql5.7 with serve…
2023-12-22 23:11:31 +03:00
Sveta Smirnova
a5bcc86040
Added hook for help output for new option in src/go/Makefile: build
2023-12-22 23:11:31 +03:00
Sveta Smirnova
25d317d12b
Merge branch '3.x' into HEAD
2023-12-22 23:11:31 +03:00
Sveta Smirnova
573b7c9342
Merge pull request #728 from percona/PT-2083-Pt-archiver_--charset_option_is_not_working_for_MySQL8.0
...
PT-2083 - Pt-archiver --charset option is not working for MySQL8.0
2023-12-22 23:11:31 +03:00
Sveta Smirnova
643113540f
PT-2268 - pt-online-schema-change 3.5.5 breaks on mysql5.7 with server_id 0
...
- Better check if server_id is defined
- Added test case
2023-12-22 23:11:31 +03:00
Artem Gavrilov
6520a84d99
Merge pull request #730 from percona/dependabot/go_modules/go.mongodb.org/mongo-driver-1.13.1
...
Bump go.mongodb.org/mongo-driver from 1.13.0 to 1.13.1
2023-12-22 23:11:31 +03:00
Artem Gavrilov
7c9b8590d0
Merge pull request #725 from percona/dependabot/go_modules/golang.org/x/crypto-0.16.0
...
Bump golang.org/x/crypto from 0.15.0 to 0.16.0
2023-12-22 23:11:31 +03:00
Sveta Smirnova
fa41e20e83
PT-2083 - Pt-archiver --charset option is not working for MySQL8.0
...
- Run util/update-modules
2023-12-22 23:11:31 +03:00
Sveta Smirnova
9b347dd466
Revert "PT-2083 - Pt-archiver --charset option is not working for MySQL8.0"
...
This reverts commit 284a1f945e
.
2023-12-22 23:11:31 +03:00
Artem Gavrilov
674cc67036
Merge pull request #732 from percona/dependabot/github_actions/aquasecurity/trivy-action-0.16.0
...
Bump aquasecurity/trivy-action from 0.14.0 to 0.16.0
2023-12-22 23:11:31 +03:00
dependabot[bot]
d0730c8073
Bump go.mongodb.org/mongo-driver from 1.13.0 to 1.13.1
...
Bumps [go.mongodb.org/mongo-driver](https://github.com/mongodb/mongo-go-driver ) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/mongodb/mongo-go-driver/releases )
- [Commits](https://github.com/mongodb/mongo-go-driver/compare/v1.13.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: go.mongodb.org/mongo-driver
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-22 23:11:31 +03:00
Artem Gavrilov
c614c447e1
Merge pull request #726 from percona/dependabot/go_modules/github.com/rs/zerolog-1.31.0
...
Bump github.com/rs/zerolog from 1.30.0 to 1.31.0
2023-12-22 23:11:31 +03:00
dependabot[bot]
b6fb163417
Bump golang.org/x/crypto from 0.15.0 to 0.16.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/crypto/compare/v0.15.0...v0.16.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-22 23:11:31 +03:00
Sveta Smirnova
cadf35abc4
PT-2083 - Pt-archiver --charset option is not working for MySQL8.0
...
- Changed logic, introduced by commit 1d1c13f
- Added test case
2023-12-22 23:11:31 +03:00
Sveta Smirnova
1682aa202c
PT-2083 - Pt-archiver --charset option is not working for MySQL8.0
...
- Changed logic, introduced by commit 1d1c13fbcb
- Added test case
2023-12-22 23:11:31 +03:00
Artem Gavrilov
424affe097
Merge pull request #731 from percona/dependabot/github_actions/actions/setup-go-5
...
Bump actions/setup-go from 4 to 5
2023-12-22 23:11:31 +03:00
dependabot[bot]
2c3e702020
Bump aquasecurity/trivy-action from 0.14.0 to 0.16.0
...
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action ) from 0.14.0 to 0.16.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases )
- [Commits](https://github.com/aquasecurity/trivy-action/compare/0.14.0...0.16.0 )
---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-22 23:11:31 +03:00
Artem Gavrilov
224462e78d
Merge pull request #727 from percona/dependabot/go_modules/github.com/google/go-cmp-0.6.0
...
Bump github.com/google/go-cmp from 0.5.9 to 0.6.0
2023-12-22 23:11:31 +03:00
dependabot[bot]
cf1e0a7ce6
Bump github.com/rs/zerolog from 1.30.0 to 1.31.0
...
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog ) from 1.30.0 to 1.31.0.
- [Release notes](https://github.com/rs/zerolog/releases )
- [Commits](https://github.com/rs/zerolog/compare/v1.30.0...v1.31.0 )
---
updated-dependencies:
- dependency-name: github.com/rs/zerolog
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-22 23:11:31 +03:00
dependabot[bot]
f25094f15b
Bump actions/setup-go from 4 to 5
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-22 23:11:31 +03:00
Sveta Smirnova
57886d5665
Merge pull request #721 from oblitorum/PT-2277_impossible_on_condition
...
PT-2277 - fix pt-visual-explain for 'Impossible ON condition' case
2023-12-22 23:11:31 +03:00
Sveta Smirnova
a4cf465087
Merge pull request #706 from percona/Follow_PR-429_unstop_option_with_testcase
...
Follow PR-429 unstop option with testcase
2023-12-22 23:11:31 +03:00
dependabot[bot]
b075224544
Bump github.com/google/go-cmp from 0.5.9 to 0.6.0
...
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp ) from 0.5.9 to 0.6.0.
- [Release notes](https://github.com/google/go-cmp/releases )
- [Commits](https://github.com/google/go-cmp/compare/v0.5.9...v0.6.0 )
---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-22 23:11:29 +03:00
Sveta Smirnova
5a2df41f90
Merge pull request #669 from ylacancellera/galera-log-explainer
...
Add pt-galera-log-explainer
2023-12-22 23:11:14 +03:00
Sveta Smirnova
4475641582
PR-669 - Add pt-galera-log-explainer
...
- Exceptions for identifiers and Galera library errors in .typos.toml
2023-12-22 23:11:13 +03:00
Sveta Smirnova
659bfded74
PR-669 - Add pt-galera-log-explainer
...
- Added exception for Go tests into .typos.toml
2023-12-22 23:11:13 +03:00
Sveta Smirnova
65ecf4158b
PR-669 - Add pt-galera-log-explainer
...
- Added exception into .typos.toml for src/go/pt-galera-log-explainer/tests/
2023-12-22 23:11:13 +03:00
Sveta Smirnova
da9a8d3e17
PR-669 - Add pt-galera-log-explainer
...
- Added exception for IST into .typos.toml
2023-12-22 23:11:13 +03:00
Sveta Smirnova
99885fdbd5
Merge branch '3.x' into galera-log-explainer
2023-12-22 23:11:12 +03:00
Sveta Smirnova
060a5d7988
PR-669 - Add pt-galera-log-explainer
...
- Sync README.rst and docs/pt-galera-log-explainer.rst
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
fd95589c96
preallocate lastcontexts map
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
90ae30517a
Move: chan closing in "main" func
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
955fd75ca9
Rename ctx to logCtx, remove any mention of ctx
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
bb6c5e1abd
Fix: missed errors, minor formatting issues
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
2a97f061db
Imp: use strings.builder for conflicts
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
d6d4d30283
Add: parallel on 2 unit tests
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
aac8896e2f
Update src/go/pt-galera-log-explainer/README.rst
...
Co-authored-by: Sveta Smirnova <svetasmirnova@users.noreply.github.com >
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
98b7a7d52a
Fix: README with -vvv, --grep-args, regex-list
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
5d93fbbcc0
PR-669 - Add pt-galera-log-explainer percona#669
...
- Commented out whois command in README.rst
- Copied README.rst into docs directory, so user manual will include
this tool
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
27654e9853
Remove: --grep-args
...
Can be used to break the tool, and I actually never had an use-case
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
3fae43123e
Fix: typos
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
7876a0511c
Remove old comments, dead code
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
ad91b7d407
Add: translate tests
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
78aebd272d
Commenting out whois+sed, will be re-added later
2023-12-22 23:10:34 +03:00
Yoann La Cancellera
2091c1a1f0
Refactoring: migrate translations to singleton
...
It was using maps in each context, which would be merged between
contexts, then injected each time we needed a message to display.
It had a limitation on complicated operator setups: historical
information would be overriden by newer associations.
(e.g, that IP was for node0 yesterday, now it's node1, so associations
have been overwritten and incorrect)
It also introduced complexity, such as forcing to define closures too
many times, merging maps, it would be harder to debug, and every files
were starting from empty translation maps.
Moreover, iterating on maps is guaranteed to be random so it could create
hard-to-debug output variations on complex cases.
Now it is a singleton in translate package, still using maps but now it
associates an array of "units" storing the timestamp with each piece of information.
It is protected by rwmutex, because map are not threadsafe. (there's no
parallel processing for now)
No regressions, and it passes "operator_ambiguous_ips_list_all_no_color"
where the old system failed.
It nows also can be used as an easy to read source of information in
itself
2023-12-22 23:10:32 +03:00
Yoann La Cancellera
e56fc45a05
Add: inconsistent vote regex corner-case
2023-12-22 23:10:08 +03:00
Yoann La Cancellera
246f875ed9
Add: shortuuid check, new date layout found
2023-12-22 23:10:08 +03:00