hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Joseph Evans (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-237) Refreshing the RM page forgets how many rows I had in my Datatables
Date Fri, 01 Mar 2013 19:15:13 GMT

    [ https://issues.apache.org/jira/browse/YARN-237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13590842#comment-13590842
] 

Robert Joseph Evans commented on YARN-237:
------------------------------------------

localStorage is not per page it is per domain, so that means if two pages in the same domain
have tables named the same they will share a config in local storage.  So for example if I
run a map/reduce job and I sort the map tasks by elapsed time, the reduce tasks will also
be sorted by elapsed time when I go to their page.  The good news is that if I sort the reduces
by an ID that the maps don't know about the maps page just ignores it, but it resets the sorting
for the reducers not too.

But this produces even stranger behavior in the counters page.  Because the counters use a
selector, multiple tables on the same page now all share a saved state.  So if I sort the
counters by a column and then reload all of the counters are now sorted by that column.

I am not positive what the best way is to fix these. We want to provide a way for each data
table to have a unique storage key across all tables in the domain, even with the selector.
 We don't want to use the page path or anything like that because that will create a new group
of settings per page, and that would result in filling up their localStorage, unless of course
we used the sessionStorage instead.  But using sessionStorage would mean that each time we
opened up a new session we would have to re-do the settings.  sessionStorage also does not
fix the issue with counters and the selector where we have multiple tables all sharing a single
ID and single storage.
                
> Refreshing the RM page forgets how many rows I had in my Datatables
> -------------------------------------------------------------------
>
>                 Key: YARN-237
>                 URL: https://issues.apache.org/jira/browse/YARN-237
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: resourcemanager
>    Affects Versions: 2.0.2-alpha, 0.23.4, 3.0.0
>            Reporter: Ravi Prakash
>            Assignee: jian he
>              Labels: usability
>         Attachments: YARN-237.patch
>
>
> If I choose a 100 rows, and then refresh the page, DataTables goes back to showing me
20 rows.
> This user preference should be stored in a cookie.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message