Compiler returns internal error from ../optimizer/opt.cpp line 6907
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
Fix Released
|
High
|
Justin Du |
Bug Description
We are seeing an alarming rate of random compiler internal errors from ../optimizer/
*** ERROR[2235] Compiler Internal Error: Cannot produce a plan in optimizer pass one, originated from file ../optimizer/
The error is often returned from a simple DDL operation, such as a create table statement, or a create index statement. Sometimes it is also returned from the update statistics statement. Unfortunately, there is no certain way to reproduce this problem. The operations that saw this error were very basic operations and reran the same tests often did not reproduce the error again. However, in the last full SQL regression run on the v0327 build installed on a 6-node cluster, we saw a total of 223 occurrences of this error, which is quite alarming.
-bash-4.1$ grep "Compiler Internal Error" */*.log | grep 2235 | grep 6907 | wc -l
223
This bug report is filed to see if some analysis can be done from the source code to figure out why compiler is returning this internal error at such a high rate.
Here are some examples of the SQL operations returning this error from the v0327 run:
-------
arkcase/
SQL>create table b4table2
(a int not null, b int not null, c varchar(100) not null,
primary key (a));
--- SQL operation complete.
SQL>create index b4tab1x
on b4table1 (b);
*** ERROR[2235] Compiler Internal Error: Cannot produce a plan in optimizer pass one, originated from file ../optimizer/
*** ERROR[8804] The provided input statement does not exist in the current context. [2015-03-28 20:53:48]
*** ERROR[4082] Object TRAFODION.
-------
arkcase/
SQL>Update Statistics For Table BTA1P001 on every column;
*** ERROR[2235] Compiler Internal Error: Cannot produce a plan in optimizer pass one, originated from file ../optimizer/
*** ERROR[8804] The provided input statement does not exist in the current context. [2015-03-28 23:43:30]
*** ERROR[4082] Object TRAFODION.
*** ERROR[2235] Compiler Internal Error: Cannot produce a plan in optimizer pass one, originated from file ../optimizer/
*** ERROR[8804] The provided input statement does not exist in the current context. [2015-03-28 23:43:30]
*** ERROR[4082] Object TRAFODION.
*** ERROR[4082] Object TRAFODION.
-------
ddl/tab002.log
SQL>create table Female_actors (
f_no int not null not droppable,
f_name varchar(30) not null,
f_realname varchar(50) default null,
f_birthday date constraint md1 check (f_birthday > date '1900-01-01'),
primary key (f_no)
)
;
*** ERROR[2235] Compiler Internal Error: Cannot produce a plan in optimizer pass one, originated from file ../optimizer/
*** ERROR[8804] The provided input statement does not exist in the current context. [2015-03-29 06:50:34]
*** ERROR[4082] Object TRAFODION.
*** ERROR[1029] Object TRAFODION.
Changed in trafodion: | |
status: | Triaged → In Progress |
assignee: | Sandhya Sundaresan (sandhya-sundaresan) → Justin Du (justin-du-2) |
We believe this is fixed with the fix made for : https:/ /bugs.launchpad .net/trafodion/ +bug/1426479
Change-Id: Idd0388b626ecd3 dbf3c3d1e75c1d6 dc30b0ce021
Apr 1, 2015 4:34 PM