diff options
| author | Aravinda VK <avishwan@redhat.com> | 2019-08-05 19:00:21 +0530 |
|---|---|---|
| committer | Kotresh HR <khiremat@redhat.com> | 2019-10-22 18:20:27 +0530 |
| commit | e812ea3982d61c5ee329c034b1c857824fdd1a5a (patch) | |
| tree | 8fda05e3e1acb41c4afb1dff2b55306c184a0991 /extras/gnfs-loganalyse.py | |
| parent | 57510c2a28de017a147dc7fd8d95e2794a519714 (diff) | |
geo-rep: Fix Config Get Race
When two threads(sync jobs) in Geo-rep worker calls `gconf.get` and
`gconf.getr`(realtime) at the sametime, `getr` resets the conf object
and other one gets None. Thread Lock is introduced to fix the issue.
```
File "/usr/libexec/glusterfs/python/syncdaemon/syncdutils.py",
line 368, in twrap
tf(*aargs)
File "/usr/libexec/glusterfs/python/syncdaemon/master.py", line 1987,
in syncjob
po = self.sync_engine(pb, self.log_err)
File "/usr/libexec/glusterfs/python/syncdaemon/resource.py",
line 1444, in rsync
rconf.ssh_ctl_args + \
AttributeError: 'NoneType' object has no attribute 'split'
```
Backport of:
> Patch: https://review.gluster.org/23158
> Change-Id: I9c245e5c36338265354e158f5baa32b119eb2da5
> BUG: 1737484
> Signed-off-by: Aravinda VK <avishwan@redhat.com>
Change-Id: I9c245e5c36338265354e158f5baa32b119eb2da5
fixes: bz#1764174
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'extras/gnfs-loganalyse.py')
0 files changed, 0 insertions, 0 deletions
