Skip to content
Snippets Groups Projects
Unverified Commit 22a9d064 authored by wm624@hotmail.com's avatar wm624@hotmail.com Committed by Sean Owen
Browse files

[SPARK-14914][CORE] Fix Resource not closed after using, for unit tests and example

## What changes were proposed in this pull request?

This is a follow-up work of #15618.

Close file source;
For any newly created streaming context outside the withContext, explicitly close the context.

## How was this patch tested?

Existing unit tests.

Author: wm624@hotmail.com <wm624@hotmail.com>

Closes #15818 from wangmiao1981/rtest.
parent 96a59109
No related branches found
No related tags found
No related merge requests found
Showing with 30 additions and 2 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment