apache/spark — pull request #323 by dgshep (2014-04-04 03:00:11+00:00)
Title: [SPARK-1337] Garbage collect the oldest stages in the ui instead of the newest

Fix for SPARK-1337. Basically remove elements from the beginning (oldest) rather than the end (newest) of the stages list. Added some tests for basic correctness as well.