ilovesoup / hyracks

Automatically exported from code.google.com/p/hyracks
Apache License 2.0
0 stars 0 forks source link

destroying an application fails if a previous job using b-trees failed #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Creation of secondary indexes currently fails in Asterix. Try, for instance, 
src/test/resources/demo0927/local/create-index.aql
After trying to run such a job, if I try to undeploy the application, I get the 
following trace:

hyracks> destroy application asterix;                                           

Destroying application: asterix                                                 

java.lang.IllegalStateException: Page is pinned and file is being closed        

        at edu.uci.ics.hyracks.storage.common.buffercache.BufferCache.invalidateIfFileIdMatch(BufferCache.java:636)                                   
        at edu.uci.ics.hyracks.storage.common.buffercache.BufferCache.sweepAndFlush(BufferCache.java:616)                                             
        at edu.uci.ics.hyracks.storage.common.buffercache.BufferCache.close(BufferCache.java:534)                                                     
        at edu.uci.ics.asterix.context.AsterixAppRuntimeContext.stop(AsterixAppRuntimeContext.java:54)                                                
        at edu.uci.ics.asterix.context.AsterixAppRuntimeContext.deinitialize(AsterixAppRuntimeContext.java:48)                                        
        at edu.uci.ics.asterix.hyracks.bootstrap.NCBootstrapImpl.stop(NCBootstrapImpl.java:24)                                                        
        at edu.uci.ics.hyracks.control.nc.application.NCApplicationContext.stop(NCApplicationContext.java:43)                                         
        at edu.uci.ics.hyracks.control.common.application.ApplicationContext.deinitialize(ApplicationContext.java:172)                                
        at edu.uci.ics.hyracks.control.nc.NodeControllerService.destroyApplication(NodeControllerService.java:616)                                    
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                                
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
        at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
        at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
        at $Proxy5.destroyApplication(Unknown Source)
        at edu.uci.ics.hyracks.control.cc.remote.ops.ApplicationDestroyer.execute(ApplicationDestroyer.java:36)
        at edu.uci.ics.hyracks.control.cc.remote.ops.ApplicationDestroyer.execute(ApplicationDestroyer.java:20)
        at edu.uci.ics.hyracks.control.cc.remote.RemoteRunner$1.run(RemoteRunner.java:39)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
        at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
        at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
        at $Proxy0.destroyApplication(Unknown Source)
        at edu.uci.ics.hyracks.api.client.AbstractHyracksConnection.destroyApplication(AbstractHyracksConnection.java:64)
        at edu.uci.ics.hyracks.api.client.HyracksRMIConnection.destroyApplication(HyracksRMIConnection.java:22)
        at edu.uci.ics.hyracks.cli.commands.DestroyApplicationCommand.run(DestroyApplicationCommand.java:20)
        at edu.uci.ics.hyracks.cli.CLI.execute(CLI.java:72)
        at edu.uci.ics.hyracks.cli.CLI.run(CLI.java:61)
        at edu.uci.ics.hyracks.cli.Main.main(Main.java:20)

Original issue reported on code.google.com by nicola.o...@gmail.com on 11 Aug 2011 at 2:58