Video clip of SG halting the change feed for 1.5 minutes before "giving up"

21 views
Skip to first unread message

Alexander Selling

unread,
Apr 2, 2015, 9:09:29 AM4/2/15
to mobile-c...@googlegroups.com
Hi!

I'm usually terrible at taking time to re-produce issues, and this time it's no different! However I am getting the same result every time now, no matter how many calls to _changes that are sent, I still don't get anything back until SG "gives up" and then everything comes out at once.

As soon as this line pops up in the log the change feed comes back to life again:

WARNING: changeCache: Giving up, accepting #5710374 even though #5710373 is missing -- db.(*changeCache)._addPendingLogs() at change_cache.go:320

Here's a short video of what I'm experiencing
https://slack-files.com/T03G71GP5-F0481CJ34-5ad009c81d

I was told that you guys solved this in the master branch, but I can't upgrade because the build.sh script keeps saying that I have go version 1.2. The lowest version I have is "go version go1.3.3 linux/amd64" my other machines run 1.4.

I hope this helps!

ajres

unread,
Apr 2, 2015, 9:29:34 AM4/2/15
to mobile-c...@googlegroups.com
The test for the go version is done in go.sh

GO_MAJOR_MINOR_VERSION=`go version | sed -E 's/.*go([0-9]\.[0-9]+).*/\1/'`

if [[ $(echo "$GO_MAJOR_MINOR_VERSION >= 1.3" | bc) -eq 0 ]]; then

  echo "*** Go 1.3 or higher is required to build Sync Gateway; you have" `go version`

  echo "Please visit http://golang.org/doc/install or use your package manager to upgrade."

  exit 1

fi


If you modify the first line in go.sh to output debug info:


#!/bin/bash -xv


Then run build.sh again, you should see output similar to this (taken from my dev laptop)


GO_MAJOR_MINOR_VERSION=`go version | sed -E 's/.*go([0-9]\.[0-9]+).*/\1/'`

go version | sed -E 's/.*go([0-9]\.[0-9]+).*/\1/'

++ go version

++ sed -E 's/.*go([0-9]\.[0-9]+).*/\1/'

+ GO_MAJOR_MINOR_VERSION=1.4

if [[ $(echo "$GO_MAJOR_MINOR_VERSION >= 1.3" | bc) -eq 0 ]]; then

  echo "*** Go 1.3 or higher is required to build Sync Gateway; you have" `go version`

  echo "Please visit http://golang.org/doc/install or use your package manager to upgrade."

  exit 1

fi

echo "$GO_MAJOR_MINOR_VERSION >= 1.3" | bc

++ echo '1.4 >= 1.3'

++ bc

+ [[ 1 -eq 0 ]]


Could you post the debug output from your local build.


Andy

Reply all
Reply to author
Forward
0 new messages