Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-1996

javamcsapi - memory leak during injection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.6, 1.2.2
    • Fix Version/s: N/A
    • Component/s: mcsapi
    • Labels:
      None
    • Environment:
      all

      Description

      javamcsapi has a memory leak. I assume that some Swig objects aren't garbage collected.

      Memory leak is around ~900MiB for following example injection.

      import com.mariadb.columnstore.api.*;
       
      public class MCSAPITest {
       
              public static void main(String[] args) {
              ColumnStoreDriver d = new ColumnStoreDriver();
              ColumnStoreBulkInsert b = d.createBulkInsert("test", "t1", (short)0, 0);
              long rows = 100000000;
              try {
                  for(long i=0; i < rows; i++){
                      b.setColumn(0, i);
                      b.setColumn(1, rows-i);
                      if (i % 1000 == 0){
                         System.out.println(i);
                      }
                      b.writeRow();
                  }
                  b.commit();
              }
              catch (ColumnStoreException e) {
                  b.rollback();
                  e.printStackTrace();
              }
          }
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jens.rowekamp Jens Röwekamp (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration