Bug 1695390

Summary: GF_LOG_OCCASSIONALLY API doesn't log at first instance
Product: [Community] GlusterFS Reporter: Atin Mukherjee <amukherj>
Component: loggingAssignee: bugs <bugs>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 6CC: atumball, bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-7.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1694925 Environment:
Last Closed: 2019-06-25 13:24:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1694925, 1695391    
Bug Blocks:    

Description Atin Mukherjee 2019-04-03 02:37:15 UTC
+++ This bug was initially created as a clone of Bug #1694925 +++

Description of problem:

    GF_LOG_OCCASSIONALLY doesn't log on the first instance rather at every
    42nd iterations which isn't effective as in some cases we might not have
    the code flow hitting the same log for as many as 42 times and we'd end
    up suppressing the log.


Version-Release number of selected component (if applicable):

Mainline

How reproducible:

Always

--- Additional comment from Worker Ant on 2019-04-02 05:35:15 UTC ---

REVIEW: https://review.gluster.org/22475 (logging: Fix GF_LOG_OCCASSIONALLY API) posted (#1) for review on master by Atin Mukherjee

--- Additional comment from Worker Ant on 2019-04-02 10:57:31 UTC ---

REVIEW: https://review.gluster.org/22475 (logging: Fix GF_LOG_OCCASSIONALLY API) merged (#2) on master by Atin Mukherjee

Comment 1 Worker Ant 2019-04-03 02:39:23 UTC
REVIEW: https://review.gluster.org/22482 (logging: Fix GF_LOG_OCCASSIONALLY API) posted (#1) for review on release-6 by Atin Mukherjee

Comment 2 Worker Ant 2019-04-03 04:54:35 UTC
REVISION POSTED: https://review.gluster.org/22482 (logging: Fix GF_LOG_OCCASSIONALLY API) posted (#2) for review on release-6 by Raghavendra G