[JBoss JIRA] Created: (DNA-582) The connector.execute(...) method is not 'all-or-nothing'
by Randall Hauch (JIRA)
The connector.execute(...) method is not 'all-or-nothing'
---------------------------------------------------------
Key: DNA-582
URL: https://jira.jboss.org/jira/browse/DNA-582
Project: DNA
Issue Type: Bug
Components: Connectors, Graph
Reporter: Randall Hauch
Priority: Blocker
Fix For: 1.0
The RepositoryConnector.execute(ExecutionContext,Request) method does not have all-or-nothing behavior. That is, if the request is a CompositeRequest with multiple requests to change the content, and some of those change requests result in errors, the execution should 'rollback' the changes and return the content to the state before the method was called. In other words, either all of the requests are fulfilled, or none of them are.
None of the writable connectors work this way, and they all need to be corrected. Also, this behavior needs to be documented in the connector API. Finally, we need to make sure that the JCR session's transient state is unchanged if a save() call results in an error (the connector's state should rollback, but the session's state should remain, per Section 7.1.1.6-7.1.1.7 of JCR 1.0.1).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] Created: (DNA-588) The connectors should release all resources before notifying observer of events
by Randall Hauch (JIRA)
The connectors should release all resources before notifying observer of events
-------------------------------------------------------------------------------
Key: DNA-588
URL: https://jira.jboss.org/jira/browse/DNA-588
Project: DNA
Issue Type: Bug
Components: Connectors, Graph
Affects Versions: 0.7
Reporter: Randall Hauch
Fix For: 1.0
Right now, most connectors are firing off the changes to the Observer before the resources acquired by the connector are released, meaning that the Observer cannot use the source within the same thread. This prevents writing Observers that operate fully before the 'execute(...)' method returns, and requires that any Observer that might need access to the source needs to do its work asynchronously.
By notifying the Observer _after_ the resources are released but before 'execute(...)' returns, Observers could call back to the source (really through a different connection or at least through a different 'execute(...)' call) to access content. This means that Observers could be written to work synchronously while still access the (committed) content.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months
[JBoss JIRA] Created: (DNA-581) Alter logging to use categories and message codes
by Randall Hauch (JIRA)
Alter logging to use categories and message codes
--------------------------------------------------
Key: DNA-581
URL: https://jira.jboss.org/jira/browse/DNA-581
Project: DNA
Issue Type: Task
Components: Common
Affects Versions: 0.7
Reporter: Randall Hauch
Fix For: 1.1
Our logging facility should use message codes that can be used to cross-reference more information about the message and possible actions to alter the behavior. The logging should also use categories rather than just using class names.
Ideally this can be done such that the only changes are to the logging class and the I18n library, and that all other code remains untouched. (Though we'll have to record for each subproject the message codes in a file so they're durable and documented.)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 5 months