feat: doesn't beaks on big batches to write #1483
Labels
enhancement
New feature or request
good first issue
Good for newcomers
topic
issue for topic service
Now the topic.Write will be failed if try to send more messages, than internal buffer has limit.
It isn't comfortable and it isn't purpose of the queue limit.
Better choise:
Acquire max limit and member overdraft
ydb-go-sdk/internal/topic/topicwriterinternal/writer_reconnector.go
Line 224 in 1c9e3b5
When release semaphore - first debt override.
2.1. Here (if weight more then zero)
ydb-go-sdk/internal/topic/topicwriterinternal/writer_reconnector.go
Line 241 in 1c9e3b5
2.2. Here
ydb-go-sdk/internal/topic/topicwriterinternal/writer_reconnector.go
Line 537 in 1c9e3b5
It will allow send big batches without errors and will protect from memory overflow on network/server problems.
The text was updated successfully, but these errors were encountered: