Opened 17 years ago
Last modified 17 years ago
#292 reopened defect
Database installer not always dropping previous database
| Reported by: | bweaver | Owned by: | bweaver |
|---|---|---|---|
| Priority: | critical | Milestone: | Beta 3 |
| Component: | Installers | Version: | 1.5.988 |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
As it stands, if a user is connected to an existing gringlobal database and the database installer is ran and it fails during creation of the new database, it could leave the SQL Server instance in a bad state. Meaning, the installer renames the files related to the database which was not successfully dropped in the first place. This causes SQL Server's internal system tables to point to non-existent files, leaving the user unable to fix it without really knowing SQL Server well and jumping through a bunch of hoops.
The database drop must take place to insure everything works properly, so the installer has to notice when a drop fails and auto-fix the situation -- either prompt the user to disconnect, forcefully disconnect, etc. However, if it tries to drop a non-existant database it should ignore that error and continue to create a new one anyway.
Change History (4)
comment:1 by , 17 years ago
| Status: | new → addressed |
|---|
comment:2 by , 17 years ago
| Status: | addressed → released |
|---|
comment:3 by , 17 years ago
| Resolution: | → invalid |
|---|---|
| Status: | released → closed |
comment:4 by , 17 years ago
| Resolution: | invalid |
|---|---|
| Status: | closed → reopened |
| Version: | 1.5.915 → 1.5.988 |
This same change needs to be made for the other DB instances.

(In [933]) Fixes #292 - db installer now successfully drops databases even if users are connected (tested in sql server only). When the database drop failed, several other problems were occurring as well (table 'accession' already exists, could not locate gringlobal database in system schema, etc). Hopefully this fixes the root cause of all these problems.
Fixes #293 - added code to Updater to inspect IIS installed component list and prompt user to install missing components if needed. Also, after IIS / IIS Component installs occur, added code to verify they installed successfully so if user canceled out of those installs, Updater does not continue with GG installations
Refs #289 - added new forms to admin tool for search engine info. Read only at this point, and only work on a local connection.
Fixes #296 - search engine realtime updates are now queued for background processing by the search engine itself, instead of relying on asynchronous calls from the search filter from the middle tier. This makes the search engine both more reliable and more deterministic in its behavior as the caller does not dictate how the search engine actually performs updates.
Search engine now uses multiple config files -- one for most configuration (gringlobal.search.config, just like before) and a separate file for each database engine we will support. This allows the db-engine specific sql to all be stored in one place separate from db-engine agnostic settings, as well as making it easier to fix problems specific to a db engine.
Fixed some problems with the new yet-unreleased table mappings forms in the admin tool. Field mappings weren't saving foreign key id properly and made navigation between fields a little easier. Also added base methods to frmBase form for MarkClean(), IsDirty(), and MarkDirty() to make it very easy to handle prompting user to save if changes have been made on the form. Can be used by anything deriving from frmBase.
Updater now allows the user to click on the cached file themselves to view them in Windows Explorer. This will make it considerably easier to get to install_log files for troubleshooting installs.