#community-help

Resolving `circuit breaker is open` Error with Go in TS Cloud

TLDR Morgan was seeking help for a Go error message when upserting in TS cloud. Jason suggested increasing the client side timeout and left the circuit breaker timeout unchanged.

Powered by Struct AI
7
22mo
Solved
Join the chat
Nov 29, 2021 (22 months ago)
Morgan
Photo of md5-9af47d330848eae988a5f9cc03e413f1
Morgan
10:52 PM
Hi we got this error with GO when upserting a document to TS cloud. circuit breaker is open. can anyone give more context on that?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:55 PM
10:56
Jason
10:56 PM
Could you try increasing the client side timeout, to make sure the batch import call has sufficient time to complete
Morgan
Photo of md5-9af47d330848eae988a5f9cc03e413f1
Morgan
11:11 PM
Thanks Jason, that was very helpful. So the likely reason is the request sent to TS server was closed before it can respond, correct? that way, by increasing client side timeout, you mean ConnectionTimeout?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
11:12 PM
Yup, that's correct
Morgan
Photo of md5-9af47d330848eae988a5f9cc03e413f1
Morgan
11:13 PM
Great, thanks. Do you think I should also increase WithCircuitBreakerTimeout?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
11:33 PM
It looks like that might control the time between retries... Ideally we want the very first request to succeed and not timeout. So I'd leave circuit breaker timeout as is.