Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

" Team ->Share project " Custom implementation deadlock issue , eclipse client not responding (suspended)

Hi, We have a custom implementation for sharing projects from sandbox to repository. (called "Auto-share") However this custom auto-share implementation goes into a deadlock with
one of the IBM operation "Updating out of sync share".

To fix this deadlock issue we had to remove the below code from our custom
implementation.

// Obtain the CFA lock so metadata updates will happen in-thread
AbstractLock lock = CFALockUtil.lockExistingForGlobalUpdate(entry.getKey(), progress.newChild(1));


Is the above code mandatory while sharing projects ? Do you foresee any issues?
Do we have any documentation for the same?

(Our tests indicates most the use cases to be working, but wanted an expert
opinion on the same.)


Thanks and regards
Linu Chacko









0 votes


Accepted answer

Permanent link

Linu,

This code is internal to the SCM API and should not be called by 3rd parties. You shouldn't need to call this as the proper locking should be done through the SCM API you are calling to share projects.

David Lafreniere selected this answer as the correct answer

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,952
× 1,204

Question asked: Oct 28 '14, 8:43 a.m.

Question was seen: 4,768 times

Last updated: Oct 12 '17, 12:52 p.m.

Confirmation Cancel Confirm