摘要:
A system and method for acquiring, releasing, and reclaiming a lock of a data structure in a network file system (“NFS”) is disclosed. Generally, a text file is created in a management library of the data structure. The name of the text file comprises an identifier of the lock, an identifier of a process attempting to acquire the lock, and an identifier of a machine on which the process attempting to acquire the lock is running. The identifier of the process attempting to acquire the lock and the identifier of the machine on which the process attempting to acquire the lock is running is saved in the contents of the text file and a hard line is created pointing to the text file. Finally, a number of links pointing to the text file is determined and a lock of the data structure is granted based on the number of links pointing to the text file.
摘要:
A method of fitting text comprising characters belonging to a character set into a text area wherein the text is rendered in a font and at a font size estimates a total width of the text based on at least a representative width associated with the character set, font and font size, identifies a horizontal truncation boundary based on at least the estimated width and the width of the text area, identifies a vertical truncation boundary based on at least the estimated width, text area, horizontal truncation boundary, and a representative height associated with the character set, font and font size, wraps the text at the horizontal truncation boundary, and truncates the text at the vertical truncation boundary.
摘要:
A system and method for automatic recovery of a unit of work in a batch processing system is disclosed. Generally, a unit of work is placed in a todo queue to store the unit of work for processing. Access to the unit of work is provided to a data structure for processing and the unit of work is moved from the todo queue to an in-progress queue. An error is detected in the processing of the unit of work and a retry count of the unit of work is compared to a maximum retry count of the unit of work. Finally, the unit of work is moved to the todo queue for re-processing or to a failed queue for further analysis based on the comparison of the retry count to the maximum retry count.
摘要:
A system and method for automated recovery of processing of a unit of work during an error in a batch processing system is disclosed. Generally, at least a portion of a unit of work and instructions of operations to perform to process the portion of the unit of work is sent to a worker data structure. A periodic heartbeat is received from the worker data structure indicating the worker data structure is processing the at least a portion of the unit of work. If an unexpected termination of the worker data structure is detected, a signal is sent to a crash handler data structure instructing the crash handler data structure to detect and store a current input location of the at a portion of the unit of work. The records from the current location at the crash are skipped during reprocessing of the unit of work to increase the chances of success during reprocessing.