[ https://issues.apache.org/jira/browse/DRILL-4831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15671016#comment-15671016 ]
ASF GitHub Bot commented on DRILL-4831: --------------------------------------- GitHub user ppadma opened a pull request: https://github.com/apache/drill/pull/653 DRILL-4831: Running refresh table metadata concurrently randomly fail… …s with JsonParseException To prevent metadata cache files from getting corrupted, write to a temporary file and do rename at the end. All unit and regression tests pass. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ppadma/drill DRILL-4831 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/drill/pull/653.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #653 ---- commit fec9b7ee468cda73dec27f475069898d763fa1c7 Author: Padma Penumarthy <ppenuma...@yahoo.com> Date: 2016-10-20T12:03:13Z DRILL-4831: Running refresh table metadata concurrently randomly fails with JsonParseException ---- > Running refresh table metadata concurrently randomly fails with > JsonParseException > ---------------------------------------------------------------------------------- > > Key: DRILL-4831 > URL: https://issues.apache.org/jira/browse/DRILL-4831 > Project: Apache Drill > Issue Type: Bug > Components: Metadata > Affects Versions: 1.8.0 > Reporter: Rahul Challapalli > Assignee: Padma Penumarthy > Attachments: error.log, l_3level.tgz > > > git.commit.id.abbrev=f476eb5 > Just run the below command concurrently from 10 different JDBC connections. > There is a likelihood that you might encounter the below error > Extracts from the log > {code} > Caused By (java.lang.AssertionError) Internal error: Error while applying > rule DrillPushProjIntoScan, args > [rel#189411:LogicalProject.NONE.ANY([]).[](input=rel#189289:Subset#3.ENUMERABLE.ANY([]).[],l_orderkey=$1,dir0=$2,dir1=$3,dir2=$4,l_shipdate=$5,l_extendedprice=$6,l_discount=$7), > rel#189233:EnumerableTableScan.ENUMERABLE.ANY([]).[](table=[dfs, > metadata_caching_pp, l_3level])] > org.apache.calcite.util.Util.newInternal():792 > org.apache.calcite.plan.volcano.VolcanoRuleCall.onMatch():251 > ..... > ..... > java.lang.Thread.run():745 > Caused By (org.apache.drill.common.exceptions.DrillRuntimeException) > com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, > code 0)): only regular white space (\r, \n, \t) is allowed between tokens > at [Source: com.mapr.fs.MapRFsDataInputStream@57a574a8; line: 1, column: 2] > org.apache.drill.exec.planner.logical.DrillPushProjIntoScan.onMatch():95 > {code} > Attached the complete log message and the data set -- This message was sent by Atlassian JIRA (v6.3.4#6332)