diff options
author | Kotresh HR <khiremat@redhat.com> | 2015-07-03 16:32:56 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2015-08-05 22:49:52 -0700 |
commit | b7118970edab7c3ab9c7039ef340c40326ff6930 (patch) | |
tree | 0eca5db307cdf4714089bd395e55dcd9a73372c9 /glusterfs-hadoop/0.20.2 | |
parent | 0459bca39f00b7ac9f6d661c049cba03179efeff (diff) |
geo-rep: Fix history failure
Both ACTIVE and PASSIVE workers register to changelog
at almost same time. When PASSIVE worker becomes ACTIVE,
the start and end time would be current stime and register_time
repectively for history API. Hence register_time would be less
then stime for which history obviously fails. But it will
be successful for the next restart as new register_time > stime.
Fix is to pass current time as the end time to history call
instead of the register_time.
Also improvised the logging for ACTIVE/PASSIVE switching.
BUG: 1247882
Change-Id: I40c582cc32fe29a6c30340ec81a3b5d30e461e71
Reviewed-on: http://review.gluster.org/11524
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Aravinda VK <avishwan@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Reviewed-on: http://review.gluster.org/11784
Reviewed-by: Milind Changire <mchangir@redhat.com>
Diffstat (limited to 'glusterfs-hadoop/0.20.2')
0 files changed, 0 insertions, 0 deletions