diff options
author | Saravanakumar Arumugam <sarumuga@redhat.com> | 2015-12-02 14:26:47 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2015-12-07 22:42:35 -0800 |
commit | d3d2b6459c2a75534b137e1136a001184df79e2e (patch) | |
tree | e48b961b90db999e5908f4ce39e3f6cab3046d3a /geo-replication/syncdaemon/resource.py | |
parent | e1a9914fb318cbdd2bb8f36881e8f5f0b45ce76c (diff) |
geo-rep: use cold tier bricks for namespace operations
Problem:
symlinks are not getting synced to slave in a Tiering based volume.
Solution:
Now, symlinks are created directly in cold tier bricks( in the backend).
Earlier, cold tier was avoided for namespace operations and only
hot tier was used while processing changelogs.
Now, cold tier is HASH subvolume in a Tiering volume.
So, carry out namespace operation only in cold tier subvolume and
avoid hot tier subvolume to avoid any races.
Earlier, XSYNC was used(and changeloghistory avoided) during initial sync
in order to avoid race while processing historychangelog in Hot tier.
This is no longer required as there is no race from Hot tier.
Also, avoid both live and history changelog ENTRY operations from Hot tier
to avoid any race with cold tier.
Change-Id: Ia8fbb7ae037f5b6cb683f36c0df5c3fc2894636e
BUG: 1288027
Signed-off-by: Saravanakumar Arumugam <sarumuga@redhat.com>
Reviewed-on: http://review.gluster.org/12844
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 93f31189ce8f6e2980a39b02568ed17088e0a667)
Reviewed-on: http://review.gluster.org/12891
Diffstat (limited to 'geo-replication/syncdaemon/resource.py')
-rw-r--r-- | geo-replication/syncdaemon/resource.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/geo-replication/syncdaemon/resource.py b/geo-replication/syncdaemon/resource.py index 1b50caba01a..0573acce3e7 100644 --- a/geo-replication/syncdaemon/resource.py +++ b/geo-replication/syncdaemon/resource.py @@ -1434,12 +1434,7 @@ class GLUSTER(AbstractUrl, SlaveLocal, SlaveRemote): # Note: if config.change_detector is xsync then # it will not use changelog history api try: - # if cold brick type, avoid changeloghistory and use xsync - if (boolify(gconf.is_coldtier)): - logging.info("cold tier using xsync crawl") - g1.crawlwrap(oneshot=True) - else: - g3.crawlwrap(oneshot=True) + g3.crawlwrap(oneshot=True) except PartialHistoryAvailable as e: logging.info('Partial history available, using xsync crawl' ' after consuming history till %s' % str(e)) |