asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ASTERIXDB-1110) Cannot drop a dataverse when there was an exception regarding an index operation
Date Sat, 05 Dec 2015 02:41:11 GMT

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

ASF subversion and git services commented on ASTERIXDB-1110:
------------------------------------------------------------

Commit 31ee8b746189bd308c7d90bdbba6ddcaf019f035 in incubator-asterixdb's branch refs/heads/master
from [~alamoudi]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-asterixdb.git;h=31ee8b7 ]

ASTERIXDB-1110 Fix count keeping in primary index opTracker

This change fixes the counter of number of active operations in primary
index opTracker. This is accomplished by sharing of counter between multiple
partitions. Each transaction will have that counter as part of its
context object

Change-Id: I0dc34b9a3aa69d39ac2eda11c17e7ad0ccc1a661
Reviewed-on: https://asterix-gerrit.ics.uci.edu/536
Reviewed-by: Murtadha Hubail <hubailmor@gmail.com>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>


> 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)

Mime
View raw message