flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From static-max <...@git.apache.org>
Subject [GitHub] flink issue #3246: [FLINK-5353] [elasticsearch] User-provided failure handle...
Date Wed, 08 Feb 2017 13:13:37 GMT
Github user static-max commented on the issue:

    Looks great!
    One note: In your example ExampleActionRequestFailureHandler you have to unwrap the Exception,
as it is typical looks like:
    `RemoteTransportException[[Richard Rider][][indices:data/write/bulk[s]]];
nested: RemoteTransportException[[Richard Rider][][indices:data/write/bulk[s][p]]];
nested: EsRejectedExecutionException[rejected execution of org.elasticsearch.transport.TransportService$4@e5c47a1
on EsThreadPoolExecutor[bulk, queue capacity = 1, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@7e2d5cc5[Running,
pool size = 8, active threads = 8, queued tasks = 1, completed tasks = 119]]];`
    In my implementation I use Apache commons:
    ExceptionUtils.indexOfThrowable(throwable, EsRejectedExecutionException.class) >= 0

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message