This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1012776 - Dist-geo-rep: logrotate utility command rotates the geo-replication log file but doesn't open a new one to write.
Dist-geo-rep: logrotate utility command rotates the geo-replication log file ...
Product: GlusterFS
Classification: Community
Component: geo-replication (Show other bugs)
x86_64 Linux
high Severity high
: ---
: ---
Assigned To: Aravinda VK
Depends On: 998943
  Show dependency treegraph
Reported: 2013-09-27 02:25 EDT by Aravinda VK
Modified: 2014-04-17 07:48 EDT (History)
8 users (show)

See Also:
Fixed In Version: glusterfs-3.5.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 998943
Last Closed: 2014-04-17 07:48:54 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Comment 1 Anand Avati 2013-09-27 03:15:15 EDT
REVIEW: (geo-rep: logrotate: Logrotate handling) posted (#3) for review on master by Aravinda VK (
Comment 2 Anand Avati 2013-09-27 05:13:52 EDT
REVIEW: (geo-rep: logrotate: Logrotate handling) posted (#4) for review on master by Aravinda VK (
Comment 3 Anand Avati 2013-10-04 00:26:06 EDT
COMMIT: committed in master by Anand Avati ( 
commit 79ba7b3e2ea6e2dc2e720c2cae1e6ae0aeeea392
Author: Aravinda VK <>
Date:   Thu Sep 19 14:24:35 2013 +0530

    geo-rep: logrotate: Logrotate handling
    In existing georep logrotate was implemented by handling SIGSTOP
    and SIGCONT, gsyncd was failing to start again after SIGSTOP.
    New approach uses WatchedFileHandler in logging, which tracks the
    log file changes or logrotate. Reopens the log file if logrotate is
    triggered or if same log file is updated from other process.
    As per python doc:
    The WatchedFileHandler class, located in the logging.handlers module,
    is a FileHandler which watches the file it is logging to. If the file
    changes, it is closed and reopened using the file name.
    A file change can happen because of usage of programs such as newsyslog
    and logrotate which perform log file rotation. This handler, intended
    for use under Unix/Linux, watches the file to see if it has changed
    since the last emit. (A file is deemed to have changed if its device
    or inode have changed.) If the file has changed, the old file stream
    is closed, and the file opened to get a new stream.
    Change-Id: I30f65eb1e9778b12943d6e43b60a50344a7885c6
    BUG: 1012776
    Signed-off-by: Aravinda VK <>
    Reviewed-by: Amar Tumballi <>
    Reviewed-by: Harshavardhana <>
    Tested-by: Gluster Build System <>
    Reviewed-by: Anand Avati <>
Comment 4 Niels de Vos 2014-04-17 07:48:54 EDT
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.5.0, please reopen this bug report.

glusterfs-3.5.0 has been announced on the Gluster Developers mailinglist [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.


Note You need to log in before you can comment on or make changes to this bug.