CN113687929A

Abnormality processing method and related device

Abstract

This application discloses an exception handling method, which includes: when the service self-checking component detects that the target service is abnormal, judging whether there is an exception handling process for performing operations on the target service; when there is no exception handling process, obtaining the target service Status information: When the status information is inactive, the service self-check component performs exception handling operations on the target service. When the service self-checking component detects an abnormality, it is judged whether there is an abnormal handling process that performs an operation on the target service, and when there is no abnormal handling process, it is determined whether the status information is inactive, so as to avoid the existence of an abnormal handling process for operations at the same time , It also avoids that other processes have just finished processing the target service, and there is no need to perform exception handling on the target service again, avoiding mutual exclusion problems, and improving the experience of operating the file system. The application also discloses an abnormality processing device, a server, and a computer-readable storage medium, which have the above beneficial effects.

CN113687929A, drawing sheet 1
Sheet 1 of 1

Term

14.9 yearsto projected expiry

Projected expiry 24 August 2041, counted from filing; an application has no term until it is granted.

  1. Priority and filed
  2. Published
  3. Today
  4. Projected expiry

10 claims: 2 independent, 8 dependent

  1. 1
    一种异常处理方法,其特征在于,包括: 当服务自检组件检测到目标服务出现异常时,判断是否存在对所述目标服务执行操作 的异常处理进程; 当不存在所述异常处理进程时,获取所述目标服务的状态信息; 当所述状态信息为未活动时,通过所述服务自检组件对所述目标服务执行异常处理操 作。
  2. 2
    根据权利要求1所述的异常处理方法,其特征在于,当服务自检组件检测到目标服务 出现异常时,判断是否存在对所述目标服务执行操作的异常处理进程,包括: 当所述服务自检组件检测到所述目标服务的端口未被占用时,判断是否存在管理软件 下发的所述异常处理进程。
  3. 3
    根据权利要求2所述的异常处理方法,其特征在于,当所述服务自检组件检测到所述 目标服务的端□未被占用时,判断是否存在管理软件下发的所述异常处理进程,包括: 当所述服务自检组件检测到所述目标服务的端口未被占用时,判断是否存在所述管理 软件下发的i sm_p i d进程。
  4. 4
    根据权利要求1所述的异常处理方法,其特征在于,还包括: 当存在所述异常处理进程时,对所述服务自检组件的异常处理操作执行终止操作,并 通过所述异常处理进程对所述目标服务进行异常处理。
  5. 5
    根据权利要求1所述的异常处理方法,其特征在于,当不存在所述异常处理进程时, 获取所述目标服务的状态信息,包括: 当不存在所述异常处理进程时,通过查询命令获取所述目标服务的状态信息。
  6. 6
    根据权利要求1所述的异常处理方法,其特征在于,当所述状态信息为未活动时,通 过所述服务自检组件对所述目标服务执行异常处理操作,包括: 当所述状态信息为未活动时,通过所述服务自检组件对所述目标服务执行重启操作。
  7. 7
    根据权利要求1所述的异常处理方法,其特征在于,还包括: 当所述状态信息为活动时,对所述服务自检组件的异常处理操作执行终止操作。
  8. 8
    一种异常处理装置,其特征在于,包括: 进程判断模块,用于当服务自检组件检测到目标服务出现异常时,判断是否存在对所 述目标服务执行操作的异常处理进程; 状态获取模块,用于当不存在所述异常处理进程时,获取所述目标服务的状态信息; 异常处理模块,用于当所述状态信息为未活动时,通过所述服务自检组件对所述目标 服务执行异常处理操作。
  9. 9
    一种服务器,其特征在于,包括: 存储器,用于存储计算机程序; 处理器,用于执行所述计算机程序时实现如权利要求1至7任一项所述的异常处理方法 的步骤。
  10. 10
    一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机 程序,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述的异常处理方法的 步骤。
Independent claims10