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.

MarkMappingOffline hangs until timeout

See original GitHub issue

In version 1.3.3 MarkMappingOffline just hangs until timeout exception occurs. When downgrading to 1.3.2 it works as expected.

Here is a stacktrace dump: at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.StoreOperation.Do() at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.BaseShardMapper.Update[TMapping,TUpdate,TStatus](TMapping currentMapping, TUpdate update, Func4 constructMapping, Func2 statusAsInt, Func2 intAsStatus, Guid lockOwnerId) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ListShardMapper1.Update(PointMapping1 currentMapping, PointMappingUpdate update, Guid lockOwnerId) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.BaseShardMapper.SetStatus[TMapping,TUpdate,TStatus](TMapping mapping, TStatus status, Func2 getStatus, Func2 createUpdate, Func4 runUpdate, Guid lockOwnerId) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ListShardMapper1.MarkMappingOffline(PointMapping1 mapping, Guid lockOwnerId) at Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ListShardMap1.MarkMappingOffline(PointMapping1 mapping)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
scottpantallcommented, Dec 23, 2019

I came across this issue using v2.3.0. I was able to use this method by including the MappingOptions parameter. mapping = ShardMap.MarkMappingOffline(mapping, MappingOptions.None);.

0reactions
devscalematcommented, Oct 17, 2019

Is there any update/advice for this issue? It tried to upgrade/downgrade client version. I have almost full elastic pool right now (97 dbs) and it would be nice to remove not needed ones since some tenants are no longer using the app. I’m getting timeouts every time i try to set mapping to offline

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command prompt hangs until keypress? - windows
I found this answer, and it works for me on Windows 10 20H2. The trick seems to be, powercfg -change -standby-timeout-ac 0.
Read more >
Powershell Start Process, Wait with Timeout, Kill and Get ...
I want to repeatedly execute a program in a loop. Sometimes, the program crashes, so I want to kill it so the next...
Read more >
SQL Database Azure | PDF | Microsoft Sql Server
Learn how to use SQL Database with our quickstarts, tutorials, ... Reduce the number of incoming requests to the database to prevent timeout...
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