Skip to content

Commit

Permalink
fix reporter to catch NoSuchMethodFoundError instead NoClassDefFoundE…
Browse files Browse the repository at this point in the history
…rror (confluentinc#430)

Signed-off-by: Lev Zemlyanov <[email protected]>
  • Loading branch information
Lev Zemlyanov authored Jul 25, 2020
1 parent 6617d77 commit 7256e94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void start(Map<String, String> props, ElasticsearchClient client) {

// may be null if DLQ not enabled
builder.setErrantRecordReporter(context.errantRecordReporter());
} catch (NoClassDefFoundError e) {
} catch (NoClassDefFoundError | NoSuchMethodError e) {
// Will occur in Connect runtimes earlier than 2.6
log.warn("AK versions prior to 2.6 do not support the errant record reporter");
}
Expand Down

0 comments on commit 7256e94

Please sign in to comment.