People throughout the world exchange enormous numbers of email messages. Due to the sheer volume of email messages sent and received by a typical person, it quickly becomes difficult for the person to identify email messages of interest. To help people identify email messages of interest, search functionality has been built into email client applications and email server applications. The search functionality finds email messages that contain text that conforms to queries entered by users of the email client applications. For example, the search functionality may find all email messages that contain the words “annual budget.”
To find email messages that contain text that conforms to queries, some email client applications generate search indexes and use the search indexes to identify email messages that contain the text. Search indexes can be implemented in many ways, including suffix trees, ordered trees, inverted indexes, citation indexes, ngram indexes, term document matrixes, and so on.
This disclosure is directed to dynamically restoring message object search indexes. As described herein, a high-availability server system includes at least a source server system and a target server system. Both the source server system and the target server system store copies of a mailbox database and a search index for the mailbox database. As changes are requested to the mailbox database, events are added to event lists maintained at the source node and the target node. When the data storage system at the target server system enters an error state, the source server system sends at least a set of data that target server system can use to generate a copy of the search index. The target server system may then resume applying events in the event list to search index. In this way, it may not be necessary to completely re-index the mailbox database at the target node.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended as an aid in determining the scope of the claimed subject matter.
As briefly described above, this disclosure is directed to dynamically restoring message object search indexes. This disclosure discusses the attached figures. It will be appreciated that the figures are provided for purposes of explanation only and do not represent a sole way of implementing the technologies of this disclosure.
Furthermore, messaging system 2 comprises a high-availability server system 6 that provides messaging services. As used throughout this disclosure, a “server system” is a set of one or more physical electronic computing devices that provide at least one network service. For example, a server system may be a set of one or more standalone server devices, blade server devices, mainframe computers, network data centers, intermediate network devices, personal computers, and/or other types of physical electronic computing devices configured to provide a network service.
A “high-availability server system,” such as high-availability server system 6, is a particular type of server system. A high-availability server system provides a high-availability network service and comprises at least an active server system and a standby server system. Both the active server system and the standby server system are capable of independently providing the high-availability network service. In general, the active server system provides the high-availability network service on behalf of the high-availability server system. Should the active server system enter an error state, the standby server systems becomes the new active server system and begins providing the high-availability network service on behalf of the high-availability server system with minimal disruption to the high-availability network service. A server system that provides a service is in an error state when the server system is unable to properly provide the service.
As illustrated in the example of
As illustrated in the example of
Source server system 8 or target server system 10 may be the active server system within high-availability server system 6. Moreover, in some instances, both source server system 8 and target server system 10 may be standby server systems within high-availability server system 6. In instances where source server system 8 is the active server system, target server system 10 may become the active server system when source server system 8 goes offline, and vice versa.
Source server system 8 comprises a data storage system 12 and target server system 10 comprises a data storage system 14. As used in this disclosure, a data storage system is a collection of at least one computer-readable data storage media. Example computer-readable data storage media include, but are not limited to, hard disk drives, tape drives, random access memory (RAM) units, flash memory units, electrically-erasable programmable read-only memory (EEPROM) units, floppy disks, optical discs, and other types of physical media capable of storing data.
Data storage system 12 comprises a mailbox database 16. As used in this disclosure, a mailbox database is a database that stores at least one mailbox. As used in this disclosure, a “mailbox” is a logical collection of messaging objects that is associated with a user. A “messaging object” is either a folder or a message object. A “folder” in a mailbox contains a subset of the messaging objects in the mailbox. A “message object” is a collection of properties of a message that provides information to a user. Message objects may come in a variety of forms. For example, the message objects in a mailbox may be email messages. In a second example, the message objects in a mailbox may be calendar messages. Other examples message objects include tasks, journal entries, contacts, and so on. Although not illustrated in the example of
In addition, data storage system 12 comprises a search index 18. Search index 18 is a data structure that comprises search index entries. Each of the search index entries in search index 18 maps a textual reference to a set of one or more message objects in mailbox database 16. For example, a search index entry in search index 18 may map the textual reference string “florist” to three different message objects in a first mailbox within mailbox database 16. In this example, the search index entry may be used to identify efficiently all message objects in a particular mailbox within mailbox database 16 that include the string “florist” in their subject lines. Use of search index 18 to identify message objects in mailbox database 16 containing a particular string may be considerably quicker than individually scanning through message objects in mailbox database 16 to identify message objects containing the particular string. Search index 18 is not part of mailbox database 16. Although not illustrated in the example of
Data storage system 12 also comprises an event list 20. Event list 20 is a data structure that stores events that represent changes to mailboxes in mailbox database 16. Events may contain data representing many types of changes to mailboxes. In a first example, an event may contain data representing an addition of an email message to a mailbox. In a second example, an event may contain data representing an edit by a user of a message object in a mailbox. In a third example, an event may contain data representing deletion of a message object from a mailbox. Although not illustrated in the example of
In addition to data storage system 12, source server system 8 comprises a client access server 22. Client access server 22 provides a mailbox access service that enables clients, such as client system 4, to access message objects stored in mailbox database 16. In instances where data storage system 12 stores additional mailbox databases, client access server 22 may provide access to the additional mailbox databases.
When source server system 8 is the active server system within high-availability server system 6, client access server 22 may provide the mailbox access service on behalf of high-availability server system 6. In other words, in some example implementations, when source server system 8 is the active server system, no client access server within high-availability server system 6 other than client access server 22 provides the mailbox access service.
Client access server 22 may update mailbox database 16 and add events to event list 20. For example, client system 4 may send to client access server 22 a request to delete a message object in a mailbox in mailbox database 16. In this example, client access server 22 deletes the message object from the mailbox and adds an event to event list 20 representing deletion of the message object from the mailbox.
In the example of
Mailboxes in mailbox database 16 may be in an event indexing mode or a crawl indexing mode. When a mailbox in mailbox database 16 is in crawl indexing mode, all message objects in the mailbox have not yet been indexed and search index 18 is being updated so that message objects in the mailbox are searchable using search index 18. When a mailbox in mailbox database 16 is in event indexing mode, all message objects in the mailbox have been previously indexed and search index 18 is updated only in response to events in event list 20. In this disclosure, mailbox in the event indexing mode may be referred to as event-mode mailboxes and mailboxes in the crawl indexing mode may be referred to as crawl-mode mailboxes.
Source server system 8 also comprises an event-indexing module 26. Event-indexing module 26 performs an event-indexing process that processes events stored in event list 20. As event-indexing module 26 processes events, event-indexing module 26 updates search index 18 based on the events that represent changes to event-mode mailboxes in mailbox database 16. For example, event list 20 may contain an event representing an addition of a message object to an event-mode mailbox in mailbox database 16. In this example, event module 20 may process the event by updating one or more entries in search index 18 so that the new message object is searchable using search index 18.
To track which events in event list 20 have been processed and which events in event list 20 have not yet been processed, event-indexing module 26 maintains a watermark that identifies a event in event list 20 that event-indexing module 26 has most-recently processed. In one example implementation, event-indexing module 26 processes an event that sequentially (e.g., chronologically) follows the event indicated by the watermark and then advances the watermark.
Event-indexing module 26 does not remove events from event list 20 after event-indexing module 26 processes the events. Rather, in one example implementation, a separate module (not shown in the example of
Source server system 8 also comprises a crawl-indexing module 28. Crawl-indexing module 28 performs a crawl-indexing process that updates search index 18 based on un-indexed message objects stored in crawl-mode mailboxes in the mailbox database. An example crawl-indexing process performed by crawl-indexing module 28 is described below with reference to
In addition, source server system 8 comprises a restoration module 30. As explained below, restoration module 30 uses the content of data storage system 12 to restore the content of data storage system 14 in target server system 10. An example operation performed by restoration module 30 to restore content of data storage system 14 is described below with reference to
Source server system 8 also comprises a polling module 31. When source server system 8 is a standby server system in high-availability server system 6, polling module 31 polls the active server system in high-availability server system 6 for new events generated in the event list of the active server system. When polling module 31 receives a new event, polling module 31 adds the new event to event list 20 and applies the new event to mailbox database 16. Consequently, when source server system 8 is a standby server system, polling module 31 keeps mailbox database 32 synchronized with the mailbox database at the active server system and keeps event list 20 synchronized with the event list in the active server system.
Event-indexing module 26, crawl-indexing module 28, restoration module 30, and polling module 31 may be implemented in a variety of ways. For example, event-indexing module 26, crawl-indexing module 28, restoration module 30, and/or polling module 31 may be implemented as software instructions that, when executed by a processing unit of source server system 8, cause source server system 8 to perform particular actions. In another example, event-indexing module 26, crawl-indexing module 28, restoration module 30, and/or polling module 31 may be implemented as application specific integrated circuits (ASICs) that perform particular actions. In yet another example, event-indexing module 26, crawl-indexing module 28, restoration module 30, and/or polling module 31 may be implemented partly as ASICs and partly as instructions that, when executed by the processing unit of source server system 8, cause source server system 8 to perform particular actions.
Data storage system 14 in target server system 10 stores a mailbox database 32, a search index 34, and an event list 36. Mailbox database 32, search index 34, and event list 36 have the same functionality as mailbox database 16, search index 18, and event list 20 in data storage system 12 in source server system 8. Furthermore, target server system 10 comprises a client access server 38, an email server 40, an event-indexing module 42, a crawl-indexing module 44, a restoration module 46, and a polling module 48. Client access server 38, email server 40, event-indexing module 42, crawl-indexing module 44, restoration module 46, and polling module 48 have the same functionality as client access server 22, email server 24, event-indexing module 26, crawl-indexing module 28, restoration module 30, and polling module 31 in source server system 8.
Data storage system 12 or data storage system 14 may enter an error state. A data storage system is in an error state when the data storage system is unable to properly respond to read and write requests. For example, a data storage system may be in an error state when it is completely broken. In another example, a data storage system may be in an error state when it contains corrupted data. Data storage system 12 or data storage system 14 may enter an error state for a wide variety of reasons. For example, data storage system 12 or data storage system 14 may enter an error state due to physical damage, age, corruption of mailbox data, corruption of the search indexes, corruption of other types of data, loss of ability to write data, loss of ability to retrieve data, and due to other causes. When data storage system 12 or data storage system 14 enters an error state, source server system 8 or target server system 10 are taken offline and remedial actions are taken to provide data storage capability to source server system 8 or target server system 10. Example remedial actions may include replacing, reformatting, reconnecting, and other actions to provide data storage capability.
Assume, for purposes of explanation, that data storage system 14 has entered an error state and remedial action has been taken to provide data storage capability to target server system 10. After the administrator takes the remedial actions, the administrator brings target server system 10 back online. When target server system 10 is brought back online, event-indexing module 42 does not initially begin performing an event-indexing process, crawl-indexing module 44 does not initially begin performing an crawl-indexing process, and polling module 48 does not initially begin polling the active server system for new events. In addition, when the administrator brings target server system 10 back online, data in data storage system 14 may be not synchronized with data in data storage system 12.
To resynchronize data in data storage system 14 with data in data storage system 12, restoration module 30 in source server system 8 suspends the event-indexing process of event-indexing module 26 and the crawl-indexing process of crawl-indexing module 28. Restoration module 30 may then transfer a set of data that target server system 10 can use to generate a copy of mailbox database 16 at mailbox database 32. In addition, restoration module 30 may transfer a set of data that target server system 10 can use to generate a copy of search index 18 at search index 34. Restoration module 30 may also transfer a set of data that target server system 10 can use to generate a copy of event list 20 at event list 36. In addition, restoration module 30 transfers to event-indexing module 42 the watermark used by event-indexing module 26. In this way, data in data storage system 14 is resynchronized with the data in data storage system 12. After restoration module 30 performs these transfers, restoration module 30 instructs event-indexing module 26 to resume the event-indexing process using events in event list 20, starting with the event indicated by the watermark. In addition, restoration module 30 instructs crawl-indexing module 28 to resume the crawl-indexing process on mailbox database 16. Furthermore, restoration module 30 instructs event-indexing module 42 to start performing the event-indexing process on mailbox database 32 using events in event list 36, starting with an event indicated by the watermark used by event-indexing module 26. Restoration module 26 also instructs crawl-indexing module 44 to start performing the crawl-indexing process on mailbox database 32. In this way, search index 34 may be restored without completely re-indexing mailbox database 32 after mailbox database 32 is resynchronized with mailbox database 16.
In the example of
If event-indexing module 26 determines that the watermark indicates that all events in event list 20 have been processed (“YES” of 52), event-indexing module 26 sleeps unit a next event is added to event list 20 (54). When a mailbox event is added to event list 20, event-indexing module 26 loops back and again determines whether the watermark indicates all events in event list 20 have been processed (52).
On the other hand, if event-indexing module 26 determines that the watermark indicates that one or more events in event list 20 have not been processed (“NO” of 52), event-indexing module 26 advances the watermark (56). In other words, event-indexing module 26 causes the watermark to indicate a next sequential event in event list 20 after the current watermark event. As used in this disclosure, the phrase “watermark event” refers to the event indicated by the watermark. After advancing the watermark, event-indexing module 26 determines whether the watermark event applies to a mailbox in mailbox database 16 that is in crawl-mode indexing (58). If the mailbox is in crawl-mode indexing (“YES” of 58), event-indexing module 26 marks the message object indicated by the watermark event as un-indexed (60). By marking the message object indicated by the watermark event as un-indexed, crawl-indexing module 28 will index the message object indicated by the watermark event during crawl-mode indexing of the mailbox. After marking the message object indicated by the watermark event as un-indexed, event-indexing module 26 loops back and again determines whether the watermark indicates that all events in event list 20 have been applied to search index 18 (52).
On the other hand, if the mailbox is not in crawl-mode indexing (“NO” of 58), event-indexing module 26 applies the watermark event to search index 18 (62). To apply the watermark event to search index 18, event-indexing module 26 may, in one example implementation, tokenize the message object indicated by the watermark event. Event-indexing module 26 may then, for each of the tokens, identify or generate a search index entry in search index 18 that specifies the token. After identifying or generating this search index entry, search index 18 may add an identifier of the message object indicated by the watermark event to the search index entry. The search index entries may be arranged within search index 18 as an inverted index. In addition, the message object indicated by the watermark event may have been previously indexed. For this reason, when event-indexing module 26 applies the watermark event to search index 18, event-indexing module 26 may ensure that no search index entry incorrectly identifies the selected message object. After event-indexing module 26 applies the watermark event to search index 18, event-indexing module 26 loops back and again determines whether the watermark indicates that all events in event list 20 have been applied to mailbox database 16 (52).
In the example of
If, however, either the selected mailbox is already open (“YES” of 104) or the selected mailbox was successfully opened (“YES” of 108), crawl-indexing module 28 determines whether a timeout period has expired (112). The timeout period may serve to ensure that crawl-indexing module 28 does not spend all of its time indexing a particular mailbox to the exclusion of all other mailboxes in mailbox database 16.
If the timeout period has not expired (“NO” of 112), crawl-indexing module 28 selects an un-indexed message object in the selected mailbox (114). A message object may be un-indexed when the message object has never been indexed before or it has been marked as un-indexed. Crawl-indexing module 28 may select the un-indexed message object on a pseudorandom or a deterministic basis. After selecting the un-indexed message object, crawl-indexing module 28 updates search index 18 to make the selected message object searchable using search index 18 (116). When crawl-indexing module 28 updates search index 18, crawl-indexing module 28 may generate or change one or more search index entries in search index 18.
After updating search index 18 the selected message object, crawl-indexing module 28 determines whether there are any remaining un-indexed message objects in the selected mailbox (118). If there are one or more remaining un-indexed message objects in the selected mailbox (“YES” of 118), crawl-indexing module 28 loops back and again determines whether the timeout period has expired (112). If there are no remaining un-indexed message objects in the selected mailbox (“NO” of 118), crawl-indexing module 28 changes the indexing mode of the selected mailbox to notification mode (120). After changing the indexing module of the selected mailbox to notification mode, crawl-indexing module 28 loops back and again selects one of the crawl-mode mailboxes in mailbox database 16 (102).
In the example of
In circumstances where high-availability server system 6 includes more than one server systems that have up-to-date mailbox databases and event lists, it may be most efficient for a server system to receive the restoration event when a copy of the mailbox database at the server system is mounted and all mailboxes in the copy of the mailbox database are in event-mode indexing. If there is no such server system in high-availability server system 6, it may be most efficient to send the restoration event to a server system in high-availability server system 6 that has a copy of the mailbox database at which all of the mailboxes in the copy of the mailbox database are in event-mode indexing, but at which event-mode indexing has been suspended. It is also possible, but less efficient, to send the restoration event to a server system in high-availability server system 6 at which a copy of the mailbox data includes one or more mailboxes in crawl-mode indexing.
After receiving the restoration event, restoration module 30 instructs event-indexing module 26 to suspend applying events in event list 20 to search index 18 (154). Because event-indexing module 26 is not applying events in event list 20 to search index 18 during a restoration operation, event-indexing module 26 does not change search index 18 during the restoration operation. Furthermore, restoration module 30 instructs crawl-indexing module 28 to suspend performing the crawl-indexing process on mailbox database 16 (156). Because crawl-indexing module 28 is not indexing message objects in mailbox database 16 during the restoration operation, crawl-indexing module 28 does not change search index 18 during the restoration operation.
After the event-indexing process and the crawl-index process have been suspended, restoration module 30 determines whether the restoration event indicates that target server system 10 needs a copy of mailbox database 16 (157). If restoration module 30 determines that the restoration event indicates that target server system 10 needs a copy of mailbox database 16 (“YES” of 157), restoration module 30 sends to target server system 10 a set of data that target server system 10 uses to generate a copy of mailbox database 16 at data storage system 14 (i.e., mailbox database 34) (158). In one example, restoration module 30 may send to target server system 10 a compressed version of mailbox database 16. In another example, if some of mailbox database 32 is present when target server system 10 is brought back online, restoration module 30 may send to target server system 10 only those portions of mailbox database 16 that are not already in mailbox database 32.
When restoration module 30 has sent the set of data that target server system 10 uses to generate the copy of the mailbox database 16 or when restoration module 30 determines that the restoration event indicates that target server system 10 does not need a copy of mailbox database 16 (“NO” of 157), restoration module 30 determines whether the restoration event indicates that target server system 10 needs a copy of search index 18 (159). If restoration module 30 determines that restoration event indicates that target server system 10 needs a copy of search index 18 (“YES” of 159), restoration module 30 sends to target server system 10 a set of data that target server system 10 uses to generate a copy of search index 18 at data storage system 14 (i.e., search index 36) (160). For instance, restoration module 30 may send to target server system 10 a complete copy of search index 18.
After sending the data that target server system 10 uses to restore search index 34 or after determining that the restoration event indicates that the target server system 10 does not need a copy of search index 18 (“NO” of 159), restoration module 30 determines whether event list 36 in target server system 10 is empty (162). For example, target server system 10 may have been operating normally prior to going offline. When target server system 10 went offline, event list 36 in target server system 10 may not have been completely lost. In this example, event list 36 is not empty. On the other hand, if target server system 10 has not been part of high-availability server system 6 previously, event list 36 may be empty.
If event list 36 is not empty (“NO” of 162), restoration module 30 sends to target server system 10 events in event list 20 that are not present in event list 36 of target server system 10 (164). For example, when target server system 10 went offline, event list 36 in target server system 10 may not have been completely lost. In this example, it is only necessary for restoration module 30 to transfer to target server system 10 those events that are not in event list 36.
On the other hand, if event list 36 is empty (“YES” of 162), restoration module 30 sends to target server system 10 each event in event list 20 (166). In addition, restoration module 30 sets the server globally unique identifier (GUID) of target server system 10 (168). Setting the server GUID of target server system 10 may ensure that target server system 10 is differentiable from source server system 8.
After restoration module 30 has sent to target server system 10 events in event list 20 that are not present in event list 36 or after restoration module 30 sets the server GUID, restoration module 30 updates the watermark of event-indexing module 42 such that the watermark of event-indexing module 42 indicates the same event as the watermark of event-indexing module 26 (170).
Restoration module 30 then instructs event-indexing module 26 to resume the event-indexing process (172). Next, restoration module 30 instructs crawling-indexing module 28 to resume the crawl-indexing process (174). Restoration module 30 then instructs event-indexing module 42 to begin performing the event-indexing process on mailbox database 32, starting from the event indicated by the watermark of event-indexing module 42 (176). In addition, restoration module 30 instructs crawl-indexing module 44 to begin performing the crawl-indexing process on mailbox database 32 (178). In this way, target server system 10 may begin using search index 34 to process search queries immediately after operation 150 is complete. In other words, there is no need for crawl-indexing module 44 to completely re-index mailbox database 32 after mailbox database 32 is copied from source server system 8.
In addition, electronic computing device 600 comprises a processing unit 602. In a first example, processing unit 602 may execute software instructions that cause processing unit to provide specific functionality. In this first example, processing unit 602 may be implemented as one or more processing cores and/or as one or more separate microprocessors. For instance, in this first example, processing unit 602 may be implemented as one or more Intel Core 2 microprocessors. Processing unit 602 may be capable of executing instructions in an instruction set, such as the x86 instruction set, the POWER instruction set, a RISC instruction set, the SPARC instruction set, the IA-64 instruction set, the MIPS instruction set, or another instruction set. In a second example, processing unit 602 may be implemented as an application specific integrated circuit (ASIC) that provides specific functionality. In an third example, processing unit 602 may provide specific functionality by using an ASIC and by executing software instructions.
Electronic computing device 600 also comprises a video interface 604 that enables electronic computing device 600 to output video information to a display device 606. Display device 606 may be a variety of different types of display devices. For instance, display device 606 may be a cathode-ray tube display, an LCD display panel, a plasma screen display panel, a touch-sensitive display panel, a LED array, or another type of display device.
In addition, electronic computing device 600 includes a non-volatile storage device 608. Non-volatile storage device 608 is a computer-readable storage medium that is capable of storing data and/or instructions. Non-volatile storage device 608 may be a variety of different types of different non-volatile storage devices. For example, non-volatile storage device 608 may be one or more hard disk drives, magnetic tape drives, CD-ROM drives, DVD-ROM drives, Blu-Ray disc drives, or other types of non-volatile storage devices.
Electronic computing device 600 also includes an external component interface 610 that enables electronic computing device 600 to communicate with external components. As illustrated in the example of
In addition, electronic computing device 600 includes a network interface 616 that enables electronic computing device 600 to send data to and receive data from network 18. Network interface 616 may be a variety of different types of network interface. For example, network interface 616 may be an Ethernet interface, a token-ring network interface, a fiber optic network interface, a wireless network interface (e.g., WiFi, WiMax, etc.), or another type of network interface.
Electronic computing device 600 also includes a communications medium 618 that facilitates communication among the various components of electronic computing device 600. Communications medium 618 may comprise one or more different types of communications media including, but not limited to, a PCI bus, a PCI Express bus, an accelerated graphics port (AGP) bus, an Infiniband interconnect, a serial Advanced Technology Attachment (ATA) interconnect, a parallel ATA interconnect, a Fiber Channel interconnect, a USB bus, a Small Computer System Interface (SCSI) interface, or another type of communications medium.
Several computer-readable storage media are illustrated in the example of
The technologies of this disclosure may be realized in many ways. For example, the technologies of this disclosure may be realized as a method for restoring a search index of a mailbox database. The method comprising automatically performing, at a source server system in a high-availability server system, a first event-indexing process that processes events stored in an event list, thereby updating a search index of a mailbox database based on ones of the events stored in the event list that represent changes to an event-mode mailbox in the mailbox database. In addition, the method comprises in response to a restoration event, automatically suspending, at the source server system, the first event-indexing process. Furthermore, the method comprises, after suspending the first event-indexing process, automatically sending, from the source server system to a target server system in the high-availability server system, a first set of data that the target server system uses to generate a copy of the search index at the target server system. The method also comprises after suspending the first event-indexing process, automatically sending a watermark from the source server system to the target server system, the watermark indicating a mailbox event in the event list that the first event-indexing process has most recently processed. In addition, the method comprises, after sending the first set of data and the watermark, automatically resuming, at the source server system, the first event-indexing process and the first crawl-indexing process. Furthermore, the method comprises after sending the first set of data and the watermark, automatically instructing, at the source server system, the target server system to begin performing a second event-indexing process that processes events stored in a copy of the event list at the target server system, thereby updating the copy of the search index based on ones of the events stored in the copy of the event list that represent changes to an event-mode mailbox in a copy of the mailbox database at the target server system, starting with a event in the copy of the event list that follows the watermark.
In another example, the technologies of this disclosure may be realized as a high-availability server system comprising a target server system that provides a service that enables clients of the high-availability server system to access message objects when the target server system is an active server system of the high-availability server system and when the target server system stores a synchronized copy of a mailbox database and a synchronized copy of a search index. In addition, the high-availability server system comprises a source server system that enables clients of the high-availability server system to access message objects when the source server system is an active server system of the high-availability server system. The source server system comprises a processing unit and a computer-readable data storage system. The computer-readable data storage system stores a mailbox database comprising message objects, a search index of the mailbox database, and an event list that comprises events that represent requested changes to the mailbox database. The computer-readable data storage system also stores a crawl-indexing module that, when executed by the processing unit, causes the source server system to perform a first crawl-indexing process that updates the search index based on un-indexed message objects stored in a crawl-mode mailbox in the mailbox database. In addition, the computer-readable data storage system stores an event module that, when executed by the processing unit, causes the source server system to automatically perform a first event-indexing process that processes events stored in the event list, thereby updating the search index based on ones of the events that represent changes to an event-mode mailbox in the mailbox database. The computer-readable data storage medium also comprises a restoration module that, when executed by the processing unit, causes the source server system to listen for a restoration event. Furthermore, in response to receiving a restoration event, the restoration module causes the source server system to automatically suspend the first event-indexing process and the first crawl-indexing process. The restoration module also causes the source server system to after the first event-indexing process and the first crawl-indexing process have been suspended. In addition, the restoration module causes the source server system to automatically send, from the source server system to the target server system, a first set of data that the target server system uses to generate a copy of the search index. Furthermore, after the first event-indexing process and the first crawl-indexing process have been suspended, the restoration module causes the source server system to automatically send from the source server system to the target server system a watermark that indicates an event in the event list that the first event-indexing process has most-recently processed. In addition, the restoration module causes the source server system to automatically resume performance of the first event-indexing process and the first crawl-indexing process after the source server system has sent the first set of data and the watermark to the target server system. The restoration module causes the source server system to automatically instruct the target server system to begin performing a second event-indexing process that processes events in a copy of the event list at the target server system, thereby updating the copy of the search index based on ones of the events stored in the copy of the event list that represent changes to message objects stored in an event-mode mailbox in a copy of the mailbox database at the target server system, starting with an event in the copy of the event list that follows the watermark. In addition, the restoration module causes the source server system to automatically instruct the target server system to begin performing a second crawl-indexing process that updates the copy of the search index based on un-indexed message objects stored in a crawl-mode mailbox in the copy of the mailbox database.
In another example, the technologies of this disclosure may be realized as a computer-readable data storage medium comprising instructions that, when executed by a processing unit of a source server system in a high-availability server system, cause the source server system to automatically perform a first crawl-indexing process that updates a search index of a mailbox database based on un-indexed message objects stored in a crawl-mode mailbox in the mailbox database. The instructions also cause the source server system to automatically perform a first event-indexing process that processes events in an event list, thereby updating the search index based on ones of the events stored in the event list that represent changes to an event-mode mailbox in the mailbox database. Furthermore, the instructions cause the source server system to automatically suspend, in response to a restoration event, the first event-indexing process and the first crawl-indexing process. In addition, the instructions cause the source server system to send from the source server system to a target server system in the high-availability server system, after the first event-indexing process and the first crawl-indexing process have been suspended, a first set of data that the target server system uses to generate a copy of the mailbox database. The instructions also cause the source server system to send from the source server system to the target server system, after the event-indexing process and the crawl-indexing process have been suspended, a second set of data that the target server system uses to generate a copy of the search index. Furthermore, the instructions cause the source server system to send from the source server system to the target server system, after the event-indexing process and the crawl-indexing process have been suspended, a third set of data that the target server system uses to generate a copy of the event list. In addition, the instructions cause the source server system to send from the source server system to the target server system, after the event-indexing process and the crawl-indexing process have been suspended, a watermark that indicates a most recent event in the event list that the first event-indexing process has processed. Furthermore, the instructions cause the source server system to resume, after sending the first set of data, the second set of data, the third set of data, and the watermark, the first event-indexing process and the first crawl-indexing process. In addition, the instructions cause the source server system to instruct, after sending the first set of data, the second set of data, the third set of data, and the watermark, the target server system to begin performing a second event-indexing process that processes events in the copy of the event list, thereby updating the copy of the search index based on ones of the events in the copy of the event list that represent changes to message objects stored in an event-mode mailbox in the copy of the mailbox database, starting with an event in the copy of the event list that follows the watermark. Furthermore, the instructions cause the source server system to instruct, after sending the first set of data, the second set of data, the third set of data, and the watermark, the target server system to begin performing a second crawl-indexing process that updates the copy of the search index based on un-indexed message objects stored in a crawl-mode mailbox in the copy of the mailbox database. The instructions also cause the source server system to automatically poll an active server system in the high-availability server system for new message events. Furthermore, the instructions cause the source server system to upon receiving a new message event from the active server system, automatically apply a change represented by the new message event to the mailbox database. In addition, the instructions cause the source server system to automatically add the new message event to the event list.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.