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

CS provides incorrect path in logs to bad and err files when using load data infile

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 5.5.2
    • cpimport
    • None

    Description

      I am trying to load a dump created by "mysqldump -T ..." and CS is throwing error -1 during the load process. I am using the LOAD DATA INFILE command, no using cpimport directly.
      MariaDB [(none)]> load data infile '/tmp/user.txt' into table quser fields terminated by "\t" enclosed by '"';
      ERROR 1030 (HY000): Got error -1 "Internal error < 0 (Not system error)" from storage engine Columnstore

      Looking at the logs I see:
      {{2017-02-15 13:58:58 (3379) INFO : Number of rows with errors = 1. Row numbers with error reasons are listed in file /usr/local/mariadb/columnstore/bin/quser.tbl.Job_3626_3379.err
      2017-02-15 13:58:58 (3379) INFO : Number of rows with errors = 1. Exact error rows are listed in file /usr/local/mariadb/columnstore/bin/quser.tbl.Job_3626_3379.bad
      2017-02-15 13:58:58 (3379) ERR : Actual error row count(1) exceeds the max error rows(0) allowed for table quantum.quser [1451]
      2017-02-15 13:58:58 (3379) CRIT : Bulkload Read (thread 0) Failed for Table quantum.quser. Terminating this job. [1451]
      2017-02-15 13:58:58 (3379) INFO : Bulk load completed, total run time : 618.577 seconds
      }}

      However the files mentioned in the above error can not be found on the filesystem:
      {{# ls /usr/local/mariadb/columnstore/bin/quser.tbl.Job_3626_3379.err
      ls: cannot access '/usr/local/mariadb/columnstore/bin/quser.tbl.Job_3626_3379.err': No such file or directory

      root@qfarm-dev2:/usr/local/mariadb/columnstore# ls /usr/local/mariadb/columnstore/bin/quser.tbl.Job_3626_3379.bad
      ls: cannot access '/usr/local/mariadb/columnstore/bin/quser.tbl.Job_3626_3379.bad': No such file or directory}}

      Attachments

        Issue Links

          Activity

            jswanhart Justin Swanhart (Inactive) created issue -

            The files appear to be created in a different location and they have an _1 suffix:
            root@qfarm-dev2:/usr/local/mariadb# find . -name quser*
            ./columnstore/mysql/db/quser.tbl.Job_3626_3379.err_1
            ./columnstore/mysql/db/quantum/quser.frm
            ./columnstore/mysql/db/quser.tbl.Job_3626_22179.bad_1
            ./columnstore/mysql/db/quser.tbl.Job_3626_3379.bad_1
            ./columnstore/mysql/db/quser.tbl.Job_3626_22179.err_1

            jswanhart Justin Swanhart (Inactive) added a comment - The files appear to be created in a different location and they have an _1 suffix: root@qfarm-dev2:/usr/local/mariadb# find . -name quser* ./columnstore/mysql/db/quser.tbl.Job_3626_3379.err_1 ./columnstore/mysql/db/quantum/quser.frm ./columnstore/mysql/db/quser.tbl.Job_3626_22179.bad_1 ./columnstore/mysql/db/quser.tbl.Job_3626_3379.bad_1 ./columnstore/mysql/db/quser.tbl.Job_3626_22179.err_1
            dthompson David Thompson (Inactive) added a comment - - edited

            By default LDI is internally converted to a cpimport job and thus it uses the cpimport style file names and the files are created under the mysql/db directory.
            This can be disabled but leads to slower performance due to the DML path being followed. https://mariadb.com/kb/en/mariadb/columnstore-batch-insert-mode/ documents how to disable this.

            Also the LDI kb article (https://mariadb.com/kb/en/mariadb/columnstore-load-data-infile/) did not cover this so have added a section at the end to document where the bad and err files are written to.

            dthompson David Thompson (Inactive) added a comment - - edited By default LDI is internally converted to a cpimport job and thus it uses the cpimport style file names and the files are created under the mysql/db directory. This can be disabled but leads to slower performance due to the DML path being followed. https://mariadb.com/kb/en/mariadb/columnstore-batch-insert-mode/ documents how to disable this. Also the LDI kb article ( https://mariadb.com/kb/en/mariadb/columnstore-load-data-infile/ ) did not cover this so have added a section at the end to document where the bad and err files are written to.
            dthompson David Thompson (Inactive) made changes -
            Field Original Value New Value
            Fix Version/s N/A [ 22302 ]
            Assignee David Thompson [ dthompson ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]

            my point is the log files point to files that don't exist. You read the log file, it says go look HERE for output and that output doesn't exist.

            This should be an open bug.

            jswanhart Justin Swanhart (Inactive) added a comment - my point is the log files point to files that don't exist. You read the log file, it says go look HERE for output and that output doesn't exist. This should be an open bug.

            Good point, agreed.

            dthompson David Thompson (Inactive) added a comment - Good point, agreed.
            dthompson David Thompson (Inactive) made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Stalled [ 10000 ]
            dthompson David Thompson (Inactive) made changes -
            Summary CS does not actually create log files with rejected rows during loading CS provides incorrect path in logs to bad and err files when using load data infile
            dthompson David Thompson (Inactive) made changes -
            Priority Critical [ 2 ] Major [ 3 ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            toddstoffel Todd Stoffel (Inactive) made changes -
            Fix Version/s 1.5 [ 22800 ]
            Fix Version/s N/A [ 22302 ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            toddstoffel Todd Stoffel (Inactive) made changes -
            Epic Link MCOL-1049 [ 64464 ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Assignee David Thompson [ dthompson ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            toddstoffel Todd Stoffel (Inactive) made changes -
            Team ColumnStore Team
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            toddstoffel Todd Stoffel (Inactive) made changes -
            Fix Version/s 5.6.1 [ 25031 ]
            Fix Version/s 1.5 [ 22800 ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked lower
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            toddstoffel Todd Stoffel (Inactive) made changes -
            toddstoffel Todd Stoffel (Inactive) made changes -
            Assignee Ben Thompson [ ben.thompson ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            toddstoffel Todd Stoffel (Inactive) made changes -
            toddstoffel Todd Stoffel (Inactive) made changes -
            Status Stalled [ 10000 ] Confirmed [ 10101 ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Sprint 2021-1 [ 480 ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            David.Hall David Hall (Inactive) made changes -
            Fix Version/s 5.5.2 [ 25601 ]
            gdorman Gregory Dorman (Inactive) made changes -
            Fix Version/s 5.6.1 [ 25031 ]
            gdorman Gregory Dorman (Inactive) made changes -
            Sprint 2021-1 [ 480 ] 2021-1, 2021-2 [ 480, 481 ]
            ben.thompson Ben Thompson (Inactive) made changes -
            Status Confirmed [ 10101 ] In Progress [ 3 ]

            While fixing MCOL-4483 and logging path issues. went ahead and removed the logging that shows up from cpimport.bin that gives a path to a temp log file that is sent back to cpimport. cpimport reports the correct path to the file.bad_[pmID] that is useful to users.

            ben.thompson Ben Thompson (Inactive) added a comment - While fixing MCOL-4483 and logging path issues. went ahead and removed the logging that shows up from cpimport.bin that gives a path to a temp log file that is sent back to cpimport. cpimport reports the correct path to the file.bad_ [pmID] that is useful to users.
            gdorman Gregory Dorman (Inactive) made changes -
            Sprint 2021-1, 2021-2 [ 480, 481 ] 2021-1, 2021-2, 2021-3 [ 480, 481, 498 ]
            ben.thompson Ben Thompson (Inactive) made changes -
            Assignee Ben Thompson [ ben.thompson ] Roman [ drrtuy ]
            Status In Progress [ 3 ] In Review [ 10002 ]

            Fixed as part of MCOL-4483

            David.Hall David Hall (Inactive) added a comment - Fixed as part of MCOL-4483
            David.Hall David Hall (Inactive) made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10002 ] Closed [ 6 ]

            People

              drrtuy Roman
              jswanhart Justin Swanhart (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.