[LU-632] llog_reader loops forever on an empty file Created: 24/Aug/11  Updated: 23/Jun/16  Resolved: 02/Oct/15

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

Type: Bug Priority: Minor
Reporter: Brian Murrell (Inactive) Assignee: Mikhail Pershin
Resolution: Fixed Votes: 0
Labels: patch

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9790

 Description   

If you give llog_reader an empty file to try to read it will loop until interrupted with the following:

Bit 0 of 135136 not set
Bit 0 of 135136 not set
Bit 0 of 135136 not set
Bit 0 of 135136 not set

It should, at most, print one iteration and exit. But perhaps an empty file should simply mean that llog_reader prints nothing.



 Comments   
Comment by Build Master (Inactive) [ 24/Aug/11 ]

Integrated in hydra-agent » x86_64,el5 #81
Tune device enumeration and WAR LU-632

Brian J. Murrell :
Files :

  • hydra_agent/audit.py
Comment by Build Master (Inactive) [ 24/Aug/11 ]

Integrated in hydra-agent » x86_64,el6 #81
Tune device enumeration and WAR LU-632

Brian J. Murrell :
Files :

  • hydra_agent/audit.py
Comment by Build Master (Inactive) [ 05/Apr/12 ]

Integrated in chroma » x86_64,el6 #3
Tune device enumeration and WAR LU-632 (Revision 862bc125e26fe0dd7d5cb41a83150078d6dd93be)

Result = SUCCESS
Brian J. Murrell :
Files :

  • hydra_agent/audit.py
Comment by Li Xi (Inactive) [ 20/Jun/14 ]

I pushed patch here which not only fixes this problem but also fixes the segmentation fault problem when the llog file is corrupt.

http://review.whamcloud.com/#/c/10764/

Comment by Gerrit Updater [ 06/Apr/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/10764/
Subject: LU-632 utils: fix problems of llog_reader
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: ad355e5dbb2270cee92ed58d35b4435cfd80b33c

Comment by Frank Zago (Inactive) [ 31/Jul/15 ]

This issue appears resolved.

Comment by Andreas Dilger [ 22/Dec/15 ]

See also http://review.whamcloud.com/17627 which fixes the case of the llog file being small but non-zero sized.

Generated at Sat Feb 10 01:08:56 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.