Hi,
I am using CloverETL 2.6 version for reading and loading the files into database. File locks are not released due to which I am not able to move the file to another folder. I tried investigating the issue and identified following issue in org.jetel.util.file.FileUtils class.
FileUtils. getInputStream method creates object on InputStream and if object is of type File then it creates new instance of FileInputStream
if (isFile) {
return new FileInputStream(url.getFile());
// RandomAccessFile raf = new RandomAccessFile(url.getFile()/*pridani kontextu*//*input*/, "r");
// return raf.getChannel();
}
But the lock acquired by inputStream object is not released as its close method is not called.