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

"Error happened during synchronization" while updating version from 4.1.0 to 4.2.1 #171

Open
rashanjyot opened this issue Jul 12, 2019 · 0 comments

Comments

@rashanjyot
Copy link

rashanjyot commented Jul 12, 2019

The stack-trace below is of the error that occurred when I updated the version of stitch-android-sdk from 4.1.0. to 4.2.1.

error happened during synchronization:
java.lang.IllegalStateException: state should be: open
at com.mongodb.assertions.Assertions.isTrue(Assertions.java:70)
at com.mongodb.embedded.client.EmbeddedCluster.selectServer(EmbeddedCluster.java:78)
at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.(ClusterBinding.java:99)
at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.(ClusterBinding.java:95)
at com.mongodb.binding.ClusterBinding.getReadConnectionSource(ClusterBinding.java:82)
at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:395)
at com.mongodb.operation.CountOperation.execute(CountOperation.java:234)
at com.mongodb.operation.CountOperation.execute(CountOperation.java:66)
at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:179)
at com.mongodb.client.internal.MongoCollectionImpl.executeCount(MongoCollectionImpl.java:248)
at com.mongodb.client.internal.MongoCollectionImpl.count(MongoCollectionImpl.java:183)
at com.mongodb.client.internal.MongoCollectionImpl.count(MongoCollectionImpl.java:177)
at com.mongodb.stitch.core.services.mongodb.remote.sync.internal.NamespaceSynchronizationConfig.getStaleDocumentIds(NamespaceSynchronizationConfig.java:199)
at com.mongodb.stitch.core.services.mongodb.remote.sync.internal.DataSynchronizer.syncRemoteToLocal(DataSynchronizer.java:559)
at com.mongodb.stitch.core.services.mongodb.remote.sync.internal.DataSynchronizer.doSyncPass(DataSynchronizer.java:513)
at com.mongodb.stitch.core.services.mongodb.remote.sync.internal.DataSynchronizerRunner.run(DataSynchronizerRunner.java:61)
at java.lang.Thread.run(Thread.java:764)

Background:
I had a fully functional code utilising stitch-android-sdk v4.1.0. In order to add completion listener to syncMany(), I updated it to v4.2.1. However, this error was reported due to which synchronization could not be done. Also, I tried updating to different versions (v4.3.0 and v4.4.1) just in case, but the same error persisted.

Information that may be relevant: (However, the same information was logged while using previous version that worked fine)

  1. NETWORK [initandlisten] Sessions collection is not set up; waiting until next sessions refresh interval: The field 'expireAfterSeconds' is not valid for an index specification. Specification: { key: { lastUse: 1 }, name: "lsidTTLIndex", expireAfterSeconds: 1800 }
  2. NETWORK [initandlisten] received client metadata from :27017 embedded: { driver: { name: "mongo-java-driver|embedded", version: "3.9.0" }, os: { type: "Linux", name: "Linux", architecture: "armv8l", version: "3.18.14-13908947" }, platform: "Java/The Android Project/0.9" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant