<commit_before>import { PRetryConfig, isTest } from '@terascope/utils';

export const MAX_RETRIES = isTest ? 2 : 100;
export const RETRY_DELAY = isTest ? 50 : 500;

export function getRetryConfig(): Partial<PRetryConfig> {
    return {
        retries: MAX_RETRIES,
        delay: RETRY_DELAY,
        matches: ['es_rejected_execution_exception', 'No Living connections'],
    };
}
<commit_msg>Add node_disconnect_exception to retry list in elasticsearch-store<commit_after>import { PRetryConfig, isTest } from '@terascope/utils';

export const MAX_RETRIES = isTest ? 2 : 100;
export const RETRY_DELAY = isTest ? 50 : 500;

export function getRetryConfig(): Partial<PRetryConfig> {
    return {
        retries: MAX_RETRIES,
        delay: RETRY_DELAY,
        matches: [
            'node_disconnect_exception',
            'es_rejected_execution_exception',
            'No Living connections'
        ],
    };
}

{'fraction_non_alphanumeric': 0.09606986899563319, 'fraction_numerical': 0.019650655021834062, 'mean_word_length': 3.345971563981043, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3104150', 'n_tokens_mistral': 299, 'n_tokens_neox': 280, 'n_words': 69}