While looking at newer versions of packages in the repro for #617, I found that when using the latest Microsoft.Azure.CosmosDB.BulkExecutor package (1.1.1) and the latest Microsoft.Azure.DocumentDB package (2.1.3), the same repro steps throws a MissingMethodException:
Message: System.MissingMethodException : Method not found: 'System.Threading.Tasks.Task`1
Microsoft.Azure.Documents.Routing.PartitionKeyRangeCache.TryLookupAsync(System.String, Microsoft.Azure.Documents.Routing.CollectionRoutingMap, System.Threading.CancellationToken)'.
Result StackTrace:
at Microsoft.Azure.CosmosDB.BulkExecutor.BulkExecutor.<InitializeAsync>d__17.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Azure.CosmosDB.BulkExecutor.BulkExecutor.InitializeAsync()
at Microsoft.Azure.CosmosDB.BulkExecutor.Graph.GraphBulkExecutor.<InitializeAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at GremlinExportTests.<Foo1>d__7.MoveNext() in D:\git\VSCloudKernel\src\DumpLanguageServer.Tests\GremlinExportTests.cs:line 80
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Result Message: System.MissingMethodException : Method not found: 'System.Threading.Tasks.Task`1<Microsoft.Azure.Documents.Routing.CollectionRoutingMap> Microsoft.Azure.Documents.Routing.PartitionKeyRangeCache.TryLookupAsync(System.String, Microsoft.Azure.Documents.Routing.CollectionRoutingMap, System.Threading.CancellationToken)'.
This is not the first time that newer Azure SDK packages have broken other Azure SDK packages. #577 is another one that happened recently. Are these packages consuming _internals_ of each other, or are these packages actually breaking public API in _minor releases_ as it appears to be?
Our apologies. The bulk executor with a fix for this issue will be released by tomorrow Thu 18th.
The root cause here is bulk executor library is a preview functionality built on a separate system, but it is consuming internal API from the Cosmos SDK. Our plan is to pull this library into SDK in the near future to clean this up.
Getting the same issue on the .net core version 2.0.0-preview2 (only version that supports .net core so must use preview version)
I'm getting the same issue on the .net core version. I'm using the 2.0.0-preview2 (compatible with the documentdb core), I was developing a POC to see if is it possible to replace or mongo driver (used for bulks) by this (2.0.0-preview2) BulkExecutor. I think it's better wait for the stable version
Same issue!
CosmosDb.BulkExecutor (2.1.0-preview2) tried with
DocumentDb.Core (2.1.3) and DocumentDb.Core (2.2.1) and all attempts have failed.
at Microsoft.Azure.CosmosDB.BulkExecutor.BulkExecutor.InitializeAsync()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Azure.CosmosDB.BulkExecutor.BulkExecutor.InitializeAsync()
@AArnott @kirillg Any news on this issue?
Any news on that? Have the same issues with Azure Functions 2.0 (.net core 2.1)
Microsoft.Azure.CosmosDB.BulkExecutor: Method not found: 'System.Threading.Tasks.Task`1
It may be helpful if you all would "thumbs up" the issue description so the feature team has an idea of how broadly impactful this is.
same issue in 2.3.0-preview2
Same here, packages
Microsoft.Azure.CosmosDB.BulkExecutor -Version 2.3.0-preview2
Install-Package Microsoft.Azure.DocumentDB.Core -Version 2.3.0
Give me this exception
Still repros. Our projects are a few minor versions behind in many of the Azure storage packages and we can't upgrade them because of this one. Could you please provide an update?
same error with:
works with:
error persists with:
I can confirm that only this combination works for me:
Most helpful comment
Same here, packages
Microsoft.Azure.CosmosDB.BulkExecutor -Version 2.3.0-preview2
Install-Package Microsoft.Azure.DocumentDB.Core -Version 2.3.0
Give me this exception