mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-01 19:18:05 +00:00
added re-run search indexing banner for es exception on explore page (#15120)
* added re-run search indexing banner for es exception * minor change
This commit is contained in:
parent
bf6fd926f3
commit
b3401a32de
@ -91,4 +91,6 @@ export const COMMON_FILTERS_FOR_DIFFERENT_TABS = [
|
||||
|
||||
export const FAILED_TO_FIND_INDEX_ERROR = 'Failed to to find index';
|
||||
|
||||
export const ES_EXCEPTION_SHARDS_FAILED = 'reason=all shards failed';
|
||||
|
||||
export const SEARCH_INDEXING_APPLICATION = 'SearchIndexingApplication';
|
||||
|
||||
@ -36,6 +36,7 @@ import { useTourProvider } from '../../components/TourProvider/TourProvider';
|
||||
import { getExplorePath, PAGE_SIZE } from '../../constants/constants';
|
||||
import {
|
||||
COMMON_FILTERS_FOR_DIFFERENT_TABS,
|
||||
ES_EXCEPTION_SHARDS_FAILED,
|
||||
FAILED_TO_FIND_INDEX_ERROR,
|
||||
INITIAL_SORT_FIELD,
|
||||
} from '../../constants/explore.constants';
|
||||
@ -393,7 +394,10 @@ const ExplorePageV1: FunctionComponent = () => {
|
||||
}),
|
||||
])
|
||||
.catch((error) => {
|
||||
if (error.response?.data.message.includes(FAILED_TO_FIND_INDEX_ERROR)) {
|
||||
if (
|
||||
error.response?.data.message.includes(FAILED_TO_FIND_INDEX_ERROR) ||
|
||||
error.response?.data.message.includes(ES_EXCEPTION_SHARDS_FAILED)
|
||||
) {
|
||||
setShowIndexNotFoundAlert(true);
|
||||
} else {
|
||||
showErrorToast(error);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user