Hi <@U04S8PLJWMT> We're experiencing Temporal w...
# ask-ai
c
Hi @kapa.ai We're experiencing Temporal workflow failures in our production environment after upgrading from Airbyte Helm chart 1.7.2 to 1.8.0. The issue: - All sync jobs are failing with: Setting attempt to FAILED because the workflow for this connection was restarted, and existing job state was cleaned - Temporal logs show constant shard ownership conflicts between the 2 Temporal replicas - Range IDs are incrementing rapidly (861439 → 861440 → 861441...) indicating replicas are fighting for shard ownership What we found: Chart 1.8.0 introduced these environment variables in the Temporal deployment: - BIND_ON_IP=0.0.0.0 - TEMPORAL_BROADCAST_ADDRESS=0.0.0.0 Chart 1.7.2 doesn't have these variables and works fine with 2 replicas across our other regions. We believe setting TEMPORAL_BROADCAST_ADDRESS=0.0.0.0 for both pods is causing them to not distinguish themselves in the cluster membership, leading to shard conflicts. Questions: 1. Is this a known issue in chart 1.8.0? 2. Was this fixed in versions 1.8.1, 1.8.2, or 1.8.3? 3. What's the recommended fix - should we remove these env vars, or set TEMPORAL_BROADCAST_ADDRESS to use the Pod IP? We're currently blocked on upgrading. Any guidance would be appreciated!
k
Thank you for the detailed description of your issue. Here’s what I can confirm based on the available knowledge sources: ### 1. Is this a known issue in chart 1.8.0? There is no explicit mention in the official Airbyte documentation or release notes that the introduction of
BIND_ON_IP=0.0.0.0
and
TEMPORAL_BROADCAST_ADDRESS=0.0.0.0
in the Temporal deployment for Helm chart 1.8.0 is a known issue causing shard ownership conflicts. However, there are related reports of networking and binding issues with Temporal in dual-stack or multi-replica environments, particularly around how Temporal pods identify themselves in the cluster. For example, users have reported that incorrect broadcast or bind addresses can cause connectivity or cluster membership issues, especially in Kubernetes environments with multiple replicas or dual-stack networking. Setting the broadcast address to a non-unique value (like
0.0.0.0
) for all pods can indeed cause problems with Temporal's internal cluster membership and shard ownership logic, as you described. This aligns with your diagnosis, but the knowledge sources do not document this as a specifically acknowledged bug in 1.8.0 [[Github Issue 50948](https://github.com/airbytehq/airbyte/issues/50948)]. ### 2. Was this fixed in versions 1.8.1, 1.8.2, or 1.8.3? The release notes for 1.8.1, 1.8.2, and 1.8.3 do not mention any fixes related to Temporal environment variables, broadcast address handling, or shard ownership conflicts. The patch releases focus on other issues, such as data plane name constraints, OIDC scopes, license validation, and UI/OAuth bugs [[Airbyte 1.8 Patch Releases](https://docs.airbyte.com/release_notes/v-1.8#patch-releases)]. Therefore, based on the available documentation, this specific issue does not appear to have been addressed in those versions. ### 3. What’s the recommended fix? While there is no official fix documented in the release notes or upgrade guides, there is strong evidence from user reports that setting
TEMPORAL_BROADCAST_ADDRESS
to a unique value per pod (such as the pod’s IP address) is necessary for correct Temporal clustering in Kubernetes. In a related issue, users resolved similar problems by setting the broadcast address to the pod IP using Kubernetes downward API, for example:
Copy code
yaml extraEnv:   - name: TEMPORAL_BROADCAST_ADDRESS     valueFrom:       fieldRef:         fieldPath: status.podIP
This ensures each Temporal pod advertises a unique address, preventing cluster membership conflicts and shard ownership thrashing [[Github Issue 50948](https://github.com/airbytehq/airbyte/issues/50948)]. Recommendation: - Remove or override the default
TEMPORAL_BROADCAST_ADDRESS=0.0.0.0
in your Helm values. - Set
TEMPORAL_BROADCAST_ADDRESS
to the pod IP as shown above. - Ensure that
BIND_ON_IP
is set appropriately (often
0.0.0.0
is fine for binding, but the broadcast address must be unique). ### Summary - This is not documented as a known issue or fixed in 1.8.x patch releases. - Setting
TEMPORAL_BROADCAST_ADDRESS
to the pod IP is the recommended workaround, based on user experience and Temporal best practices. - You may need to customize your Helm values to achieve this. If you need help with the exact Helm values configuration, let me know your chart version and I can provide a sample snippet. Let me know if you have further questions!
b
@Carmela Beiro hey , we are facing same issue .. were you able to fix the issue ? if so what did you do ?
i set temporal helm envvars to [] .. and problem seems gone
y
hi @badri, where did you set this? Under
Copy code
temporal:
  envVars: []
?