Skip to content

DOC-14441-correlation ID#1105

Merged
iamfortune merged 8 commits into
release/3.4from
DOC-14441-correlation-id
Jun 25, 2026
Merged

DOC-14441-correlation ID#1105
iamfortune merged 8 commits into
release/3.4from
DOC-14441-correlation-id

Conversation

@iamfortune

@iamfortune iamfortune commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Docs Issue: DOC-14441

PR to add correlation ID to 3.4 release

Preview URL:
https://preview.docs-test.couchbase.com/docs-couchbase-lite-DOC-14441-correlation-id

You will need the Docs Team credentials on Confluence.

@iamfortune iamfortune requested review from idulo and pasin June 12, 2026 15:18
Comment thread modules/android/pages/replication.adoc Outdated
Comment thread modules/android/pages/replication.adoc Outdated
idulo
idulo previously approved these changes Jun 24, 2026
Comment thread modules/android/pages/replication.adoc Outdated
throws CouchbaseLiteException {
ReplicatorConfiguration config = new ReplicatorConfiguration(db1, new DatabaseEndpoint(db2));
config.setReplicatorType(ReplicatorConfiguration.ReplicatorType.PUSH_AND_PULL);
CollectionConfiguration collectionConfig = new CollectionConfiguration(db1.getDefaultCollection());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should remove the above old code (2 lines) as well.

Comment thread modules/android/pages/replication.adoc Outdated
Comment thread modules/android/pages/replication.adoc Outdated
Comment thread modules/swift/pages/replication.adoc
throws CouchbaseLiteException {
ReplicatorConfiguration config = new ReplicatorConfiguration(db1, new DatabaseEndpoint(db2));
config.setReplicatorType(ReplicatorConfiguration.ReplicatorType.PUSH_AND_PULL);
ReplicatorConfiguration config = new ReplicatorConfiguration(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hasn't been fixed yet.

The config was created twice with two the (deprecated) way and the new way. Can you delete line 156 and 157?

throws CouchbaseLiteException {
ReplicatorConfiguration config = new ReplicatorConfiguration(db1, new DatabaseEndpoint(db2));
config.setReplicatorType(ReplicatorConfiguration.ReplicatorType.PUSH_AND_PULL);
ReplicatorConfiguration config = new ReplicatorConfiguration(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config was created twice with two the (deprecated) way and the new way.

throws CouchbaseLiteException {
ReplicatorConfiguration config = new ReplicatorConfiguration(db1, new DatabaseEndpoint(db2));
config.setReplicatorType(ReplicatorConfiguration.ReplicatorType.PUSH_AND_PULL);
ReplicatorConfiguration config = new ReplicatorConfiguration(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config was created twice with two the (deprecated) way and the new way.

ReplicatorConfiguration config = new ReplicatorConfiguration(
Set.of(collectionConfig),
new DatabaseEndpoint(db2)
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change to the followings:

public Replicator runReplicator(Database db1, Database db2, ReplicatorChangeListener listener)
        throws CouchbaseLiteException {
        CollectionConfiguration collectionConfig = 
                new CollectionConfiguration(db1.getDefaultCollection());

        ReplicatorConfiguration config = new ReplicatorConfiguration(
                Set.of(collectionConfig),
                new DatabaseEndpoint(db2)
    );

ReplicatorConfiguration config = new ReplicatorConfiguration(
Set.of(collectionConfig),
new DatabaseEndpoint(db2)
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change to the followings:

public Replicator runReplicator(Database db1, Database db2, ReplicatorChangeListener listener)
        throws CouchbaseLiteException {
        CollectionConfiguration collectionConfig = 
                new CollectionConfiguration(db1.getDefaultCollection());

        ReplicatorConfiguration config = new ReplicatorConfiguration(
                Set.of(collectionConfig),
                new DatabaseEndpoint(db2)
    );

ReplicatorConfiguration config = new ReplicatorConfiguration(
Set.of(collectionConfig),
new DatabaseEndpoint(db2)
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change to the followings:

public Replicator runReplicator(Database db1, Database db2, ReplicatorChangeListener listener)
        throws CouchbaseLiteException {
        CollectionConfiguration collectionConfig = 
                new CollectionConfiguration(db1.getDefaultCollection());

        ReplicatorConfiguration config = new ReplicatorConfiguration(
                Set.of(collectionConfig),
                new DatabaseEndpoint(db2)
    );

@iamfortune iamfortune merged commit 440ce68 into release/3.4 Jun 25, 2026
@iamfortune iamfortune deleted the DOC-14441-correlation-id branch June 25, 2026 18:11
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

Successfully merging this pull request may close these issues.

3 participants