[ 
https://issues.apache.org/jira/browse/PHOENIX-1257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14136836#comment-14136836
 ] 

Lars Hofhansl commented on PHOENIX-1257:
----------------------------------------

Couple of observation:
# when I generate new keys my multiplying the existing ones with a prime number 
this does not happen (i.e. upsert into x select pk*<prime>, val from x)
# when I change the caching of the sequence to 10000 I can do one more round of 
this. But that round not insert 4096 rows as expected but ~180000 before it 
exits.

So it looks like this is specific to sequences and is (somehow) related to the 
caching.


> Strange behavior wirh "upsert into ... select from ..." with sequences
> ----------------------------------------------------------------------
>
>                 Key: PHOENIX-1257
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1257
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Lars Hofhansl
>
> I have the following scenario:
> create sequence keys;
> create table X (pk unsigned_long primary key, val integer);
> upsert into x values (1,1);
> Followed by repeated:
> upsert into x select next value for keys, val from x;
> This works well until 2048 rows are inserted. The next
> upsert into x select next value for keys, val from x;
> That loops forever inserting more and more rows until it is stopped.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to