Skip to content

Commit 90b2d3c

Browse files
aditishree1Aditishree .
and
Aditishree .
authored
[cosmos] fix bulk split timeout (Azure#34314)
### Packages impacted by this PR @azure/cosmos ### Issues associated with this PR ### Describe the problem that is addressed by this PR This PR fixes split/merge error handling in bulk ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary) --------- Co-authored-by: Aditishree . <[email protected]>
1 parent 00827f2 commit 90b2d3c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sdk/cosmosdb/cosmos/src/bulk/Limiter.ts

-3
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ export class LimiterQueue {
148148
this.terminated = true;
149149
this.terminatedValue = customValue;
150150
const operationsList: ItemOperation[] = [];
151-
if (this.tasks.isEmpty()) {
152-
return;
153-
}
154151
while (!this.tasks.isEmpty()) {
155152
const queueItem = this.tasks.shift();
156153
if (!queueItem) break;

0 commit comments

Comments
 (0)