Skip to content

[SPARK-55643][INFRA] Add connection timeout to JIRA client to prevent hanging and enable retries#54432

Closed
dongjoon-hyun wants to merge 2 commits intoapache:masterfrom
dongjoon-hyun:SPARK-55643
Closed

[SPARK-55643][INFRA] Add connection timeout to JIRA client to prevent hanging and enable retries#54432
dongjoon-hyun wants to merge 2 commits intoapache:masterfrom
dongjoon-hyun:SPARK-55643

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Feb 23, 2026

What changes were proposed in this pull request?

This PR aims to add a generic connection and read timeout parameter timeout=(3.05, 30) to the jira.client.JIRA() initializations in the dev/merge_spark_pr.py script.

Why are the changes needed?

By default, the requests library (used by the jira python package) can hang indefinitely when attempting to establish a connection if the server is unresponsive. Setting a short connection timeout of 3.05 seconds (slightly larger than a standard 3-second TCP packet retransmission window) ensures that the client will quickly fail the connection attempt and properly trigger its internal retry logic, rather than stalling the entire script. The 30-second read timeout allows sufficient time for normal API responses once the connection is successfully established.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manual tests.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Gemini 3.1 Pro (High) on Antigravity

@dongjoon-hyun
Copy link
Member Author

Could you review this INFRA PR, @aokolnychyi ?

@dongjoon-hyun
Copy link
Member Author

Thank you, @yaooqinn !

@dongjoon-hyun
Copy link
Member Author

Merged to master.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-55643 branch February 24, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants