Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Delete Website (Area) fails after 1 minute

Delete Website (Area) fails after 1 minute

Mikkel Hammer
Mikkel Hammer
Reply

Hi DW,

Im trying to delete area on one of our solutions which runs on a 9.17.5 version, but it keeps failing after 1 minute.

I digged a bit around and i think i've found the underlying issue in the source code.

It starts here in "Delete.aspx.vb" where "MoveToBin" and "DeleteArea" are called.
Also it would be great if you could have a option to skip MoveToBin in the Delete option box.

In both methods, there is a use of "new TransactionsScope()", which has a default timeout of 60 seconds.
Both pictures are taken from the "AreaService.cs" file.

There's an old blog here from Microsoft which recommends not using the default constructor - and gives a helper method to prevent the default timeout both for C# and VB.NET.

1.Digging a bit further into the "DeleteArea" method, it calls the "DeleteAllAreaPages" method - where the default TransactionScope is used again.
2. There's also no overload for timeout on any of the Database.CreateDataReader methods,
which means it just defaults to 30 seconds on default setups where the globalsettings timeout hasn't been changed.



It can see you're using a timeout of 45 minutes in CopyArea, it would be awesome if it could be used here aswell



Searching for the use of the default constructor, there's multiple where the issue also exists



Hoping it helps your error search and fix of the issue :)

Looking forward to your response.

Best regards,
Mikkel Hammer


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

The deadlock usually occurs when an impact to content performs in separate admins in the same time. I've tried to use two admins of Swift solution in different version of browsers. I was deleting site has more than 1000 pages at first place and saving content or deleting Page\Paragraph cache at second one but was not able to repoduce the issue - proper timeout and no hang. What's kind of concurency and any customization, conditions you used in your case?

BR, Oleg QA   

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

So, the opinion above seems to have sense per preliminary look by DW devs. New task #20086 has been created to fix it. Thanks.

BR, Oleg QA 

 
Mikkel Hammer
Mikkel Hammer
Reply

Hi Oleg,

Thanks for looking into it, and sorry for not getting back to you with a way for you to recreate it.
Is it still needed so the fix can be verified, or do you have a way to "fake/force" trigger it?

And give my regards to the devs, i guess i owe them one ;)

Best regards,
Mikkel Hammer

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Mikkel

The task #20086 now fixed and released in Dynamicweb version 9.17.8

You can get this version from the download section https://doc.dynamicweb.dk/downloads/dynamicweb-9

Kind Regards
Dynamicweb Care Support
Kristian Kirkholt

 

You must be logged in to post in the forum