Red Hat Bugzilla – Bug 782262
provide an option to create volume files with more debug translators in the graph.
Last modified: 2013-12-18 19:07:19 EST
Description of problem:
Currently there is no proper way to have debug/* translators in the graph through CLI. Adding such an option would be very helpful to debug issues and for QE.
CHANGE: http://review.gluster.com/776 (volgen: give an option to insert trace/error-gen) merged in master by Vijay Bellur (firstname.lastname@example.org)
The options provided by this patchset is for enabling either trace or error-gen translator on the brick vol file.
$ gluster volume set <VOLNAME> trace <translator-name>
$ gluster volume set <VOLNAME> error-gen <translator-name>
here <translator-name> can be one of 'posix', 'locks', 'io-threads', 'acl', "marker", "index", upon which, the given debug translator is added to the the graph above the given type of translator.
Verified it on 3.3.0qa45 build. It works fine for all the 6 xlators mentioned above.
Currently there is no validation for the command. Accepts any string in place of <translator-name>. Will file a new bug for that.
CHANGE: http://review.gluster.com/3699 (volgen: add option to add trace/error-gen in client volume file) merged in master by Anand Avati (email@example.com)