Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
1.1.4, 1.1.5
-
None
-
None
-
Windows 10, Ubuntu 18.04, CentOS 7
-
2018-15
Description
This example fails through ColumnStoreBulkInsert not being manually garbage collected.
The automated garbage collection doesn't work either and is reported in MCOL-1407.
import com.mariadb.columnstore.api.*; |
|
public class MCSAPITest { |
|
public static void main(String[] args) { |
ColumnStoreDriver d = new ColumnStoreDriver(); |
for(int i=0; i<Integer.MAX_VALUE; i++){ |
ColumnStoreBulkInsert b = d.createBulkInsert("test", "garbage_test", (short)0, 0); |
try{ |
b.setColumn(0, i); |
b.setColumn(1, Integer.MAX_VALUE-i); |
b.writeRow();
|
b.commit();
|
} catch(ColumnStoreException e){ |
b.rollback();
|
e.printStackTrace();
|
} finally{ |
b.delete();
|
}
|
}
|
}
|
}
|
Attachments
Issue Links
- relates to
-
MCOL-1407 mcsapi memory leak - destructor not called from swig generated code
- Closed