AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.01.2015, 01:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Synchronization failure during multiple AOS start, impacts the CIL update
Источник: http://blogs.msdn.com/b/axsupport/ar...il-update.aspx
==============

Issue description:

Synchronization failure during multiple AOS start, impacts the CIL bits update

The problem is that, since multiple AOSs are trying to do the dbSync operation one or more of them enter into

a deadlock so no other operations on those AOSs could continue, not even client connections.

If dbSync does not complete, deployment of assemblies operation is never executed.

This occurs In \Classes\Application\new method:

...............

    if (session.clientKind() == ClientType::Server && session.sessionId() == 1)

    {

        this.syncApplTables();  //needed to sync neccessary application tables

        // Synchronize the X++ IL assembly

        SysCompileIL::synchronizeAssembly();

....................

 

\Classes\Application\syncApplTables

\Classes\Application\getApplTables

In Line 202, addTable(tableNum(SecurityRoleAllTasksView)); Causes a failure in SyncApplTables and skips the Assembly synchronization.

It makes only an Error entry in AOS machine Eventvwr, but continue AOS boot without the CIL sync :

Error message entry looks like:

" 

Object Server 09: Dialog issued for client-less session 1: Cannot execute a data Definition language command on @SYS329072 (SecurityRoleAllTasksView).

The view cannot be created. The underlying table may not exist.

"

Solution suggestion:

Issue was tracked under bug number DAXSE #3212012 and application Hotfix was released on KB #3030101, though only for the AX 2012 RTM version.

For the AX 2012 R2 and AX 2012 R3, the following code changes could be done on the \Classes\Application\syncApplTables method

Before:

void syncApplTables(boolean _force = false)

{

List applTables = this.getApplTables();

ListEnumerator enumerator = applTables.getEnumerator();

ConfigurationKeySet keySet = new ConfigurationKeySet();

void syncTable(TableId tableId)

{

this.dbSynchronize(tableId,false, true, false);

}

………….

 

After:

void syncApplTables(boolean _force = false)

{

#OCCRetryCount

List applTables = this.getApplTables();

ListEnumerator enumerator = applTables.getEnumerator();

ConfigurationKeySet keySet = new ConfigurationKeySet();

DictTable dtable;

void syncTable(TableId tableId)

{

dtable =new DictTable(TableId);

if(dtable && dtable.isView())

{

try

{

this.dbSynchronize(tableId, false, true, false);

}

catch(Exception::Deadlock)

{

retry;

}

catch (Exception::Error)

{

if (xSession::currentRetryCount() >= #RetryNum)

{

throw Exception::Error;

}

else

{

retry;

}

}

}

else

{

this.dbSynchronize(tableId, false, true, false);

}

………………….




Источник: http://blogs.msdn.com/b/axsupport/ar...il-update.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 15 Blog bot Dynamics CRM: Blogs 1 10.02.2016 10:26
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 17 Blog bot Dynamics CRM: Blogs 0 10.05.2014 06:30
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 16 Blog bot Dynamics CRM: Blogs 0 23.01.2014 03:15
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 14 Blog bot Dynamics CRM: Blogs 0 12.07.2013 07:13
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 13 Blog bot Dynamics CRM: Blogs 0 27.03.2013 22:12
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра
Комбинированный вид Комбинированный вид

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 17:56.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.