[DCOS_OSS-1890] Service > Instances pulsing forever when /mesos/master/state is large Created: 22/Nov/17  Updated: 09/Nov/18  Resolved: 04/Oct/18

Status: Resolved
Project: DC/OS
Component/s: dcos-ui
Affects Version/s: DC/OS 1.10.1
Fix Version/s: DC/OS 1.11.6, DC/OS 1.12.0

Type: Bug Priority: Medium
Reporter: yleong Assignee: Unassigned
Resolution: Duplicate  
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File chrome_2017-11-20_16-38-15.png     PNG File instances_not_loading.PNG    
Team: DELETE Frontend (Mesosphere) Team


Clicking on Services > Instances can result in the tab pulsing forever and not loading.


When logging into the UI and clicking Services, there will be an XHR call fetchState() to /mesos/master/state?_timestamp=xxxxxx

On a largish cluster with a slowish client connection, this XHR call can take a while.

Example from my customer's cluster with a slow client connection, it took 28 seconds

`time curl -vkL -H … https://<master>/mesos/master/state?_timestamp=1511366906328 >out 2>err`

gives result of
real    0m28.839s with stdout of size 2.1m and stderr of size 4.1k

This exceeds the timeout of 2000 milliseconds set at https://github.com/dcos/dcos-ui/blob/master/src/js/events/MesosStateActions.js#L15

As a result, the XHR call fails and the Instances tab never loads to completion.

I have increased the timeout to a more generous 200000 milliseconds and the issue went away and we could load the Instances tab just fine.

Generated at Fri May 20 12:12:28 CDT 2022 using JIRA 7.8.4#78004-sha1:5704c55c9196a87d91490cbb295eb482fa3e65cf.