Skip to content

improve rolling update code - #913

Open
pjfanning wants to merge 1 commit into
apache:mainfrom
pjfanning:rolling
Open

improve rolling update code#913
pjfanning wants to merge 1 commit into
apache:mainfrom
pjfanning:rolling

Conversation

@pjfanning

Copy link
Copy Markdown
Member

L8 — Double toStrict: Removed the redundant responseEntity.toStrict(settings.bodyReadTimeout) call in getReplicaSet's error path (line 392). The entity was already made strict at line 382.

L9 — Connection leak on timeout: Replaced Future.firstCompletedOf in makeRequest with a Promise-based approach (same pattern as the lease fix). When timeout fires, response.foreach(_.discardEntityBytes()) ensures the response entity is consumed if one arrives later.

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.

1 participant