Class BootstrapResolutionException

All Implemented Interfaces:
Serializable

@Public @Evolving public class BootstrapResolutionException extends KafkaException
Indicates that the NetworkClient was unable to resolve a DNS address within the time specified by CommonClientConfigs.BOOTSTRAP_RESOLVE_TIMEOUT_MS_CONFIG.

This is an unrecoverable error: the failure is permanently attached to the client and is re-thrown on every subsequent API call. Callers must close the client and construct a new one after resolving the underlying DNS or bootstrap.servers configuration issue.

This exception is only thrown when bootstrap.resolve.timeout.ms is set to a positive value. This feature is evolving and may undergo compatibility-breaking changes in a minor release.

See Also:
  • Constructor Details

    • BootstrapResolutionException

      public BootstrapResolutionException(String message)
    • BootstrapResolutionException

      public BootstrapResolutionException(String message, Throwable cause)