[ 
https://issues.apache.org/jira/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17960736#comment-17960736
 ] 

ASF GitHub Bot commented on SCM-261:
------------------------------------

jira-importer commented on issue #460:
URL: https://github.com/apache/maven-scm/issues/460#issuecomment-2964597066

   **[Subir 
S](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=subirs)** 
commented
   
   Body Mass,
   I guess you are getting confused. An instance is comprised of 
<database_id><dcm_delimiter>\<objectversion>
   
   First thing is:
   
   a.) SCM URL in POM \<scm> element specifies a prep project details.
   b.) Consider databases dcmdb1 and dcmdb2 in the SCM cluster. When you 
check-in the POM in dcmdb1 with the instance as dcmdb1#1, then it will not work 
in dcmdb2. Reason: A prep 'project' is always local to any DCM database. So we 
cannot have the configuration which is local to a particular database as part 
of the SCM URL. Only global configurations can be put there. Like DCM delimiter 
has to be same in every database (both dcmdb1 and dcmdb2), so it can be put to 
SCM URL.
   c.) We can decifer the database names from db itself.
   d.) If you saw the source code, then you would know that on 
getWorkingProject and getCompletedTasks use the complete %objectname format in 
ccm queries.
   
   Secondly what you said is the generic format of objectname in a DCM enabled 
database. Atleast i did not understand how that causes a issue here. Incase you 
want to elaborate with examples, as to why that makes the current proposed fix 
wrong, then that would be great!.
   
   I will try to implement this and see if it works. If it works and 
maven-scm-provider-synergy needs a patch i will submit that. If not lets forget 
using maven with CM/Synergy.
   




> Synergy provider assumes instance of 1 for projects... won't work for 
> distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: https://issues.apache.org/jira/browse/SCM-261
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: bodymass
>            Assignee: Olivier Lamy
>            Priority: Major
>             Fix For: 1.3
>
>         Attachments: SCM-261-505-maven-scm-site.patch, SCM-261-maven-scm.patch
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find 
> projects whose instance is not 1. This is not a valid for a Distributed CM 
> install, for example, where 1 cannot be the instance number as Synergy will 
> not allow it. This instance can be any string, and should be specified in the 
> SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. 
> This same funkiness for DCM also applies to task names, but I can't get that 
> far in testing due to the project problem.
> ccm> query -u 
> is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to