Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes Feed repeats all the changes when a change is made #621

Closed
marpal opened this issue Jan 31, 2015 · 12 comments
Closed

Changes Feed repeats all the changes when a change is made #621

marpal opened this issue Jan 31, 2015 · 12 comments
Assignees
Labels
Milestone

Comments

@marpal
Copy link

marpal commented Jan 31, 2015

Hi,

I'm trying to implement a feature that performs an action when something appears in the changes feed of the sync_gateway. I'm using couchbase server 2.2 and the sync_gateway HEAD in master branch.
I'm requesting the changes feed by connecting to the admin port and using continuous mode.
The issue I'm seeing is that everytime I make a change instead of only sending on the stream the change I made, all the changes appear, repeating every time all the changes.

Below is a link to the log.

https://gist.github.com/marpal/5de2d9ff63463d1ca312

And a link to the discussion I had with Jens Afke on the forum.

https://groups.google.com/forum/#!topic/mobile-couchbase/WHwZfAP3NEc

Thanks,
Martin

@marpal
Copy link
Author

marpal commented Jan 31, 2015

I have the same bug using couchbase 3.0.1

@adamcfraser
Copy link
Collaborator

Hi Martin,

Can you provide a bit more detail on the exact sequence of actions you're taking, so that we can try to reproduce and get to the bottom of the reset that seems to be happening on your changes feed?

Thanks,
Adam

@marpal
Copy link
Author

marpal commented Feb 1, 2015

Hi Adam,
The sequence of actions.

  1. Listen to changes feed curl http://XXX.XXX.XXX.XXX:4985/nearup/_changes?feed=continuous
  2. Create a new document through couchbase lite for iOS and save it. Document is added correctly to the DB.
  3. All the changes are repeated on the stream.

I tested that using couchbase 3.0.1 and 2.2 community edition.
I can give you access to the server if you would like over private conversation. My e-mail is [email protected]

Thanks,
Martin

@adamcfraser
Copy link
Collaborator

Thanks - I'll try to reproduce tomorrow. A few other questions in the meantime:

  • Do you see the same behaviour when listening to the changes feed on the public (non-admin) API?
  • Is your sync function assigning any particular access/channel information based on the document being created in (2)?

Adam

@marpal
Copy link
Author

marpal commented Feb 2, 2015

Hi Adam,

  1. I only tried with the admin API. I will try later with the non admin
  2. Yes. I'm accining channel and access to the document that I save. The
    channel is conversation-"IdOfConservation". But I think the same happens
    with any change.

Best,
Martin

On Mon, Feb 2, 2015 at 4:57 AM, Adam Fraser [email protected]
wrote:

Thanks - I'll try to reproduce tomorrow. A few other questions in the
meantime:

  • Do you see the same behaviour when listening to the changes feed on
    the public (non-admin) API?
  • Is your sync function assigning any particular access/channel
    information based on the document being created in (2)?

Adam


Reply to this email directly or view it on GitHub
#621 (comment)
.

@marpal
Copy link
Author

marpal commented Feb 3, 2015

Hi Adam,
Did you manage to reproduce it?

Thanks,
Martin

@marpal
Copy link
Author

marpal commented Feb 3, 2015

Hi,

I tried in non-admin port and I have the same behavior.

Thanks,
Martin

@adamcfraser
Copy link
Collaborator

Hi Martin,

I haven't been able to reproduce yet - I'm only seeing the new (expected) entries coming through on the feed. I suspect I'm not replicating exactly what's going on in your environment from a channel management perspective. Can you share your sync function (or at least an excerpt that's doing the channel/access management)? The full sync gateway log might also be helpful.

Thanks,
Adam

@zgramana
Copy link
Contributor

@marpal Unless you have any updates, we will close this issue in 7 days.

@zgramana zgramana added review and removed ready labels Mar 20, 2015
@zgramana
Copy link
Contributor

Closed due to inactivity. Please reopen is it's still an issue.

@zgramana zgramana removed the review label Mar 27, 2015
@zgramana zgramana modified the milestone: 1.1.0 Jun 11, 2015
@atom992
Copy link

atom992 commented Sep 9, 2015

I have the same problem on Sync Gateway 1.1.0-28 + Couchbase 3.0.2-1603 Enterprise Edition (build-1603) + CBL android 1.1.0 with PhoneGap plugin. @adamcfraser

@adamcfraser
Copy link
Collaborator

@atom992 Can you file a new issue for this, with details on how to reproduce?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants