【问题标题】:Hazelcast 3.11 client connection retry config problem -Hazelcast 3.11 客户端连接重试配置问题 -
【发布时间】:2019-06-08 08:36:45
【问题描述】:

我正在尝试使用此处解释的连接重试:

https://docs.hazelcast.org/docs/3.11/manual/html-single/index.html#configuring-client-connection-retry

如下设置配置

 <connection-strategy async-start="true" reconnect-mode="ASYNC">
        <connection-retry enabled="true">
            <initial-backoff-millis>2000</initial-backoff-millis>
            <max-backoff-millis>60000</max-backoff-millis>
            <multiplier>3</multiplier>
            <fail-on-max-backoff>false</fail-on-max-backoff>
            <jitter>0.5</jitter>
        </connection-retry>
    </connection-strategy>

给出以下错误:

Factory method 'client' threw exception; nested exception is com.hazelcast.config.InvalidConfigurationException: cvc-complex-type.2.1: Element 'connection-strategy' must have no character or element information item [children], because the type's content type is empty.

https://hazelcast.com/schema/client-config/hazelcast-client-config-3.11.xsd

子元素好像不见了?

<xs:complexType name="connection-strategy">
<xs:attribute name="async-start" type="xs:boolean" default="false" use="optional"/>
<xs:attribute name="reconnect-mode" type="reconnect-mode" default="ON" use="optional"/>
</xs:complexType>

如何使用重试连接功能?

谢谢

问候

【问题讨论】:

    标签: distributed-computing hazelcast


    【解决方案1】:

    这是由于我的应用程序中存在愚蠢的类路径问题。没有错误。给您带来的不便敬请谅解

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-01
      • 2010-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多