[LU-4871] missing newlines at end of error messages Created: 08/Apr/14  Updated: 11/Nov/14  Resolved: 11/Nov/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.6.0
Fix Version/s: Lustre 2.6.0, Lustre 2.7.0

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: James Nunez (Inactive)
Resolution: Fixed Votes: 0
Labels: messages

Attachments: Text File cerror-missing-newlines.txt    
Issue Links:
Related
is related to LU-5551 format at ldlm_pool.c:625:ldlm_pool_r... Resolved
Severity: 3
Rank (Obsolete): 13464

 Description   

There are 70 odd CERROR/CWARN/CDEBUG... messages with missing newlines. The attached file was generated a few weeks ago.



 Comments   
Comment by Peter Jones [ 15/Apr/14 ]

James

Could you please take care of this one?

Thanks

Peter

Comment by John Hammond [ 15/Apr/14 ]

I also noticed two messages with double newlines:

ll_layout_refresh
osc_lock_init

--
00000008:00010000:3.0:1397487994.678070:0:5401:0:(osc_lock.c:1753:osc_lock_init()) ### lock ffff8801e4af0ed0, osc lock ffff8801e457bcc0, flags 41000

--
00000080:00010000:3.0:1397487994.678467:0:5401:0:(file.c:3975:ll_layout_refresh()) ### lustre: requeue layout lock for file [0x280000400:0x12b:0x0](ffff8802002c4b78)

Comment by James Nunez (Inactive) [ 17/Apr/14 ]

The double newlines are a results of LDLM_DEBUG_NOLOCK being defined as:
#define LDLM_DEBUG_NOLOCK(format, a...) \
CDEBUG(D_DLMTRACE, "### " format "\n" , ##a)

So, anyone using LDLM_DEBUG_NOLOCK should not use a newline character at the end of the message. At least two uses of LDLM_DEBUG_NOLOCK used the newline, producing the double newlines printed and there are several examples of calling LDLM_DEBUG_NOLOCK without the newline character.

We have other examples of defining new routines based on CDEBUG, CL_LOCK_DEBUG for example, and we don’t add a newline character in the definition of those routines. I think we should be consistent and leave out the "\n" in the definition of LDLM_DEBUG_NOLOCK.

Comment by James Nunez (Inactive) [ 23/Apr/14 ]

Proposed patch at http://review.whamcloud.com/#/c/10000/

Comment by James Nunez (Inactive) [ 11/Jul/14 ]

John,

Patch http://review.whamcloud.com/#/c/10000/ landed. Should we close this ticket or do you want to generate a new list to see if there are new cases of missing newlines in the latest master?

James

Comment by James Nunez (Inactive) [ 16/Jul/14 ]

Patch landed to master

Comment by Cliff White (Inactive) [ 29/Sep/14 ]

With latest master, 2.6.53, I am getting buried in these messages:

iwc12 kernel: format at osc_cache.c:1473:osc_enter_cache_try doesn't end in newline

Comment by James A Simmons [ 29/Sep/14 ]

Me too.

Comment by James Nunez (Inactive) [ 29/Sep/14 ]

That message should be cleaned up with the LU-5551 patch at http://review.whamcloud.com/#/c/11996/3

Comment by James Nunez (Inactive) [ 11/Nov/14 ]

Resolving ticket since patch for LU-5551, http://review.whamcloud.com/#/c/11996/3 , landed to master (pre-2.7)

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