[jira] Created: (JCR-1414) Data store garbage collection: inUse not correctly synchronized

2008-02-25 Thread Thomas Mueller (JIRA)
Data store garbage collection: inUse not correctly synchronized --- Key: JCR-1414 URL: https://issues.apache.org/jira/browse/JCR-1414 Project: Jackrabbit Issue Type: Bug

Re: Driver version check in Oracle bundle PM

2008-02-25 Thread Thomas Mueller
Hi, I think it would be good to log at least the driver and database name and version. Regards, Thomas On Mon, Feb 25, 2008 at 12:06 AM, Alexander Klimetschek [EMAIL PROTECTED] wrote: Hi all, while merging changes done to the Oracle bundle PM back to the 1.3 branch

Re: Driver version check in Oracle bundle PM

2008-02-25 Thread Stefan Guggisberg
hi alex, On Mon, Feb 25, 2008 at 12:06 AM, Alexander Klimetschek [EMAIL PROTECTED] wrote: Hi all, while merging changes done to the Oracle bundle PM back to the 1.3 branch (https://issues.apache.org/jira/browse/JCR-1400, backporting https://issues.apache.org/jira/browse/JCR-940) I face

Re: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()

2008-02-25 Thread Michael Dürig
I think the idea of adding getChildInfos to NodeInfo was to cut down on individual calls to the SPI. In a call to getItemInfos an implementation may choose to return any number of ItemInfos in one single batch. By making the ChildInfos directly available for those nodes having its child nodes in

Re: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()

2008-02-25 Thread Julian Reschke
Michael Dürig wrote: I think the idea of adding getChildInfos to NodeInfo was to cut down on individual calls to the SPI. In a call to getItemInfos an implementation may choose to return any number of ItemInfos in one single batch. By The problem, as far as I understand, is that the saving is

Help required to write JSR 170 connector

2008-02-25 Thread Yamini Kumar, Noida
Hi, My objective is to standardize the access (read/write or both) to data content in data sources like a database (MySQL) and any other content repository that is not JSR 170 compliant like Open CMS, live link or share point. By standardizing access I mean that the client program will no longer

write JSR 170 connector or plugin for non JSR 170 compliant repository

2008-02-25 Thread Sudhanshu Jain
Hi, My objective is to standardize the access (read/write or both) to data content in data sources like a database (MySQL) and any other content repository that is not JSR 170 compliant like Open CMS, live link or share point. By standardizing access I mean that the client program will

Database auto-reconnection: 2 trials needed?

2008-02-25 Thread Alexander Klimetschek
Hi Thomas, while backporting the DB auto-reconnect issue I have lots of conflicts, so I have to fully understand the code to resolve it ;-). So here's my question: In the ConnectionRecoveryManager there are various methods (eg. executeStmt) that have a trial-loop which tries 2 times

Re: Database auto-reconnection: 2 trials needed?

2008-02-25 Thread Thomas Mueller
Hi, In the ConnectionRecoveryManager there are various methods (eg. executeStmt) that have a trial-loop which tries 2 times before giving up. IIUC, this is for the case when a connection is broken and needs to be reestablished. I don't think it is really required to try twice. It is more

[jira] Commented: (JCR-1334) Deadlock with XA enabled

2008-02-25 Thread Marcel Reutegger (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12572081#action_12572081 ] Marcel Reutegger commented on JCR-1334: --- The second RWLock probably belongs to the

Re: Database auto-reconnection: 2 trials needed?

2008-02-25 Thread Alexander Klimetschek
Am 25.02.2008 um 14:23 schrieb Thomas Mueller: I don't think it is really required to try twice. It is more like: OK we have a loop already, why don't we add one iteration for security... There is also an option to repeat forever (this is good for testing; I don't think it makes sense in most

Re: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()

2008-02-25 Thread Marcel Reutegger
Julian Reschke wrote: Returning ItemInfos in a batch is not going to happen for the children of a large collection. After all, the SPI impl has no idea whether the caller wants to see them. You have a point there. I think with NodeInfo.getChildInfos() we should be able to efficiently

Re: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()

2008-02-25 Thread Michael Dürig
i.e. RepositoryService.getChildInfos() returns NodeInfos instead of ChildInfos. I'd favour such a solution. We might even want to further generalize it to RepositoryService.getNodeInfos(SessionInfo sessionInfo, NodeId[] nodeId) returning an Iterator of NodeInfo. Or am I missing something

Re: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()

2008-02-25 Thread Julian Reschke
Michael Dürig wrote: i.e. RepositoryService.getChildInfos() returns NodeInfos instead of ChildInfos. I'd favour such a solution. We might even want to further generalize it to RepositoryService.getNodeInfos(SessionInfo sessionInfo, NodeId[] nodeId) returning an Iterator of NodeInfo. Or am

Re: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()

2008-02-25 Thread Michael Dürig
RepositoryService.getNodeInfos(SessionInfo sessionInfo, NodeId[] nodeId) returning an Iterator of NodeInfo. Or am I missing something here? +1 for getting many NodeInfos in one call. However -- is your proposal for the calls passed in as parameter, or for their child nodes? I missed

Re: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()

2008-02-25 Thread Julian Reschke
Michael Dürig wrote: I missed something... the nodeId's are not available to jcr2spi (that is what getChildInfos was/is for). So +1 for Marcel's original suggestion for adding RepositoryService.getChildInfos(). ...the one for which Marcel already agreed it doesn't help for the problem we are

Re: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()

2008-02-25 Thread Julian Reschke
Michael Dürig wrote: RepositoryService.getNodeInfos(SessionInfo sessionInfo, NodeId[] nodeId) returning an Iterator of NodeInfo. Or am I missing something here? +1 for getting many NodeInfos in one call. However -- is your proposal for the calls passed in as parameter, or for their child

Re: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()

2008-02-25 Thread Michael Dürig
...we may want to rename it to getNodeInfos() then :-) Actually I'd prefer something along the line of getChildNodeInfos() to be more explicit and to clearly differentiate it from getNodeInfo(). Michael BR, Julian

Re: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()

2008-02-25 Thread Julian Reschke
Michael Dürig wrote: ...we may want to rename it to getNodeInfos() then :-) Actually I'd prefer something along the line of getChildNodeInfos() to be more explicit and to clearly differentiate it from getNodeInfo(). Now we're talking :-) Let's change public IteratorChildInfo

[jira] Updated: (JCR-1400) Backport JCR-940 to 1.3 branch

2008-02-25 Thread Alexander Klimetschek (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexander Klimetschek updated JCR-1400: --- Attachment: jackrabbit-core.jcr-940.patch Patch for the 1.3 branch. Also includes

Logging in Tests

2008-02-25 Thread Alexander Klimetschek
Hi, I am wondering how to do proper logging in jackrabbit test cases. At first I used System.out.println() during test case debugging, but now I want to improve that and switch to log (o.a.j.test.LogPrintWriter) provided by the test base class o.a.j.test.JUnitTest. Problem is, I cannot

[jira] Commented: (JCR-1412) [Patch] Pure Java-based configuration of Jackrabbit (no repository.xml needed)

2008-02-25 Thread Jukka Zitting (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12572182#action_12572182 ] Jukka Zitting commented on JCR-1412: Instead of adding builder classes I'd rather just

[jira] Commented: (JCR-1412) [Patch] Pure Java-based configuration of Jackrabbit (no repository.xml needed)

2008-02-25 Thread Alexander Klimetschek (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12572187#action_12572187 ] Alexander Klimetschek commented on JCR-1412: Yes, for a final new feature applied

Jackrabbit 1.3.4 release plan

2008-02-25 Thread Jukka Zitting
Hi, As mentioned before, we have a need to backport some 1.4 improvements to the 1.3 maintenance branch. As you've probably noticed already, Alexander Saar from Day is currently working on those backports and we're planning to produce an official 1.3.4 maintenance release once those backports are

[jira] Updated: (JCR-1412) [Patch] Java-based test configuration of Jackrabbit (no repository.xml needed)

2008-02-25 Thread Jukka Zitting (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting updated JCR-1412: --- Priority: Minor (was: Major) Summary: [Patch] Java-based test configuration of Jackrabbit (no

Re: Logging in Tests

2008-02-25 Thread Jukka Zitting
Hi, On Mon, Feb 25, 2008 at 9:14 PM, Alexander Klimetschek [EMAIL PROTECTED] wrote: I am wondering how to do proper logging in jackrabbit test cases. What's the reason for logging in test cases? If you're writing a complex test case where you need logging to follow the control flow, then

Re: Jackrabbit 1.3.4 release plan

2008-02-25 Thread Jukka Zitting
Hi, On Mon, Feb 25, 2008 at 9:35 PM, Jukka Zitting [EMAIL PROTECTED] wrote: [...] Alexander Saar from Day is currently working [...] Sorry, s/Saar/Klimetschek/ BR, Jukka Zitting

[jira] Commented: (JCR-1412) [Patch] Java-based test configuration of Jackrabbit (no repository.xml needed)

2008-02-25 Thread Alexander Klimetschek (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12572258#action_12572258 ] Alexander Klimetschek commented on JCR-1412: You are right. I plan to provide a

[jira] Created: (JCR-1415) Clustering configuration documentation for syncDelay doesn't match

2008-02-25 Thread Micah Whitacre (JIRA)
Clustering configuration documentation for syncDelay doesn't match -- Key: JCR-1415 URL: https://issues.apache.org/jira/browse/JCR-1415 Project: Jackrabbit Issue Type: Bug

Re: Logging in Tests

2008-02-25 Thread Alexander Klimetschek
Am 25.02.2008 um 21:02 schrieb Jukka Zitting: What's the reason for logging in test cases? Why do other test cases in Jackrabbit use the logging? Why is there a logger in the JUnitTest base class? If you're writing a complex test case where you need logging to follow the control flow,

Re: Logging in Tests

2008-02-25 Thread Jukka Zitting
Hi, On Tue, Feb 26, 2008 at 12:02 AM, Alexander Klimetschek [EMAIL PROTECTED] wrote: Am 25.02.2008 um 21:02 schrieb Jukka Zitting: What's the reason for logging in test cases? Why do other test cases in Jackrabbit use the logging? Why is there a logger in the JUnitTest base class? The

[jira] Updated: (JCR-1416) [PATCH] No need to call toString on a String

2008-02-25 Thread Dave Brosius (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dave Brosius updated JCR-1416: -- Attachment: tostring_on_string.patch [PATCH] No need to call toString on a String

[jira] Created: (JCR-1416) [PATCH] No need to call toString on a String

2008-02-25 Thread Dave Brosius (JIRA)
[PATCH] No need to call toString on a String Key: JCR-1416 URL: https://issues.apache.org/jira/browse/JCR-1416 Project: Jackrabbit Issue Type: Improvement Components:

[jira] Created: (JCR-1417) [PATCH] remove code stutter

2008-02-25 Thread Dave Brosius (JIRA)
[PATCH] remove code stutter --- Key: JCR-1417 URL: https://issues.apache.org/jira/browse/JCR-1417 Project: Jackrabbit Issue Type: Improvement Components: jackrabbit-jcr2spi Affects Versions: core 1.4.1

[jira] Updated: (JCR-1417) [PATCH] remove code stutter

2008-02-25 Thread Dave Brosius (JIRA)
[ https://issues.apache.org/jira/browse/JCR-1417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dave Brosius updated JCR-1417: -- Attachment: remove_stutter.patch [PATCH] remove code stutter ---

Re: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()

2008-02-25 Thread Angela Schreiber
Michael Dürig wrote: i.e. RepositoryService.getChildInfos() returns NodeInfos instead of ChildInfos. I'd favour such a solution. We might even want to further generalize it to RepositoryService.getNodeInfos(SessionInfo sessionInfo, NodeId[] nodeId) i don't see the benefit of either of