[MB-4756] If Fail Over is in progress and node goes offline, UI looks/acts strangely Created: 03/Feb/12  Updated: 07/Sep/12  Resolved: 29/Aug/12

Status: Resolved
Project: Couchbase Server
Component/s: ns_server, UI
Affects Version/s: 2.0-developer-preview-3, 2.0-developer-preview-4
Fix Version/s: 2.0-beta
Security Level: Public

Type: Bug Priority: Major
Reporter: Benjamin Young Assignee: Pavel Blagodov
Resolution: Fixed Votes: 0
Labels: customer
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen shot 2012-02-03 at 10.19.02 AM.png     PNG File Screen shot 2012-02-03 at 10.19.07 AM.png    

 Description   
It seems the JS for this section is prioritizing the fact that the node was going to be failed over above the fact that the node is no longer available.

I'm not sure what the server-side logic relationship is in this situation, but hopefully it's just a matter of re-prioritizing some conditions in the UI JS.

 Comments   
Comment by Aleksey Kondratenko [ 03/Feb/12 ]
I need more details
Comment by Benjamin Young [ 03/Feb/12 ]
./cluster_run -n 2 --host=127.0.0.1
./cluster_connect -n 2

Then, in the UI, click "Fail Over" for one of the nodes.

Then Ctrl+C your ./cluster_run process, and restart it with
./cluster_run -n 1 --host=127.0.0.1

Reload the Server List screen.

I'll upload screenshots shortly.
Comment by Benjamin Young [ 03/Feb/12 ]
Active Servers list with the node marked for "Fail Over" after it's been taken "forcably" offline prior to rebalancing.
Comment by Benjamin Young [ 03/Feb/12 ]
Pending Rebalance scenario.
Comment by Aleksey Kondratenko [ 03/Feb/12 ]
so weird thing is NaN? I don't see anything else there
Comment by Benjamin Young [ 03/Feb/12 ]
The servers down, not pending. The host name is missing from the Pending Rebalance list.
Comment by Aleksey Kondratenko [ 03/Feb/12 ]
so two bugs. First that pending is somehow used. We have ongoing work to untangle node's health and it's warmup status.

Second is that name is missing in second tab. Thanks for finding it.
Comment by Aleksey Kondratenko [ 21/Aug/12 ]
May be partly fixed already
Comment by Pavel Blagodov [ 29/Aug/12 ]
http://review.couchbase.org/20298
Comment by Thuan Nguyen [ 07/Sep/12 ]
Integrated in github-ns-server-2-0 #461 (See [http://qa.hq.northscale.net/job/github-ns-server-2-0/461/])
    MB-4756: fixed server down state (Revision 5ec376241ca924ccc8d45b214c50d9daf64901bb)

     Result = SUCCESS
pwansch :
Files :
* priv/public/js/core-data.js
* priv/public/index.html
Generated at Thu Jul 10 12:53:01 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.