You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Murtadha Hubail (JIRA)" <ji...@apache.org> on 2015/11/19 23:00:12 UTC

[jira] [Commented] (ASTERIXDB-1110) Cannot drop a dataverse when there was an exception regarding an index operation

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

Murtadha Hubail commented on ASTERIXDB-1110:
--------------------------------------------

[~iabsalyamov]
I believe this is related to issue ASTERIXDB-1109. Please confirm that this was resolved as well when the fix is merged to master.

> Cannot drop a dataverse when there was an exception regarding an index operation
> --------------------------------------------------------------------------------
>
>                 Key: ASTERIXDB-1110
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1110
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: AsterixDB, Transactions
>            Reporter: Taewoo Kim
>            Assignee: Ildar Absalyamov
>
> Cannot drop a dataverse after an exception is thrown from an index.
> #1. Copy and paste the following code in the web interface. Execute the code. It will throw an exception at this moment. 
> drop dataverse test if exists;
> create dataverse test;
> use dataverse test;
> create type FooType as open {
> 	a: int64
> }
> create dataset OpenFoo(FooType) primary key a;
> create index btree_idx on OpenFoo(b:double) type btree enforced;
> insert into dataset test.OpenFoo (
> 	{"a":7, "b":3.14}
> );
> for $o in dataset OpenFoo return $o;
> delete $o from dataset OpenFoo where $o.a = 7;
> for $o in dataset OpenFoo return $o;
> insert into dataset OpenFoo (
> 	{"a":7, "b":3.14}
> );
> #2. Now, try to delete the dataverse by issuing the following command. It will throw this exception - Cannot remove index while it is open. [HyracksDataException]
> drop dataverse test;



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