Skip to content

Conversation

@shimingfei
Copy link

externalBlockStoreInitialized is never set to be true, which causes the blocks stored in ExternalBlockStore can not be removed.

@zsxwing
Copy link
Member

zsxwing commented Jun 8, 2015

Good catch. LGTM

@SparkQA
Copy link

SparkQA commented Jun 8, 2015

Test build #34429 has finished for PR 6702 at commit add61d8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@andrewor14
Copy link
Contributor

@aarondav

@squito
Copy link
Contributor

squito commented Jun 9, 2015

should we add some tests in BlockManagerSuite to prevent future regressions? There is already a test "removing block", but it doesn't check that the blocks are actually removed in the underlying stores.

@shimingfei
Copy link
Author

@squito
this bug only exists in ExternalBlockStore, which is pluggable. And to test it, we need to run the external storage system locally in the test case, which is a bit complicated.

@shimingfei
Copy link
Author

ping....

@shimingfei
Copy link
Author

@andrewor14 @aarondav
Can you take a look? Thanks!

@shimingfei
Copy link
Author

ping .......

@zsxwing
Copy link
Member

zsxwing commented Jun 17, 2015

@shimingfei I think people are busy with Spark Summit.

@shimingfei
Copy link
Author

OK, I see. Thanks.

@andrewor14
Copy link
Contributor

LGTM. I agree we should have a regression test, but we shouldn't block the fix on it. The code before was clearly wrong since we never set the flag to true.

@aarondav
Copy link
Contributor

LGMT

@andrewor14
Copy link
Contributor

Merging into master 1.4

asfgit pushed a commit that referenced this pull request Jun 17, 2015
…rnalBlockStore is initialized

externalBlockStoreInitialized is never set to be true, which causes the blocks stored in ExternalBlockStore can not be removed.

Author: Mingfei <[email protected]>

Closes #6702 from shimingfei/SetTrue and squashes the following commits:

add61d8 [Mingfei] Set externalBlockStoreInitialized to be true, after ExternalBlockStore is initialized

(cherry picked from commit 7ad8c5d)
Signed-off-by: Andrew Or <[email protected]>
@asfgit asfgit closed this in 7ad8c5d Jun 17, 2015
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
…rnalBlockStore is initialized

externalBlockStoreInitialized is never set to be true, which causes the blocks stored in ExternalBlockStore can not be removed.

Author: Mingfei <[email protected]>

Closes apache#6702 from shimingfei/SetTrue and squashes the following commits:

add61d8 [Mingfei] Set externalBlockStoreInitialized to be true, after ExternalBlockStore is initialized
@shimingfei shimingfei deleted the SetTrue branch October 19, 2015 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants