question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ArgumentException: A lease ID must be specified when changing a lease

See original GitHub issue

I see this error pop up periodically during investigations. I have not investigated the impact of this error, but it should be fixed if for no reason except to remove noise from logs.

System.ArgumentException: A lease ID must be specified when changing a lease.
Parameter name: accessCondition
at Microsoft.WindowsAzure.Storage.Blob.CloudBlob.ChangeLeaseImpl(BlobAttributes attributes, String proposedLeaseId, AccessCondition accessCondition, BlobRequestOptions options)
at Microsoft.WindowsAzure.Storage.Blob.CloudBlob.ChangeLeaseAsync(String proposedLeaseId, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
at Microsoft.WindowsAzure.Storage.Blob.CloudBlob.ChangeLeaseAsync(String proposedLeaseId, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
at Microsoft.WindowsAzure.Storage.Blob.CloudBlob.ChangeLeaseAsync(String proposedLeaseId, AccessCondition accessCondition)
at DurableTask.AzureStorage.Partitioning.BlobLeaseManager.AcquireAsync(BlobLease lease, String owner) in C:\source\durabletask\src\DurableTask.AzureStorage\Partitioning\BlobLeaseManager.cs:line 225
at DurableTask.AzureStorage.Partitioning.PartitionManager`1.AcquireLeaseAsync(T lease) in C:\source\durabletask\src\DurableTask.AzureStorage\Partitioning\PartitionManager.cs:line 490

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
cgillumcommented, Mar 29, 2022

@amdeel do you have any ideas about this error message? I see it shows up in the v1.10.1 package version as well.

Error in intent lease acquisition: System.ArgumentException: A lease ID must be specified when changing a lease. (Parameter 'accessCondition')
   at Microsoft.WindowsAzure.Storage.Blob.CloudBlob.ChangeLeaseImpl(BlobAttributes attributes, String proposedLeaseId, AccessCondition accessCondition, BlobRequestOptions options)
   at Microsoft.WindowsAzure.Storage.Blob.CloudBlob.ChangeLeaseAsync(String proposedLeaseId, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)
   at DurableTask.AzureStorage.Storage.Blob.<>c__DisplayClass20_0.<ChangeLeaseAsync>b__0(OperationContext context, CancellationToken cancellationToken) in /_/src/DurableTask.AzureStorage/Storage/Blob.cs:line 121
   at DurableTask.AzureStorage.TimeoutHandler.ExecuteWithTimeout[T](String operationName, String account, AzureStorageOrchestrationServiceSettings settings, Func`3 operation, AzureStorageOrchestrationServiceStats stats, String clientRequestId) in /_/src/DurableTask.AzureStorage/TimeoutHandler.cs:line 60
   at DurableTask.AzureStorage.Storage.AzureStorageClient.MakeStorageRequest[T](Func`3 storageRequest, String accountName, String operationName, String clientRequestId)
   at DurableTask.AzureStorage.Storage.Blob.ChangeLeaseAsync(String proposedLeaseId, String currentLeaseId) in /_/src/DurableTask.AzureStorage/Storage/Blob.cs:line 120
   at DurableTask.AzureStorage.Partitioning.BlobLeaseManager.AcquireAsync(BlobLease lease, String owner) in /_/src/DurableTask.AzureStorage/Partitioning/BlobLeaseManager.cs:line 169
   at DurableTask.AzureStorage.Partitioning.LeaseCollectionBalancer`1.AcquireLeaseAsync(T lease) in /_/src/DurableTask.AzureStorage/Partitioning/LeaseCollectionBalancer.cs:line 540
DurableFunctionsEvents
| where TIMESTAMP > ago(3d)
| where ProviderName == "DurableTask-AzureStorage"
| where Details has "A lease ID must be specified when changing a lease."
| where ExtensionVersion == "1.10.1"
| project TIMESTAMP, EventStampName, RoleInstance, Pid, Tid, Level, TaskName, PartitionId, EventType, TaskEventId, Age, RuntimeStatus, NewEvents, EventCount, DequeueCount, Details, LatencyMs, TaskHub, Account, ExtensionVersion 
| take 10
1reaction
akratikambojcommented, Jul 1, 2021

We are also receiving this error periodically. This is creating unnecessary noise in the error logs if not impacting the application. Is there any fix to it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lease Blob (REST API) - Azure Storage
Changes the lease ID of an active lease. A change must include the current lease ID in x-ms-lease-id , and a new lease...
Read more >
Error: 409 LeaseIdMismatchWithLeaseOperation (Listener)
The lease ID specified did not match the lease ID for the blob. Status: 409 (The lease ID specified did not match the...
Read more >
Class BlobLeaseClient | Azure SDK for Net
An optional lease ID. If no lease ID is provided, a random lease ID will be created. ... A change must include the...
Read more >
Don't be Fooled, Blob Lease Management is Tricky Business
Once a lease has expired, the lease ID is maintained by the Blob service until the blob is modified or leased again. A...
Read more >
HOW TO ACQUIRE AND BREAK LEASE IN AZURE BLOB
HOW TO ACQUIRE AND BREAK LEASE IN AZURE BLOB. asar cloud Chef. asar cloud Chef. 5.36K subscribers. Subscribe. <__slot-el>. Subscribed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found