br1ghtyang / asterixdb

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

[ Severity-BetaBlocker ] Attempt to invoke dropped user defined function is not caught #452

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

for $l in dataset Metadata.Function
return $l

What is the expected output? What do you see instead?

results pertaining to Function dataset must be returned. Currently no results 
are returned.

Please use labels and text to provide additional information.

Details from managix are as follows;

kfmohamm@khurram:~/asterix-managix/bin$ ./managix describe -admin
INFO: Name:astx01
Created:Mon May 13 19:07:33 PDT 2013
Web-Url:http://127.0.0.1:19001
State:ACTIVE (Thu May 16 16:38:17 PDT 2013)
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 [ 13791 ] 
CC at master [ 13583 ] 

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 16 May 2013 at 11:48

GoogleCodeExporter commented 8 years ago
Do you have any user-defined functions that you are expecting to be returned?

Original comment by RamanGro...@gmail.com on 16 May 2013 at 11:51

GoogleCodeExporter commented 8 years ago
Here is the full set of statements that were executed. I missed to mention 
earlier that 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.

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

Original comment by khfaraaz82 on 17 May 2013 at 12:05

GoogleCodeExporter commented 8 years ago
I am a bit confused in going through the comments posted for this issue.

What is the expected output? What do you see instead?
results pertaining to Function dataset must be returned. Currently no results 
are returned.

Should we mark the above expectation as invalid as the bug title has been 
changed since it was logged?

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

GoogleCodeExporter commented 8 years ago
Raman, as discussed on chat, marking this one as invalid. A new issue will be 
reported to track the actual failure.

Original comment by khfaraaz82 on 17 May 2013 at 12:17

GoogleCodeExporter commented 8 years ago

Original comment by khfaraaz82 on 17 May 2013 at 12:17