[8.11] Remove details from migrations logging (#172732) (#172743)

# Backport

This will backport the following commits from `main` to `8.11`:
- [Remove details from migrations logging
(#172732)](https://github.com/elastic/kibana/pull/172732)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Larry
Gregory","email":"larry.gregory@elastic.co"},"sourceCommit":{"committedDate":"2023-12-06T22:37:49Z","message":"Remove
details from migrations logging (#172732)\n\n## Summary\r\n\r\nBluntly
removes details from a debug log
message.","sha":"f5d1e45e5923d68eec2fe87319b07fceb3767ad9","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","release_note:skip","backport:all-open","v8.12.0"],"number":172732,"url":"https://github.com/elastic/kibana/pull/172732","mergeCommit":{"message":"Remove
details from migrations logging (#172732)\n\n## Summary\r\n\r\nBluntly
removes details from a debug log
message.","sha":"f5d1e45e5923d68eec2fe87319b07fceb3767ad9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172732","number":172732,"mergeCommit":{"message":"Remove
details from migrations logging (#172732)\n\n## Summary\r\n\r\nBluntly
removes details from a debug log
message.","sha":"f5d1e45e5923d68eec2fe87319b07fceb3767ad9"}}]}]
BACKPORT-->

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
This commit is contained in:
Kibana Machine 2023-12-06 18:53:18 -05:00 committed by GitHub
parent 385f33e9d4
commit 28cd9ebb7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 27 deletions

View file

@ -5,10 +5,6 @@ Object {
"debug": Array [
Array [
"[.my-so-index] INIT RESPONSE",
Object {
"_tag": "Right",
"right": "response",
},
],
Array [
"[.my-so-index] INIT -> LEGACY_REINDEX. took: 0ms.",
@ -233,10 +229,6 @@ Object {
],
Array [
"[.my-so-index] LEGACY_REINDEX RESPONSE",
Object {
"_tag": "Right",
"right": "response",
},
],
Array [
"[.my-so-index] LEGACY_REINDEX -> LEGACY_DELETE. took: 0ms.",
@ -465,10 +457,6 @@ Object {
],
Array [
"[.my-so-index] LEGACY_DELETE RESPONSE",
Object {
"_tag": "Right",
"right": "response",
},
],
Array [
"[.my-so-index] LEGACY_DELETE -> LEGACY_DELETE. took: 0ms.",
@ -701,10 +689,6 @@ Object {
],
Array [
"[.my-so-index] LEGACY_DELETE RESPONSE",
Object {
"_tag": "Right",
"right": "response",
},
],
Array [
"[.my-so-index] LEGACY_DELETE -> DONE. took: 0ms.",
@ -967,10 +951,6 @@ Object {
"debug": Array [
Array [
"[.my-so-index] INIT RESPONSE",
Object {
"_tag": "Right",
"right": "response",
},
],
Array [
"[.my-so-index] INIT -> LEGACY_DELETE. took: 0ms.",
@ -1206,10 +1186,6 @@ Object {
],
Array [
"[.my-so-index] LEGACY_DELETE RESPONSE",
Object {
"_tag": "Right",
"right": "response",
},
],
Array [
"[.my-so-index] LEGACY_DELETE -> FATAL. took: 0ms.",

View file

@ -66,5 +66,5 @@ export const logActionResponse = (
state: LogAwareState,
res: unknown
) => {
logger.debug(logMessagePrefix + `${state.controlState} RESPONSE`, res as LogMeta);
logger.debug(logMessagePrefix + `${state.controlState} RESPONSE`);
};

View file

@ -42,7 +42,7 @@ describe('migration v2', () => {
});
it('clean ups if migration fails', async () => {
const { runMigrations, client } = await setupNextMinor();
const { runMigrations /* , client */ } = await setupNextMinor();
await expect(runMigrations()).rejects.toThrowErrorMatchingInlineSnapshot(`
"Unable to complete saved object migrations for the [${defaultKibanaIndex}] index: Migrations failed. Reason: 1 corrupt saved object documents were found: corrupt:2baf4de0-a6d4-11ed-ba5a-39196fc76e60
@ -63,7 +63,7 @@ describe('migration v2', () => {
);
expect(logRecordWithPit).toBeTruthy();
/* TEMPORARILY DISABLE
const pitId = logRecordWithPit.right.pitId;
expect(pitId).toBeTruthy();
@ -75,6 +75,7 @@ describe('migration v2', () => {
})
// throws an exception that cannot search with closed PIT
).rejects.toThrow(/search_phase_execution_exception/);
*/
});
afterEach(async () => {