{"record":{"id":"98744f3646e04a4b","repo":"eclipse-vertx/vert.x","slug":"clusterpinginterval-must-be-greater-than-0","errorCode":null,"errorMessage":"clusterPingInterval must be greater than 0","messagePattern":"clusterPingInterval must be greater than 0","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"vertx-core/src/main/java/io/vertx/core/eventbus/EventBusOptions.java","lineNumber":549,"sourceCode":"  /**\n   * Get the value of cluster ping reply interval, in ms.\n   * After sending a ping, if a pong is not received in this time, the node will be considered dead.\n   *\n   * @return the value of cluster ping reply interval\n   */\n  public long getClusterPingInterval() {\n    return clusterPingInterval;\n  }\n\n  /**\n   * Set the value of cluster ping interval, in ms.\n   *\n   * @param clusterPingInterval The value of cluster ping interval, in ms.\n   * @return a reference to this, so the API can be used fluently\n   */\n  public EventBusOptions setClusterPingInterval(long clusterPingInterval) {\n    if (clusterPingInterval < 1) {\n      throw new IllegalArgumentException(\"clusterPingInterval must be greater than 0\");\n    }\n    this.clusterPingInterval = clusterPingInterval;\n    return this;\n  }\n\n  /**\n   * Get the value of cluster ping reply interval, in ms.\n   * After sending a ping, if a pong is not received in this time, the node will be considered dead.\n   *\n   * @return the value of cluster ping reply interval\n   */\n  public long getClusterPingReplyInterval() {\n    return clusterPingReplyInterval;\n  }\n\n  /**\n   * Set the value of cluster ping reply interval, in ms.\n   *","sourceCodeStart":531,"sourceCodeEnd":567,"githubUrl":"https://github.com/eclipse-vertx/vert.x/blob/fb308bd8c3f12c79f4ae89bef67fadf6c80d036e/vertx-core/src/main/java/io/vertx/core/eventbus/EventBusOptions.java#L531-L567","documentation":"Configuration validation in setClusterPingInterval: the interval in milliseconds between cluster liveness pings must be positive. A zero or negative interval would spam the cluster with pings continuously, so the setter rejects it.","triggerScenarios":"Thrown at vertx-core/src/main/java/io/vertx/core/eventbus/EventBusOptions.java:549 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a positive interval in ms (default 20000)","Sanitize cluster configuration from JSON before constructing EventBusOptions"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fb308bd8c3f12c79f4ae89bef67fadf6c80d036e","analyzedAt":"2026-09-06T11:37:12.241Z","contentChangedAt":"2026-09-06T11:37:12.241Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}