Re: [devel] [PATCH 1/1] imm: prioritize to elect IMMND on the active node [#2862]

2018-06-25 Thread Hans Nordeback
Hi Vu, ack, review only. (The indentation is still not correct). /Thanks HansN On 06/20/2018 08:28 AM, Vu Minh Nguyen wrote: The coordinator IMMND on PL-3 was crashed, the active IMMD then elected the new coordinator on the standby node, SC-2, but failed because IMMND on the SC-2 was

[devel] [PATCH 1/1] imm: prioritize to elect IMMND on the active node [#2862]

2018-06-20 Thread Vu Minh Nguyen
The coordinator IMMND on PL-3 was crashed, the active IMMD then elected the new coordinator on the standby node, SC-2, but failed because IMMND on the SC-2 was restarted also. As the result, the active IMMD exited and failure-over happened. After that, SC-2 took active role and found no candidate

Re: [devel] [PATCH 1/1] imm: prioritize to elect IMMND on the active node [#2862]

2018-06-19 Thread Vu Minh Nguyen
Hi Hans, Thanks for your comments. See my responses inline. - the indentation is not correct after the first while stmt. [Vu] Yes, you are right. I will correct it in V2 patch. - why adding a new similar while loop? Instead remove the newly added while loop and change the first while loop

Re: [devel] [PATCH 1/1] imm: prioritize to elect IMMND on the active node [#2862]

2018-06-15 Thread Hans Nordeback
Hi Vu, the formatting of the code was not so good, a new attempt below: } else {       /* Try to elect a new coord. */       IMMD_IMMND_INFO_NODE *candidate_coord_node = 0;       cb->payload_coord_dest = 0LL;       memset(, 0, sizeof(MDS_DEST));       immd_immnd_info_node_getnext(>immnd_tree, ,  

Re: [devel] [PATCH 1/1] imm: prioritize to elect IMMND on the active node [#2862]

2018-06-15 Thread Hans Nordeback
Hi Vu, a few comments, - the indentation is not correct after the first while stmt. - why adding a new similar while loop? Instead remove the newly added while loop and change the first while loop to something like this (not tested though): } else{ /* Try to elect a new coord. */

[devel] [PATCH 1/1] imm: prioritize to elect IMMND on the active node [#2862]

2018-05-22 Thread Vu Minh Nguyen
Here is the case: The coordinator IMMND on PL-3 was crashed, the active IMMD then elected the new coordinator on the standby node SC-2 but failed because IMMND on the SC-2 was also restarted. As the result, the active IMMD exited and failure-over happened. After that, SC-2 took active role and