Commit Graph

5257 Commits

Author SHA1 Message Date
Sveta Smirnova
bafe4ff832 Merge pull request #751 from alina-derkach-oaza/fix-rn-list
Fix the release notes list
2024-01-09 14:58:46 +03:00
Alina Derkach
a35792f802 Fix release notes list
dquote>         modified:   docs/release_notes.rst
2024-01-09 13:44:11 +02:00
Yoann La Cancellera
97cc3ebb01 PT-2298 pt-galera-log-explainer superfluous lines on conflicts 2024-01-08 18:37:57 +01:00
dependabot[bot]
f4986e6554 Bump aquasecurity/trivy-action from 0.16.0 to 0.16.1
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.16.0 to 0.16.1.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](https://github.com/aquasecurity/trivy-action/compare/0.16.0...0.16.1)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-08 09:58:37 +00:00
Sveta Smirnova
8521dd0c3c Merge pull request #734 from samitani/PT-2100-fix-wide-char-error
PT-2100 - fixed Wide character error
2023-12-29 18:34:41 +03:00
Sveta Smirnova
5e7e66fd82 Update bin/pt-online-schema-change 2023-12-29 18:32:11 +03:00
Sveta Smirnova
f3a9a0df0f Merge branch '3.x' into HEAD 2023-12-29 17:20:01 +03:00
Satoshi Mitani
14facac3bf PT-2100 - fixed a bug where --alter-foreign-keys-method=none does not work due to Wide character error 2023-12-29 17:19:43 +03:00
Artem Gavrilov
ec6406557e 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-29 17:19:43 +03:00
Artem Gavrilov
db5e90c8d4 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-29 17:19:43 +03:00
Artem Gavrilov
97d978e2ea Merge pull request #731 from percona/dependabot/github_actions/actions/setup-go-5
Bump actions/setup-go from 4 to 5
2023-12-29 17:19:43 +03:00
dependabot[bot]
55b2ece3d6 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-29 17:19:41 +03:00
dependabot[bot]
30d9493204 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-29 17:19:41 +03:00
Sveta Smirnova
f189f8382e Revert "PT-2083 - Pt-archiver --charset option is not working for MySQL8.0"
This reverts commit 284a1f945e.
2023-12-29 17:19:41 +03:00
dependabot[bot]
450e9cd7a3 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-29 17:19:41 +03:00
Sveta Smirnova
f1d431ee50 PT-2083 - Pt-archiver --charset option is not working for MySQL8.0
- Changed logic, introduced by commit 1d1c13fbcb
- Added test case
2023-12-29 17:19:41 +03:00
Artem Gavrilov
f4b01c37a6 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-29 17:19:41 +03:00
Artem Gavrilov
9cd46954fe 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-29 17:19:41 +03:00
dependabot[bot]
0f3af52bd2 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-29 17:19:41 +03:00
Artem Gavrilov
a6ed1371cb 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-29 17:19:41 +03:00
Sveta Smirnova
6b595cb3db Merge pull request #721 from oblitorum/PT-2277_impossible_on_condition
PT-2277 - fix pt-visual-explain for 'Impossible ON condition' case
2023-12-29 17:19:41 +03:00
Sveta Smirnova
e71736c2d9 Merge pull request #706 from percona/Follow_PR-429_unstop_option_with_testcase
Follow PR-429 unstop option with testcase
2023-12-29 17:19:41 +03:00
dependabot[bot]
2c9222c95d 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-29 17:19:40 +03:00
dependabot[bot]
5f28690b13 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-29 17:19:40 +03:00
Sveta Smirnova
23f7357cb7 Merge pull request #669 from ylacancellera/galera-log-explainer
Add pt-galera-log-explainer
2023-12-29 17:19:40 +03:00
Sveta Smirnova
a33d63b52c PR-669 - Add pt-galera-log-explainer
- Exceptions for identifiers and Galera library errors in .typos.toml
2023-12-29 17:19:40 +03:00
Sveta Smirnova
e4c7bb6e82 PR-669 - Add pt-galera-log-explainer
- Added exception for Go tests into .typos.toml
2023-12-29 17:19:40 +03:00
Sveta Smirnova
95cef030d9 PR-669 - Add pt-galera-log-explainer
- Added exception into .typos.toml for src/go/pt-galera-log-explainer/tests/
2023-12-29 17:19:40 +03:00
Sveta Smirnova
86b1f2986f PR-669 - Add pt-galera-log-explainer
- Added exception for IST into .typos.toml
2023-12-29 17:19:40 +03:00
Sveta Smirnova
7ca88e7b59 Merge branch '3.x' into galera-log-explainer 2023-12-29 17:19:39 +03:00
Sveta Smirnova
dc07968b31 PR-669 - Add pt-galera-log-explainer
- Sync README.rst and docs/pt-galera-log-explainer.rst
2023-12-29 17:19:25 +03:00
Yoann La Cancellera
68e1b25001 preallocate lastcontexts map 2023-12-29 17:19:25 +03:00
Yoann La Cancellera
5a0574c828 Move: chan closing in "main" func 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
5030769bc8 Rename ctx to logCtx, remove any mention of ctx 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
8ccd547042 Fix: missed errors, minor formatting issues 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
671706c0da Imp: use strings.builder for conflicts 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
1e132b25fd Add: parallel on 2 unit tests 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
da3acc8e57 Update src/go/pt-galera-log-explainer/README.rst
Co-authored-by: Sveta Smirnova <svetasmirnova@users.noreply.github.com>
2023-12-29 17:19:24 +03:00
Yoann La Cancellera
fd9d09d9ae Fix: README with -vvv, --grep-args, regex-list 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
d1f7c72a9f 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-29 17:19:24 +03:00
Yoann La Cancellera
a5cf09a79e Remove: --grep-args
Can be used to break the tool, and I actually never had an use-case
2023-12-29 17:19:24 +03:00
Yoann La Cancellera
6d9136890a Fix: typos 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
8b84adb1e0 Remove old comments, dead code 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
4f5b089a34 Add: translate tests 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
84dcf1ef9c Commenting out whois+sed, will be re-added later 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
c910c35d3e 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-29 17:19:24 +03:00
Yoann La Cancellera
ea262eff27 Add: inconsistent vote regex corner-case 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
580ccb7428 Add: shortuuid check, new date layout found 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
3eaf60bd88 Add: same ip/name limitation on README.rst 2023-12-29 17:19:24 +03:00
Yoann La Cancellera
7513e1ded7 Add: operator member assocations regex
It existed for non-operator setup, but was not working for operators due
to k8s logs not interpreting newlines and tabs
This operator version re-uses existing regular regex handlers directly
2023-12-29 17:19:24 +03:00