Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #2877 (closed)

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

BUG: Cannot delete more then one objects int he same time

Reported by: atarkowska Owned by: jburel
Priority: critical Milestone: OMERO-Beta4.2.1
Component: Services Version: n.a.
Keywords: n.a. Cc: jamoore, jburel
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2010-09-09 (16)

Description

I was trying to put more then one DeleteCommand? in queueDelete and it failed:

Traceback (most recent call last):
 File "test/callback_test.py", line 18, in ?
   handle = conn.getDeleteService().queueDelete([dc1, dc2])
 File "/Users/ola/Dev/omero/dist/lib/python/omero_api_IDelete_ice.py", line 270, in queueDelete
   return _M_omero.api.IDelete._op_queueDelete.invoke(self, ((commands, ), _ctx))
omero.InternalException: exception ::omero::InternalException
{
   serverStackTrace = java.lang.IllegalStateException: Currently initialized!: BaseDeleteSpec [/Image, id=37, superspec=]
   at ome.services.delete.BaseDeleteSpec.initialize(BaseDeleteSpec.java:144)
   at ome.services.blitz.impl.DeleteHandleI.<init>(DeleteHandleI.java:172)
   at ome.services.blitz.impl.DeleteI.makeAndLaunchHandle(DeleteI.java:157)
   at ome.services.blitz.impl.DeleteI$5.call(DeleteI.java:147)
   at ome.services.blitz.impl.DeleteI$5.call(DeleteI.java:145)
   at ome.services.throttling.Callback2.run(Callback2.java:49)
   at ome.services.throttling.InThreadThrottlingStrategy.safeRunnableCall(InThreadThrottlingStrategy.java:80)
   at ome.services.blitz.impl.AbstractAmdServant.safeRunnableCall(AbstractAmdServant.java:152)
   at ome.services.blitz.impl.DeleteI.queueDelete_async(DeleteI.java:144)
   at omero.api._IDeleteTie.queueDelete_async(_IDeleteTie.java:123)
   at omero.api._IDeleteDisp.___queueDelete(_IDeleteDisp.java:307)
   at omero.api._IDeleteDisp.__dispatch(_IDeleteDisp.java:389)
   at IceInternal.Incoming.invoke(Incoming.java:159)
   at Ice.ConnectionI.invokeAll(ConnectionI.java:2037)
   at Ice.ConnectionI.message(ConnectionI.java:972)
   at IceInternal.ThreadPool.run(ThreadPool.java:577)
   at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
   at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:971)

   serverExceptionClass = java.lang.IllegalStateException
   message = Currently initialized!: BaseDeleteSpec [/Image, id=37, superspec=]
}

Change History (11)

comment:1 Changed 14 years ago by atarkowska

(In [8049]) test, see #2877

comment:2 Changed 14 years ago by jburel

(In [8058]) Added test to delete more than one objects at a time (see #2877)

comment:3 Changed 14 years ago by jburel

(In [8059]) Added test to delete more than one objects at a time (see #2877)

comment:4 Changed 14 years ago by jburel

This is due to the fact that the DeleteSpec? is shared between command see DeleteSpecFactory

comment:5 Changed 14 years ago by jburel

(In [8070]) Modified constructor of the DeleteHandleI so we can delete objects of the same type at the same time (see #2877)

comment:6 Changed 14 years ago by jburel

(In [8071]) Modified constructor of the DeleteHandleI so we can delete objects of the same type at the same time (see #2877)

comment:7 Changed 14 years ago by jburel

  • Status changed from new to assigned

comment:8 Changed 14 years ago by jburel

  • Owner jmoore deleted
  • Status changed from assigned to new

comment:9 Changed 14 years ago by jburel

  • Cc jmoore added
  • Owner set to jburel
  • Status changed from new to assigned

comment:10 Changed 14 years ago by jburel

  • Remaining Time set to 0
  • Resolution set to fixed
  • Status changed from assigned to closed

(In [8075]) added more tests to delete objects of the same type (closed #2877)

comment:11 Changed 14 years ago by jmoore

(In [8184]) Activating passing tests (See #2945, #2877, #2936)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.75742 sec.)

We're Hiring!