New bug in CreateEnterpriseSearchServiceApp

Apr 12, 2011 at 6:51 AM

Hi Brian,

I have picked up a bug with the latest version of this function. Within the code (starting line 1962), you have introduced the logic:

If (($appConfig.DatabaseServer -ne "") -and ($appConfig.DatabaseServer -ne $null))
{
  $DBServer = $appConfig.DatabaseServer
}
Else
{
  $DBServer = $xmlinput.Configuration.Farm.Database.DBServer
}

The problem is that this piece of code is used too early, in fact it is used before $appConfig is even assigned (at line 1989).  Therefore the Database Server specified in the 'EnterpriseSearchServiceApplication' will be ignored.

In my environment I had separated all of the search dbs to a separate SQL instance.

Regards,

Alan Coulter.

Coordinator
May 8, 2011 at 1:46 AM

You're correct, and this was fixed in changeset 72193.

Cheers
Brian