Skip to content

Commit

Permalink
fix: Fixes graalvm issues with micronaut-kafka not working if you set…
Browse files Browse the repository at this point in the history
… a value for errorStrategy (#658)
  • Loading branch information
oliverbestmann authored Feb 9, 2023
1 parent d1f9622 commit 5ce50c7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1069,9 +1069,9 @@ private ConsumerState(String clientId, String groupId, OffsetStrategy offsetStra
redelivery = kafkaListener.isTrue("redelivery");

AnnotationValue<ErrorStrategy> errorStrategyAnnotation = kafkaListener.getAnnotation("errorStrategy", ErrorStrategy.class).orElse(null);
errorStrategy = errorStrategyAnnotation == null ? ErrorStrategyValue.NONE : kafkaListener.get("errorStrategy", ErrorStrategy.class)
.map(ErrorStrategy::value)
.orElse(ErrorStrategyValue.NONE);
errorStrategy = errorStrategyAnnotation != null
? errorStrategyAnnotation.getRequiredValue(ErrorStrategyValue.class)
: ErrorStrategyValue.NONE;

if (isRetryErrorStrategy(errorStrategy)) {
Duration retryDelay = errorStrategyAnnotation.get("retryDelay", Duration.class)
Expand Down

0 comments on commit 5ce50c7

Please sign in to comment.