redis-oplog icon indicating copy to clipboard operation
redis-oplog copied to clipboard

Redis oplog connects and disconnects all the time

Open lagartoverde opened this issue 1 year ago • 1 comments

Hello, we have redis-oplog, working in another project, but when we added to this one the app doesn't show any data and enabling the debug logs shows that it's trying to connect and disconnect to the collections all the time, for example:

Subscribing to channel: invoice
I20230828-21:13:26.813(0)? [1693257206812] - [RedisSubscriptionManager] Unsubscribing from channel: invoice
I20230828-21:13:30.813(0)? [1693257210813] - [RedisSubscriptionManager] Subscribing to channel: users::G26vG3R4wbCpxypW5
I20230828-21:13:30.816(0)? [1693257210816] - [RedisSubscriptionManager] Unsubscribing from channel: users::G26vG3R4wbCpxypW5
I20230828-21:13:30.823(0)? [1693257210822] - [RedisSubscriptionManager] Subscribing to channel: invoice
I20230828-21:13:30.824(0)? [1693257210824] - [RedisSubscriptionManager] Unsubscribing from channel: invoice
I20230828-21:13:35.805(0)? [1693257215805] - [RedisSubscriptionManager] Subscribing to channel: users::G26vG3R4wbCpxypW5
I20230828-21:13:35.808(0)? [1693257215808] - [RedisSubscriptionManager] Unsubscribing from channel: users::G26vG3R4wbCpxypW5
I20230828-21:13:35.813(0)? [1693257215812] - [RedisSubscriptionManager] Subscribing to channel: invoice
I20230828-21:13:35.816(0)? [1693257215816] - [RedisSubscriptionManager] Unsubscribing from channel: invoice
I20230828-21:13:40.806(0)? [1693257220806] - [RedisSubscriptionManager] Subscribing to channel: users::G26vG3R4wbCpxypW5
I20230828-21:13:40.809(0)? [1693257220809] - [RedisSubscriptionManager] Unsubscribing from channel: users::G26vG3R4wbCpxypW5
I20230828-21:13:40.816(0)? [1693257220814] - [RedisSubscriptionManager] Subscribing to channel: invoice
I20230828-21:13:40.819(0)? [1693257220818] - [RedisSubscriptionManager] Unsubscribing from channel: invoice
I20230828-21:13:44.801(0)? [1693257224800] - [RedisSubscriptionManager] Subscribing to channel: users::G26vG3R4wbCpxypW5
I20230828-21:13:44.804(0)? [1693257224803] - [RedisSubscriptionManager] Unsubscribing from channel: users::G26vG3R4wbCpxypW5

Does anyone have an idea what could be causing this?, we are doing everything pretty much the same way in both apps. Example of publication:

Meteor.publish("Company", function() {
  if(this.userId) {
    return Company.find({"users.user_id": this.userId});
  }
});

Example of mutation: just a normal find

Company.find({_id: "someId"});

Also we are using the same version of the package in both apps, and the app was working fine without the package using mongo oplog

lagartoverde avatar Aug 28 '23 21:08 lagartoverde

Thank you for submitting this issue!

We, the Members of Meteor Community Packages take every issue seriously. Our goal is to provide long-term lifecycles for packages and keep up with the newest changes in Meteor and the overall NodeJs/JavaScript ecosystem.

However, we contribute to these packages mostly in our free time. Therefore, we can't guarantee you issues to be solved within certain time.

If you think this issue is trivial to solve, don't hesitate to submit a pull request, too! We will accompany you in the process with reviews and hints on how to get development set up.

Please also consider sponsoring the maintainers of the package. If you don't know who is currently maintaining this package, just leave a comment and we'll let you know

github-actions[bot] avatar Aug 28 '23 21:08 github-actions[bot]