Project

General

Profile

Bug #7701

The InputStream (parameter) in the CN/MN.create and MN.update method is not closed

Added by Jing Tao almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Metacat
Target version:
Start date:
2016-03-29
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

There is a parameter in the in the CN/MN.create and MN.update method. We don't close it in the implementation. It may cause the resource leaking.

History

#1 Updated by Jing Tao almost 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

We close it on the D1NodeService.insertOrUpdateDocument ( for a science metadata object) or D1NodeService.writeStreamToFile ( for a data object) by IOUtils.closeQuietly method.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)