log cache issue

View: New views
4 Messages — Rating Filter:   Alert me  

log cache issue

by mweyh () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am currently using SmartSVN Enterprise 6.0.5


Lately I have seen an issue when switching between a svn+ssh repository and a https repository.

The transaction log shows the transactions of the svn+ssh repository when I am actually working with the https one. This also influences logs and graphs, which do not work at all in the https repository. When trying to show a log of a file in the https repository SmartSVN is spooling the revisions of the svn+ssh repository which naturally does not include information of the file i was trying to show the log for.

I can work around this by rebuilding the log cache ("Manage log caches") after switching to the https repository. But this only works until i once more switch back and forth between the repositories.

best regards,
M. Weyh

Re: log cache issue

by syntevo Support-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> The transaction log shows the transactions of the svn+ssh repository when I
> am actually working with the https one.

Most likely both repositories have the same UUID (which shouldn't be the case
unless they are identical). You may either correct the UUID:

 http://svnbook.red-bean.com/en/1.5/svn.reposadmin.maint.html#svn.reposadmin.maint.uuids


or tell SmartSVN to distinguish repositories by URL instead of UUID:

 http://www.syntevo.com/smartsvn/documentation.html?page=vmoptions#vmoptions.smartsvn.logcache.useURLasUUID


--
Best regards,
Marc Strapetz
=============
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com



mweyh <m.weyh@...> wrote:

>
> Hello,
>
> I am currently using SmartSVN Enterprise 6.0.5
>
>
> Lately I have seen an issue when switching between a svn+ssh repository and
> a https repository.
>
> The transaction log shows the transactions of the svn+ssh repository when I
> am actually working with the https one. This also influences logs and
> graphs, which do not work at all in the https repository. When trying to
> show a log of a file in the https repository SmartSVN is spooling the
> revisions of the svn+ssh repository which naturally does not include
> information of the file i was trying to show the log for.
>
> I can work around this by rebuilding the log cache ("Manage log caches")
> after switching to the https repository. But this only works until i once
> more switch back and forth between the repositories.
>
> This also causes behaviour like this
> http://www.nabble.com/file/p25166881/transactions.jpg 
> where the number of revisions is displayed from one repository while the
> actual revisions in the list are from the other.
>
> best regards,
> M. Weyh
> --
> View this message in context:
> http://www.nabble.com/log-cache-issue-tp25166881p25166881.html
> Sent from the SmartSVN mailing list archive at Nabble.com.
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>








------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/smartsvn/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/smartsvn/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:smartsvn-digest@...
    mailto:smartsvn-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    smartsvn-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


Re: log cache issue

by mweyh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

thank you for the help Marc. This solved the problems.

One thing that we noticed after changing the UUID is that we needed to delete the log caches and rebuild them in order for everything to behave as expected. SmartSVN did not create a new cache for the "new" repository (new UUID). May this behaviour have been caused by the repository root being unchanged?

best regards,
M. Weyh

Re: log cache issue

by syntevo Support-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> One thing that we noticed after changing the UUID is that we needed to
> delete the log caches and rebuild them in order for everything to behave as
> expected. SmartSVN did not create a new cache for the "new" repository (new
> UUID). May this behaviour have been caused by the repository root being
> unchanged?

You are right. Caches store their assigned URLs in the "urls" file and are
requested only by URLs (otherwise URLs would have to be converted to UUIDs by
an additional repository request). So once a wrong URL is assigned to a cache
(because the UUID was confused), the "urls" file will remain screwed up
forever. Currently, deleting the cache directory is the only solution. For 6.1
we will at least clear the "urls" file when performing Rebuild from within
Manage Log Caches.

--
Best regards,
Marc Strapetz
=============
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com



mweyh <m.weyh@...> wrote:

>
> Hello,
>
> thank you for the help Marc. This solved the problems.
>
> One thing that we noticed after changing the UUID is that we needed to
> delete the log caches and rebuild them in order for everything to behave as
> expected. SmartSVN did not create a new cache for the "new" repository (new
> UUID). May this behaviour have been caused by the repository root being
> unchanged?
>
> best regards,
> M. Weyh
> --
> View this message in context:
> http://www.nabble.com/log-cache-issue-tp25166881p25236910.html
> Sent from the SmartSVN mailing list archive at Nabble.com.
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>








------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/smartsvn/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/smartsvn/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:smartsvn-digest@...
    mailto:smartsvn-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    smartsvn-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/