Task #9168 (new)
Opened 12 years ago
Last modified 8 years ago
permit immediate detachOnDestroy setting.
Reported by: | jamoore | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Unscheduled |
Component: | API | Version: | n.a. |
Keywords: | n.a. | Cc: | cxallan, cneves, jburel, wmoore |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description (last modified by jmoore)
See #8812
A race condition exists between the time when createSession() has been successfully called and detachOnDestroy() can be called on the returned object. If anything happens in that period (network issue, out of memory, out of file handles, etc), then when the session is closed by glacier (usually 10) minutes later, the session may be closed completely.
Clients should be able to pass {"omero.detach_on_destroy":"true"} (or similar) during the call to createSession, joinSession, and createClient in order to set the flag server-side immediately. Helper method and/or optional arguments in each SDK should make this easy to implement. E.g.
def createSession(self, username, password, detach=False):
Change History (6)
comment:1 Changed 12 years ago by jmoore
- Description modified (diff)
comment:2 Changed 12 years ago by jmoore
- Milestone changed from OMERO-Beta4.4 to OMERO-Beta4.4.1
comment:3 Changed 12 years ago by jmoore
- Summary changed from RFE: permit immediate detachOnDestroy setting. to permit immediate detachOnDestroy setting.
comment:4 Changed 8 years ago by jamoore
comment:5 Changed 8 years ago by jamoore
Referencing ticket #7043 has changed sprint.
comment:6 Changed 8 years ago by jamoore
- Milestone changed from 5.x to Unscheduled
Referencing ticket #7043 has changed sprint.