summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-messages.h
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2015-12-21 10:09:53 +0000
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-12-21 20:30:47 -0800
commit4bfbabfdd698e93a1dc1aad5590ed18f10936c55 (patch)
tree17a4cc32522f5acc8c367957a6553ccf77f5e659 /xlators/cluster/afr/src/afr-messages.h
parent7237f8f0d72743d2522b7db1be928c5016713c59 (diff)
afr: warn if pending xattrs missing during init()
Since commit 6e635284a4411b816d4d860a28262c9e6dc4bd6a (glusterfs-3.7.7), the afr pending xattrs are stored in the volfile and used by afr when it initializes. If a cluster is upgraded, prevent afr from loading until the op-version has been bumped up to 3.7.7 and the volfiles have been regenerated using a volume set command. Without this fix, AFR will crash when initialzing. Change-Id: I14249dedb3f2f77cd754d78d8a9a70fdc5fc8c10 BUG: 1293293 Signed-off-by: Ravishankar N <ravishankar@redhat.com> Reviewed-on: http://review.gluster.org/13038 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-messages.h')
-rw-r--r--xlators/cluster/afr/src/afr-messages.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-messages.h b/xlators/cluster/afr/src/afr-messages.h
index 3483621d561..fca94eeff6b 100644
--- a/xlators/cluster/afr/src/afr-messages.h
+++ b/xlators/cluster/afr/src/afr-messages.h
@@ -40,7 +40,7 @@
*/
#define GLFS_COMP_BASE_AFR GLFS_MSGID_COMP_AFR
-#define GLFS_NUM_MESSAGES 39
+#define GLFS_NUM_MESSAGES 40
#define GLFS_MSGID_END (GLFS_COMP_BASE_AFR + GLFS_NUM_MESSAGES + 1)
#define glfs_msg_start_x GLFS_COMP_BASE_AFR, "Invalid: Start of messages"
@@ -342,5 +342,14 @@
#define AFR_MSG_REPLACE_BRICK_FAILED (GLFS_COMP_BASE_AFR + 39)
+/*!
+ * @messageid 108039
+ * @diagnosis AFR was unable to be loaded because the pending-changelog xattrs
+ * were not found in the volfile.
+ * @recommendedaction Please ensure cluster op-version is atleast 30707 and the
+ * volfiles are regenerated.
+*/
+#define AFR_MSG_NO_CHANGELOG (GLFS_COMP_BASE_AFR + 40)
+
#define glfs_msg_end_x GLFS_MSGID_END, "Invalid: End of messages"
#endif /* !_AFR_MESSAGES_H_ */