<feed xmlns='http://www.w3.org/2005/Atom'>
<title>glusterfs.git/xlators/features/marker/utils/syncdaemon/master.py, branch v3.3.0qa4</title>
<subtitle></subtitle>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/'/>
<entry>
<title>gsyncd: do some basic sanitization on logs</title>
<updated>2011-07-29T12:24:43+00:00</updated>
<author>
<name>Csaba Henk</name>
<email>csaba@gluster.com</email>
</author>
<published>2011-07-12T22:52:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=a13fbaca0512cae3853a2372d0d8237eb24dd225'/>
<id>a13fbaca0512cae3853a2372d0d8237eb24dd225</id>
<content type='text'>
- exceptions raised by us will be logged as single-line error messages
  (full stack strace is shown only at DEBUG loglevel)
- common/well understood exceptions are mapped to "user-parsable" error logs

Change-Id: I75f1fb848483372364b2093878d9cfed576c9739
BUG: 2778
Reviewed-on: http://review.gluster.com/125
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Anand Avati &lt;avati@gluster.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- exceptions raised by us will be logged as single-line error messages
  (full stack strace is shown only at DEBUG loglevel)
- common/well understood exceptions are mapped to "user-parsable" error logs

Change-Id: I75f1fb848483372364b2093878d9cfed576c9739
BUG: 2778
Reviewed-on: http://review.gluster.com/125
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Anand Avati &lt;avati@gluster.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>geo-rep: compactify logging</title>
<updated>2011-07-28T09:57:18+00:00</updated>
<author>
<name>Csaba Henk</name>
<email>csaba@gluster.com</email>
</author>
<published>2011-07-11T12:57:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=06af690050b5b0ca4da34d4c89fda3d3deffe908'/>
<id>06af690050b5b0ca4da34d4c89fda3d3deffe908</id>
<content type='text'>
Change-Id: I19f6cf539289062b39e3c0f73fa88f4ff9488349
BUG: 2778
Reviewed-on: http://review.gluster.com/80
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Kaushik BV &lt;kaushikbv@gluster.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I19f6cf539289062b39e3c0f73fa88f4ff9488349
BUG: 2778
Reviewed-on: http://review.gluster.com/80
Tested-by: Gluster Build System &lt;jenkins@build.gluster.com&gt;
Reviewed-by: Kaushik BV &lt;kaushikbv@gluster.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>syncdaemon: some refactor on monitor</title>
<updated>2011-05-09T20:27:03+00:00</updated>
<author>
<name>Csaba Henk</name>
<email>csaba@gluster.com</email>
</author>
<published>2011-04-29T06:24:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=6f2ed82bfcfe494ef273bff55cf69480a7472cc5'/>
<id>6f2ed82bfcfe494ef273bff55cf69480a7472cc5</id>
<content type='text'>
- detect faulty state early
- keep the feedback fd in gsyncd module

Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Anand Avati &lt;avati@gluster.com&gt;

BUG: 2537 (gsync autorestart)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2537
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- detect faulty state early
- keep the feedback fd in gsyncd module

Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Anand Avati &lt;avati@gluster.com&gt;

BUG: 2537 (gsync autorestart)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2537
</pre>
</div>
</content>
</entry>
<entry>
<title>syncdaemon: have the monitor kill the worker if it does not connect in 60 sec</title>
<updated>2011-04-22T11:05:20+00:00</updated>
<author>
<name>Csaba Henk</name>
<email>csaba@gluster.com</email>
</author>
<published>2011-04-21T16:43:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=775323c1b2fa9a557d3ea74d57e843575f7b1278'/>
<id>775323c1b2fa9a557d3ea74d57e843575f7b1278</id>
<content type='text'>
Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Anand Avati &lt;avati@gluster.com&gt;

BUG: 2736 (gsyncd hangs if crash occurs in the non-main thread)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2736
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Anand Avati &lt;avati@gluster.com&gt;

BUG: 2736 (gsyncd hangs if crash occurs in the non-main thread)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2736
</pre>
</div>
</content>
</entry>
<entry>
<title>syncdaemon: force termination for unhandled exception in any thread</title>
<updated>2011-04-13T11:43:06+00:00</updated>
<author>
<name>Csaba Henk</name>
<email>csaba@gluster.com</email>
</author>
<published>2011-04-13T01:46:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=e5c38128fa76b3e11047d49448aab77d3a551804'/>
<id>e5c38128fa76b3e11047d49448aab77d3a551804</id>
<content type='text'>
Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Anand Avati &lt;avati@gluster.com&gt;

BUG: 2736 (gsyncd hangs if crash occurs in the non-main thread)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2736
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Anand Avati &lt;avati@gluster.com&gt;

BUG: 2736 (gsyncd hangs if crash occurs in the non-main thread)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2736
</pre>
</div>
</content>
</entry>
<entry>
<title>syncdaemon: streamline user-visible messages (and control flow a bit, too)</title>
<updated>2011-04-13T11:43:02+00:00</updated>
<author>
<name>Csaba Henk</name>
<email>csaba@gluster.com</email>
</author>
<published>2011-04-13T01:46:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=13d1856a40122008dee35a96771f832945c220f8'/>
<id>13d1856a40122008dee35a96771f832945c220f8</id>
<content type='text'>
Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Anand Avati &lt;avati@gluster.com&gt;

BUG: 2644 (no volume-mark, if the behaviour persists have to check if master gsyncd is running.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2644
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Anand Avati &lt;avati@gluster.com&gt;

BUG: 2644 (no volume-mark, if the behaviour persists have to check if master gsyncd is running.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2644
</pre>
</div>
</content>
</entry>
<entry>
<title>syncdaemon: minor fixes</title>
<updated>2011-04-13T11:42:44+00:00</updated>
<author>
<name>Csaba Henk</name>
<email>csaba@gluster.com</email>
</author>
<published>2011-04-13T01:46:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=c0139158ae8992513e93932d8670b5db8605ead2'/>
<id>c0139158ae8992513e93932d8670b5db8605ead2</id>
<content type='text'>
- whitespace fix
- remove superfluous imports

Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Anand Avati &lt;avati@gluster.com&gt;

BUG: 1570 (geosync related changes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- whitespace fix
- remove superfluous imports

Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Anand Avati &lt;avati@gluster.com&gt;

BUG: 1570 (geosync related changes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570
</pre>
</div>
</content>
</entry>
<entry>
<title>syncdaemon: fix setting None as new master</title>
<updated>2011-04-11T10:52:25+00:00</updated>
<author>
<name>Csaba Henk</name>
<email>csaba@gluster.com</email>
</author>
<published>2011-04-11T04:09:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=dd3cc7d398c3b4432097b7cc2716e2afec9a8e47'/>
<id>dd3cc7d398c3b4432097b7cc2716e2afec9a8e47</id>
<content type='text'>
We checked for the event of a new master being adopted by:
- checking for state change in list of masters
- checking if our chosen master is a foreign one
and if these held, then wrote out the actually available master to config

However this was flaky: if
(1) native master changed
(2) there was already a foreign master adopted
(3) actually the master was not available
then we wrote out the None to config.

This could occur if:
- on syncd startup, native master just changes from None to the volume native
  [implies (1)]
- foreign master adopted from earlier run via config [implies (2)]
- actually foreign master was not available [implies (3)]

Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Anand Avati &lt;avati@gluster.com&gt;

BUG: 2670 (strange behaviour with intermediate-master and slave)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2670
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We checked for the event of a new master being adopted by:
- checking for state change in list of masters
- checking if our chosen master is a foreign one
and if these held, then wrote out the actually available master to config

However this was flaky: if
(1) native master changed
(2) there was already a foreign master adopted
(3) actually the master was not available
then we wrote out the None to config.

This could occur if:
- on syncd startup, native master just changes from None to the volume native
  [implies (1)]
- foreign master adopted from earlier run via config [implies (2)]
- actually foreign master was not available [implies (3)]

Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Anand Avati &lt;avati@gluster.com&gt;

BUG: 2670 (strange behaviour with intermediate-master and slave)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2670
</pre>
</div>
</content>
</entry>
<entry>
<title>syncdaemon: add monitor mode to support autorestart</title>
<updated>2011-04-04T15:02:27+00:00</updated>
<author>
<name>Csaba Henk</name>
<email>csaba@lowlife.hu</email>
</author>
<published>2011-04-02T19:40:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=01b3dff29adee2041b0ef1b374eda8c88fb07678'/>
<id>01b3dff29adee2041b0ef1b374eda8c88fb07678</id>
<content type='text'>
Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Vijay Bellur &lt;vijay@dev.gluster.com&gt;

BUG: 2537 (gsync autorestart)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2537
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Vijay Bellur &lt;vijay@dev.gluster.com&gt;

BUG: 2537 (gsync autorestart)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2537
</pre>
</div>
</content>
</entry>
<entry>
<title>syncdaemon: give some refactoring to cascading code</title>
<updated>2011-04-04T15:02:18+00:00</updated>
<author>
<name>Csaba Henk</name>
<email>csaba@gluster.com</email>
</author>
<published>2011-04-02T19:40:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/glusterfs.git/commit/?id=cfb9c834f96dc57c47dac8d27da4266d0dab1f3f'/>
<id>cfb9c834f96dc57c47dac8d27da4266d0dab1f3f</id>
<content type='text'>
- expiry check of foreign volinfo moved back to GLUSTERServer,
  so that under the hood we can removexattr the expired ones;
  a nice side-effect is that we can use the same dict layout
  for foreign and native volinfo (ie., foreign needs no
  timeout field)
- get_volinfo() is renamed to get_sys_volinfo() and most of the logic
  is stripped off of it (what remained there is the check
  against foreign master ambiguity)
- volinfo transition logic is cut out to an almost purely functional
  static method (only impurity is the exeption raised upon
  forbidden volinfo change)
- ping renamed to keep-alive, as something called "ping" is
  not supposed to have payload (yeah, keep-alive is a bit fishy
  on this front too, but could not come up with better...)

Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Vijay Bellur &lt;vijay@dev.gluster.com&gt;

BUG: 2535 (gsync cascading)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2535
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- expiry check of foreign volinfo moved back to GLUSTERServer,
  so that under the hood we can removexattr the expired ones;
  a nice side-effect is that we can use the same dict layout
  for foreign and native volinfo (ie., foreign needs no
  timeout field)
- get_volinfo() is renamed to get_sys_volinfo() and most of the logic
  is stripped off of it (what remained there is the check
  against foreign master ambiguity)
- volinfo transition logic is cut out to an almost purely functional
  static method (only impurity is the exeption raised upon
  forbidden volinfo change)
- ping renamed to keep-alive, as something called "ping" is
  not supposed to have payload (yeah, keep-alive is a bit fishy
  on this front too, but could not come up with better...)

Signed-off-by: Csaba Henk &lt;csaba@gluster.com&gt;
Signed-off-by: Vijay Bellur &lt;vijay@dev.gluster.com&gt;

BUG: 2535 (gsync cascading)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2535
</pre>
</div>
</content>
</entry>
</feed>
