[
https://issues.apache.org/jira/browse/TRAFODION-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15437026#comment-15437026
]
ASF GitHub Bot commented on TRAFODION-2170:
-------------------------------------------
GitHub user traflm opened a pull request:
https://github.com/apache/incubator-trafodion/pull/672
[TRAFODION-2170] create table failure when pk length is too long
If the length of the primary key greater than 2048, Trafodion will have
memory overrun issue and core dump.
The changed method will alloc a 2048 buffer and do java memory copy later
into this buffer, which cause memory overrun.
This is rare, but still need to be fixed.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/traflm/incubator-trafodion TRAFODION-2170
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-trafodion/pull/672.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 #672
----
commit 242a92a864043c381a16d675c970a1bcaa0667fa
Author: Liu Ming <[email protected]>
Date: 2016-08-25T14:44:19Z
[TRAFODION-2170] create table failure when pk length is too long
----
> certain create table DDL will fail with core dump
> -------------------------------------------------
>
> Key: TRAFODION-2170
> URL: https://issues.apache.org/jira/browse/TRAFODION-2170
> Project: Apache Trafodion
> Issue Type: Bug
> Reporter: liu ming
> Assignee: liu ming
>
> create table test2170 (
> c1 varchar(255) CHARACTER SET UTF8 not null,
> c2 varchar(256) CHARACTER SET UTF8 not null,
> c3 varchar(256) CHARACTER SET UTF8 not null,
> c4 int not null ,
> c5 int,
> primary key(c1,c2,c3,c4))
> salt using 4 partitions ;
> This will fail.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)