Sync gateway call to ViewCustom in github.com/couchbaselabs why


#1

Hi,

when i enable REST Logging i see

go-couchbase: call to ViewCustom(“sync_gateway”, “access”) in github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.ViewCustom

in my sync gateway logs.

My syncconfig
{
“interface”: “:4984”,
“adminInterface”: “:4985”,
“log”: [“REST”],
“databases”: {
“android”: {
“server”: “http://localhost:8091”,…

1 What does this mean. is my syncgateway installation calling views installed on git?

i am getting stupendous delays in initial syncing. Please help.


#2

@arjunblue

No this is referring to the map/reduce views in Couchbase Server.

Sync Gateway creates a number of map/reduce views to track the mapping of documents to channels and user access to channels.

This is expected behaviour.

Andy


#3

Thanks Andy
but please help me out here when access view is defined in my installed copy of syncgateway (on my server) why is it referring or calling to ViewCustom(“sync_gateway”, “access”) in github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.ViewCustom that is on bit bucket, this was my doubt.

excerpt from my logs

2012/01/28 22:29:39 go-couchbase: call to ViewCustom(“sync_gateway”, “access”) in github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.Vi$
2012/01/28 22:29:39 go-couchbase: call to ViewCustom(“sync_gateway”, “access”) in github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.Vi$
2012/01/28 22:29:39 go-couchbase: call to ViewCustom(“sync_gateway”, “access”) in github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.Vi$
2012/01/28 22:29:39 go-couchbase: call to ViewCustom(“sync_gateway”, “access”) in github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.Vi$
2012/01/28 22:29:39 go-couchbase: call to ViewCustom(“sync_gateway”, “access”) in github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.Vi$
2012/01/28 22:29:39 go-couchbase: call to ViewCustom(“sync_gateway”, “access”) in github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.Vi$
2012/01/28 22:29:39 go-couchbase: call to ViewCustom(“sync_gateway”, “access”) in github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.Vi$
2012/01/28 22:29:39 go-couchbase: call to ViewCustom(“sync_gateway”, “access”) in github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.Vi$
2012/01/28 22:29:39 go-couchbase: call to ViewCustom(“sync_gateway”, “access”) in github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.Vi$
2012/01/28 22

sync gateway should be calling or invoking sync map function like access in this case already installed on my server.

Thanks
arjun


#4

Hi Arjun,

github.com/couchbaselabs/sync_gateway/base.couchbaseBucket.ViewCustom is just the namespace for the ViewCustom method within the sync gateway code - it’s not referring to an external github url.

Based on the information you’ve shared so far I can’t explain the delays you’re seeing in initial synchronization, but it’s definitely nothing to do with making calls to git.

Thanks,
Adam


#5

Thanks Adam i have shared my issue of initial sync already but have not received any replies. i have been struggling with it.
link of sync issue

just while trying to debug it i found hit to external server but if its just namespace not an actual hit. i remain stranded. Please if you have some time have a look at above link.

Thanks
Arjun