br1ghtyang / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

Can not create a new dataverse after stop/start #509

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?
1. Start and asterix instance (my experience was on cluster)
2. Create a dataverse "D1" (with some dataType and dataset in it)
3. Stop asterix instance and start it
4. Create a second dataverse "D2" (different name) - it fails

Web-UI shows the following error message:

Duplicate resource [HyracksDataException]

Here is the query (for step2 above use DMLTest1 and for step4 use DMLTest2 as 
dataverse name):

create dataverse DMLTest1;
use dataverse DMLTest1;

create type EmploymentType as closed {
organization-name: string,
start-date: date,
end-date: date?
}

create type FacebookUserType as closed {
id: int32,
id-copy: int32,
alias: string,
name: string,
user-since: datetime,
user-since-copy: datetime,
friend-ids: {{ int32 }},
employment: [EmploymentType]
}

create dataset FacebookUsers(FacebookUserType)
primary key id;

Original issue reported on code.google.com by pouria.p...@gmail.com on 6 Jun 2013 at 1:30

GoogleCodeExporter commented 8 years ago
I am able to reproduce this on a single node setup. 

Steps to reproduce:-
1) create instance using a cluster.xml similar to the one attached (multiple io 
devices + NCs)
2) run the aql statements in bug desc
3) stop the instance
4) start the instance
5) repeat (2) (with changed dataverse names) until you hit the issue. (should 
take 2-3 repitiions)

Attaching the following
a)  logs (CC and NC)
b) cluster.xml

asterix-configuration.xml :-Asterix Configuration
nc.java.opts                             :-Xmx1024m
cc.java.opts                             :-Xmx1024m
storage.buffercache.pagesize             :32768
storage.buffercache.size                 :33554432
storage.buffercache.maxopenfiles         :214748364
storage.memorycomponent.pagesize         :32768
storage.memorycomponent.numpages         :1024
storage.memorycomponent.globalbudget     :536870192
storage.lsm.mergethreshold               :3
storage.lsm.bloomfilter.falsepositiverate:0.01
txn.log.buffer.numpages                  :8
txn.log.buffer.pagesize                  :131072
txn.log.partitionsize                    :2147483648
txn.log.disksectorsize                   :4096
txn.log.groupcommitinterval              :1
txn.log.checkpoint.lsnthreshold          :67108864
txn.log.checkpoint.pollfrequency         :120
txn.log.checkpoint.history               :0
txn.lock.escalationthreshold             :1000
txn.lock.shrinktimer                     :5000
txn.lock.timeout.waitthreshold           :60000
txn.lock.timeout.sweepthreshold          :10000
compiler.sortmemory                      :33554432
compiler.joinmemory                      :33554432
compiler.framesize                       :32768
web.port                                 :19001
api.port                                 :19002
log.level                                :INFO

Original comment by RamanGro...@gmail.com on 6 Jun 2013 at 1:55

Attachments:

GoogleCodeExporter commented 8 years ago
Taking ownership.

Original comment by salsuba...@gmail.com on 6 Jun 2013 at 3:02

GoogleCodeExporter commented 8 years ago

Original comment by salsuba...@gmail.com on 6 Jun 2013 at 4:39