September

09-16 Weekly report

investigated the bug UDevC00160217 
1. Did testing and compared system director of Herorah and 3.2.0.1720 and 2.3.0.4580,found the issue only exist in Hedorah.
2. Analyzed the system director's code "\unity\m34\IndexMonitor\serverstatus.cpp and tabbedinfo.cpp" about details of starting the server.
3. Thought of 3 ideas to solve this problem and wait suggestion from avid.


09-15

One thing I confused: CTabbedInfo::SetStateAll never used in the project!

\m34\IndexMonitor\tabbedinfo.cpp

void CTabbedInfo::SetStateAll()
{
  CWnd *p;
  ...................
  p = GetDlgItem( IDC_STOPSERVER  );
  if ( p )
  {
    bool enable;
    enable = CanStopServer();
    p->EnableWindow(enable);
  }
  p = GetDlgItem( IDC_STARTSERVER  );
  if ( p )
  {
    bool enable;
    enable = CanStartServer();
    p->EnableWindow(enable);
  }
}


Some Clue:

m34\IndexMonitor\serverstatus.cpp

1.1

void CServerStatus::OnTimer(UINT_PTR nIDEvent) 
{
     // Update/disable buttons
    SetStateAll();
    UpdateStatus();
    UpdateUserInterface();
    CPropertyPage::OnTimer(nIDEvent);
}

1.2

void CServerStatus::SetStateAll()
{
        Boolean32 serverOn, interactive_mode;
        FStatus status;
        bool enable = false;
    
        status = FSADM_IsServerRunning(&serverOn, &interactive_mode);
        if (status == FSTATUS_SUCCESS && interactive_mode == FALSE) 
        {
           enable = (serverOn == TRUE);
        }

        SetControlState(IDC_CONFIGURE_FS, !enable);
        SetControlState(IDC_RESET_PASSWORD, enable);
        SetControlState(IDC_STOPSERVER, enable);
        SetControlState(IDC_STARTSERVER, !enable);
        // for now
        SetControlState(IDC_FAILOVER_CONFIG, true);
}

2.3 for comparation:

VOID CServerStatus::SetStateAll()
{
Boolean32  interactive_mode;
Boolean32  serverOn;
FStatus    fstatus;


CButton *start = (CButton *) GetDlgItem(IDC_STARTSERVER);
CButton *stop  = (CButton *) GetDlgItem(IDC_STOPSERVER);
CButton *toggle  = (CButton *) GetDlgItem(IDC_TOGGLE_DISPLAY);
CButton *reset  = (CButton *) GetDlgItem(IDC_EVENT_RESET);

        CWaitCursor wcur;

fstatus = FSADM_IsServerRunning(&serverOn, &interactive_mode);
if (fstatus == FSTATUS_SUCCESS && interactive_mode == FALSE) {
// Not running interactive so enable/disable the 
// start and stop buttons based on server state
        if ( serverOn )
        {
            SafeDisableWindow( start );
            stop->EnableWindow(TRUE);
        }
        else
        {
            start->EnableWindow(TRUE);
            SafeDisableWindow( stop );
        }
}


if (serverOn) {
toggle->EnableWindow(TRUE);
reset->EnableWindow(TRUE);
}
        else
        {
            SafeDisableWindow( toggle );
            SafeDisableWindow( reset );
        }
}


09-14

1.1 \m34\IndexMonitor\IndexMonitor.rc:

PUSHBUTTON      "Start System Director",IDC_STARTSERVER,25,230,90,14

1.2 \m34\IndexMonitor\serverstatus.cpp

ON_BN_CLICKED(IDC_STARTSERVER, OnStartserver)

1.3

void CServerStatus::OnStartserver() 
{
CTabbedInfo *p;
p = (CTabbedInfo*) AfxGetMainWnd();
p->StartServer();
// Update/disable buttons
SetStateAll();
}

void CTabbedInfo::StartServer()
{
StartServerWorker *p = new StartServerWorker( m_session );


StartWorkerThread(p, IDS_STARTUP_CAPTION, IDS_STARTUP_MSG );
}

1.4

void CTabbedInfo::StartServer()
{
StartServerWorker *p = new StartServerWorker( m_session );


StartWorkerThread(p, IDS_STARTUP_CAPTION, IDS_STARTUP_MSG );
}

void CServerStatus::SetStateAll()
{
    Boolean32 serverOn, interactive_mode;
FStatus status;
bool enable = false;
    
status = FSADM_IsServerRunning(&serverOn, &interactive_mode);
if (status == FSTATUS_SUCCESS && interactive_mode == FALSE) 
{
enable = (serverOn == TRUE);
}


    SetControlState(IDC_CONFIGURE_FS, !enable);
    SetControlState(IDC_RESET_PASSWORD, enable);
    SetControlState(IDC_STOPSERVER, enable);
    SetControlState(IDC_STARTSERVER, !enable);
    // for now
    SetControlState(IDC_FAILOVER_CONFIG, true);
}



15:47

此bug根本跟安装完自动运行无关。只是自动运行SD后,start system director自动启动成功与否的问题


e:\document\code\dev.ws.dxdkong1.ISIS_MAININT\unity\m34\SetMsiProperties\SetMsiProperties.cpp

// Open an msi installer database and set some properties.
// Flags command line param specifies which properties.
int main( int argc, char *argv[] )

09-13

UDevC00160217  Common Code - ISIS5000 - Need manually start system director


e:\document\code\dev.ws.dxdkong1.ISIS_MAININT\unity\m34\common\WinFireUtils.cpp

protoString = (protocol == NetFwPublicTypeLib::NET_FW_IP_PROTOCOL_TCP) ? L"-TCP" : L"-UDP";

wcscpy( nameString, L"AvidUnityISIS" );
wcscat( nameString, protoString );



0907

UDevC00159617:   Common Code - ISIS7000 - Should order the elements after you do bind in storage managers
UDevC00159614:   Common Code - ISIS7000 - Enhancement-Should refresh  elements status automatically in storage managers when you do bind
UDevC00161601:   Common Code - Auto: Can't retrieve IP addresses of storage elements.

UDevC00161601

outIPAddresses in 3.5

e:\document\code\dev.ws.dxdkong1.ISIS_MAININT\unity\m34\AdminServer2\AdminServerAPI.gsoap


class AdminServer__StorageElementDetails : public AdminServer__StorageElementSummary
{
    AdminServer__StorageElementIPs    outIPAddresses;       // use element manager ip address list
};


class AdminServer__StorageElementManagerSummary
{
    // MicroServerAdvertiseInfo
    int                     ioType;                     // state
    int                     outBladeType;               // uServerType    
    unsigned long           outLastStatusReport;        // lastUpdate
    std::string             outLastStatusReportDate;    // derived from lastUpdate
    std::string             outHostName;                // name or v3 isb_name
    std::string             outID;                      // id
    int                     outPicoSlotNum;             // picoSlotNum (classic)
    ....................................
    
    
    AdminServer__StorageElementIPs    outIPAddresses;   
};


outIPAddresses in 2.3

class AdminServer__StorageElementDetails
{
std::string outName;
std::string outISBName;
std::string outID;
std::string outPicoCrateSerial;
std::string outDomainID;
int outPicoSlotNum;
.....................

AdminServer__StorageElementIPs  outIPAddresses;


unsigned long outSystemUpTime;
unsigned long outLastStatusReport;
long ioOfflineTimeout;
int outUpgradeStatus;
int outTempSensor;
int outTempStatus;
unsigned long longoutAvailableByteCount;
std::string outStorageGroupID;
int outPicoSlotAndCrateValid;
};



IMPORTANT CLUE

AdminServer.cpp

class AdminServer__StorageElementSummary
{
std::string outName;
std::string outISBName;
std::string outID;
std::string outPicoCrateSerial;
std::string outDomainID;
int outPicoSlotNum;
.......................


AdminServer__StorageElementIPs  outIPAddresses;
};

int AdminServer::ProcessMgmtRequest(AgentXmlRequestArgs& reqArgs)
{
int rc = MGMT_RESP_BUF;
std::string cmd(reqArgs.args[URL_KEY_DEFAULT]);


// these commands do not require a valid session
if(cmd.compare(MGMT_REQ_GETSYSDIRINFO) == 0)
{
return AdminServerXml::GetSystemDirectorInfo(reqArgs);
} else if(cmd.compare(MGMT_REQ_GETFLOCKERROROVERVIEW) == 0)
{
return AdminServerXml::GenerateFlockErrorOverview(reqArgs);
}else if(cmd.compare(MGMT_REQ_GETFLOCKINFO) == 0)
{
return AdminServerXml::GenerateFlockInfo(reqArgs);
} /*else
{
// first check to see if caller has a valid session.  this is done
// a little differently than for HTML handling.  Derived agents 
// MUST validate sessions in their handlers here as the AbstractAgent
// will not check for a valid session and will blindly service 
// requests
FStatus fs = ValidateMgmtRequest(AUTH_TOKEN, reqArgs);
if(fs != FSTATUS_SUCCESS)
{
return AbstractAgentXml::GenerateStatus(reqArgs, fs);
}
}*/ //DANNY


CMgmtRequest.py

 self.functions['get_storage_elements'] = '/mgmt?r=getValidStorageElements'


0902-report:

1.Found and investigate a bug that there is error when do write testing in two ISBs offline case. It is secondary write probelm. Server reject write request with ERROR 44. But the bug seems have been fixed in the latest build.

2. Found a bug that after remove workspace in 2 ISBs offline case. There is  "delete pending" message after removing. And the 2 ISBs will never recover,showing "rectifying files-no connection". I can only recover it by installing 2.3 version and creating new file system and upgrade. This bug is not very easy to reoccur by hand. I am investigating into it.



0829

1. Is this a bug?

delete workspace when 2 offline. (pending delete)

then rectifying files after 30 minutes....


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供的源码资源涵盖了Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 适合毕业设计、课程设计作业。这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。 所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答!
提供的源码资源涵盖了小程序应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 适合毕业设计、课程设计作业。这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。 所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答!
提供的源码资源涵盖了Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 适合毕业设计、课程设计作业。这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。 所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值