Liquibase does not close inputstream when parsing yaml files
Description
Environment
Java 8/Windows
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
Attachments
1
- 21 Nov 2016, 12:20 AM
Activity
Show:

Amir Khassaia November 21, 2016 at 12:21 AM
I've attached a proposed patch to the file in question against 3.5.x branch
Details
Details
Created November 16, 2016 at 4:22 AM
Updated November 21, 2016 at 12:21 AM
This is similar to https://liquibase.jira.com/browse/CORE-2806#icft=CORE-2806
It appears liquibase.parser.core.yaml.YamlChangeLogParser#parse method opens a FileInputStream via:
InputStream changeLogStream = StreamUtil.singleInputStream(physicalChangeLogLocation, resourceAccessor);
But never closes it, leaving the file handle around