Skip to content

File.deleteOnExit()#3923

Merged
gianm merged 3 commits intoapache:masterfrom
akashdw:ioPeon
Feb 13, 2017
Merged

File.deleteOnExit()#3923
gianm merged 3 commits intoapache:masterfrom
akashdw:ioPeon

Conversation

@akashdw
Copy link
Copy Markdown
Contributor

@akashdw akashdw commented Feb 10, 2017

Addresses #3885

  • Removed deleteOnExit() from most of the classes except few(classes which heavily depend on this method).
    -> ReplayableFirehose
    -> SchemalessIndexTest
    -> SpatialFilterBonusTest
    -> SpatialFilterTest
    -> DeterminePartitionsJobTest.java

  • Made IOpeon closable

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this method still used ? if not we can remove it thought ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or why not just renaming it close ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not used anywhere, Removing it.

 * removed deleteOnExit from most of the tests/benchmarks/iopeon
 * Made IOpeon closable
@akashdw
Copy link
Copy Markdown
Contributor Author

akashdw commented Feb 10, 2017

Thanks @b-slim. Addressed comments.

@b-slim
Copy link
Copy Markdown
Contributor

b-slim commented Feb 10, 2017

👍

@gianm gianm added this to the 0.10.0 milestone Feb 13, 2017
@gianm gianm merged commit 8854ce0 into apache:master Feb 13, 2017
leventov pushed a commit to metamx/druid that referenced this pull request Mar 3, 2017
* Less use of File.deleteOnExit()
 * removed deleteOnExit from most of the tests/benchmarks/iopeon
 * Made IOpeon closable

* Formatting.

* Revert DeterminePartitionsJobTest, remove cleanup method from IOPeon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants