Skip to content

Commit

Permalink
Fix data_views.hasEsDataTimeout config key
Browse files Browse the repository at this point in the history
  • Loading branch information
davismcphee committed Nov 19, 2024
1 parent 0657960 commit af0148d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ describe('has_es_data route', () => {
expect(mockLogger.warn).toBeCalledTimes(1);
expect(mockLogger.warn).toBeCalledWith(
'Timeout while checking for Elasticsearch data: local_data_timeout. Current timeout value is 5000ms. ' +
'Use "dataViews.hasEsDataTimeout" in kibana.yml to change it, or set to 0 to disable timeouts.'
'Use "data_views.hasEsDataTimeout" in kibana.yml to change it, or set to 0 to disable timeouts.'
);
});

Expand Down Expand Up @@ -262,7 +262,7 @@ describe('has_es_data route', () => {
expect(mockLogger.warn).toBeCalledTimes(1);
expect(mockLogger.warn).toBeCalledWith(
'Timeout while checking for Elasticsearch data: remote_data_timeout. Current timeout value is 5000ms. ' +
'Use "dataViews.hasEsDataTimeout" in kibana.yml to change it, or set to 0 to disable timeouts.'
'Use "data_views.hasEsDataTimeout" in kibana.yml to change it, or set to 0 to disable timeouts.'
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const hasEsData = async ({
if (e.name === 'TimeoutError') {
const warningMessage =
`${timeoutMessage}: ${timeoutReason}. Current timeout value is ${hasEsDataTimeout}ms. ` +
`Use "dataViews.hasEsDataTimeout" in kibana.yml to change it, or set to 0 to disable timeouts.`;
`Use "data_views.hasEsDataTimeout" in kibana.yml to change it, or set to 0 to disable timeouts.`;

logger.warn(warningMessage);

Expand Down

0 comments on commit af0148d

Please sign in to comment.