apache/spark — pull request #3575 by zsxwing (2014-12-03 08:02:14+00:00)
Title: Make sure tryToAcquire won't return a negative value

ShuffleMemoryManager.tryToAcquire may return a negative value. The unit test demonstrates this bug. It will output `0 did not equal -200 granted is negative`.