Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove details from migrations logging #172732

Merged
merged 4 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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`);
};
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -63,7 +63,7 @@ describe('migration v2', () => {
);

expect(logRecordWithPit).toBeTruthy();

/* TEMPORARILY DISABLE
const pitId = logRecordWithPit.right.pitId;
expect(pitId).toBeTruthy();
Expand All @@ -75,6 +75,7 @@ describe('migration v2', () => {
})
// throws an exception that cannot search with closed PIT
).rejects.toThrow(/search_phase_execution_exception/);
*/
});

afterEach(async () => {
Expand Down
Loading