br1ghtyang / asterixdb

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

Invoking an already dropped user defined function does not throw Exception #455

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Start asterix using managix. From Web UI run the following query

drop dataverse test if exists;
create dataverse test;
use dataverse test;

create function printName()
{
"AsterixDB Shared nothing parallel BDMS"
}

printName();

drop function test.printName@0;

for $l in dataset Metadata.Function
return $l

printName();

The last call to invoke the user defined function printName() does not throw an 
Exception, it should throw an Exception because I have already dropped the 
function and later after dropping it, I try to invoke the same function, which 
should be caught.

Details about managix

kfmohamm@khurram:~/asterix-managix/bin$ ./managix describe -admin
INFO: Name:astx01
Created:Thu May 16 17:10:38 PDT 2013
Web-Url:http://127.0.0.1:19001
State:ACTIVE
Master node:master:127.0.0.1
node1:127.0.0.1

Asterix version:0.0.6-SNAPSHOT
Metadata Node:node1
Processes
NC at node1 [ 28904 ] 
CC at master [ 28697 ] 

Asterix Configuration
nc.java.opts:-Xmx1024m
cc.java.opts:-Xmx1024m
storage.buffercache.pagesize:32768
storage.buffercache.numpages:1024
storage.buffercache.maxopenfiles:214748364
storage.memorycomponent.pagesize:32768
storage.memorycomponent.numpages:4096
storage.memorycomponent.globalbudget:1073741824
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.groupcommitinterval:200
txn.log.checkpoint.lsnthreshold:67108864
txn.log.checkpoint.pollfrequency:120
txn.lock.escalationthreshold:1000
txn.lock.shrinktimer:120000
compiler.sortmemory:536870912
compiler.joinmemory:536870912
compiler.framesize:32768
web.port:19001
api.port:19101
log.level:INFO

Original issue reported on code.google.com by khfaraaz82 on 17 May 2013 at 12:20

GoogleCodeExporter commented 8 years ago
My first guess is that this is related to Metadata cache as invoking a dropped 
function from another session throws an exception message - unknown function

Original comment by RamanGro...@gmail.com on 17 May 2013 at 12:38

GoogleCodeExporter commented 8 years ago
create function printName()
{
"AsterixDB Shared nothing parallel BDMS"
}

printName();  =====> REMOVE this invocation and things work fine, something 
fishy with the cache

drop function test.printName@0;

for $l in dataset Metadata.Function
return $l

printName();

Original comment by RamanGro...@gmail.com on 17 May 2013 at 12:41

GoogleCodeExporter commented 8 years ago
Fixed in branch raman/master_issue_455

Original comment by RamanGro...@gmail.com on 17 May 2013 at 1:13

GoogleCodeExporter commented 8 years ago
fix merge into master after review by Jarod.

Original comment by RamanGro...@gmail.com on 19 May 2013 at 7:44