[LU-8178] recovery_duration value becomes negative Created: 22/May/16  Updated: 14/Jun/16  Resolved: 14/Jun/16

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.8.0
Fix Version/s: Lustre 2.9.0

Type: Bug Priority: Minor
Reporter: Sergey Cheremencev Assignee: Peter Jones
Resolution: Fixed Votes: 0
Labels: patch

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   
Starting mds1: -o loop,user_xattr -o recovery_time_hard=60,recovery_time_soft=60  /tmp/lustre-mdt1 /mnt/mds1
Started lustre-MDT0000
recovery status
status: COMPLETE
recovery_start: 1385649466
recovery_duration: 18446744072323902150
completed_clients: 2/2
replayed_requests: 8737
last_transno: 8589950593
VBR: ENABLED
IR: DISABLED

Bug is occurred when /proc/fs/lustre/mdt/lustre-MDT0000/recovery_status is accessed after obd->obd_abort_recovery set to 0 and before target_finish_recovery call:

  1. target_recovery_thread: obd->obd_recovering = obd->obd_abort_recovery = 0;
  2. lprocfs_obd_rd_recovery_status: print("recovery_duration :", (obd->obd_recovery_end - obd->obd_recovery_start))
  3. target_recovery_thread->target_finish_recovery: obd->obd_recovery_end = cfs_time_current_sec();

It seems bug exists for a long time.



 Comments   
Comment by Gerrit Updater [ 23/May/16 ]

Sergey Cheremencev (sergey_cheremencev@xyratex.com) uploaded a new patch: http://review.whamcloud.com/20381
Subject: LU-8178 lproc: fix negative recovery_duration
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b96cbdba90406641cc21c04c17e54e6543245569

Comment by Gerrit Updater [ 14/Jun/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/20381/
Subject: LU-8178 lproc: fix negative recovery_duration
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: ca62e637647f4d7c68bfb2b9f1b7a1597ae61381

Comment by Joseph Gmitter (Inactive) [ 14/Jun/16 ]

patch has landed to master for 2.9

Generated at Sat Feb 10 02:15:19 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.