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

javamcsapi ColumnStoreBulkInsert can't manually be garbage collected

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 1.1.4, 1.1.5
    • 1.1.6
    • 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

          Activity

            People

              dleeyh Daniel Lee (Inactive)
              jens.rowekamp Jens Röwekamp (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.