[SPARK-4102] Remove unused ShuffleReader.stop() method.#2966
[SPARK-4102] Remove unused ShuffleReader.stop() method.#2966kayousterhout wants to merge 2 commits intoapache:masterfrom
Conversation
This method is not implemented by the only subclass (HashShuffleReader), nor is it ever called. While the use of Scala's fancy "???" was pretty exciting, the method's existence can only lead to confusion and it therefore should be deleted.
|
Test build #22310 has started for PR 2966 at commit
|
|
Test build #22310 has finished for PR 2966 at commit
|
|
Test PASSed. |
|
IMO we should keep this because it will be needed for other shuffle managers that launch threads. Because this is a developer API (where other people may plug in their own shuffle managers), we can't add it back later without breaking their code. |
|
BTW the ??? should indeed be changed to {}, it's weird that it says not implemented. |
|
But if other shuffle managers implement this, it won't ever be called, On Mon, Oct 27, 2014 at 5:02 PM, Matei Zaharia notifications@github.com
|
|
As discussed offline with @mateiz, added back a commented-out version of the stop() method for use if/when this someday becomes a developer API |
|
Test build #22477 has started for PR 2966 at commit
|
|
Test build #22477 has finished for PR 2966 at commit
|
|
Test PASSed. |
|
LGTM |
This method is not implemented by the only subclass
(HashShuffleReader), nor is it ever called. While the
use of Scala's fancy "???" was pretty exciting, the method's
existence can only lead to confusion and it therefore should
be deleted.
@mateiz was there a reason for adding this that I'm
missing?