# Support of CCR for migration to a new Opensearch version

**URL:** <https://forum.opensearch.org/t/support-of-ccr-for-migration-to-a-new-opensearch-version/27939>\
**Category:** Cross-Cluster Replication\
**Created:** [March 19, 2026, 10:46am UTC](https://forum.opensearch.org/t/support-of-ccr-for-migration-to-a-new-opensearch-version/27939 "2026-03-19T10:46:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![farman](https://avatars.discourse-cdn.com/v4/letter/f/f14d63/32.png) [@farman](https://forum.opensearch.org/u/farman)\
**Post date:** [March 19, 2026, 10:46am UTC](https://forum.opensearch.org/t/support-of-ccr-for-migration-to-a-new-opensearch-version/27939/1 "2026-03-19T10:46:00Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser): 2.11 and above

**Describe the issue** : Can CCR be used to migrate data from older version of OpenSearch to a new one using Blue Green Deployment ? If so, then how do we know CCR is supported between which OpenSearch versions. Is this information officially available some where in OpenSearch Release Notes or other internal/external documentation. In the abscence of this information how can we get assurance that zero data loss upgrade of OpenSearch can be performed in real time without stopping or buffering the OpenSearch traffic data

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [March 19, 2026, 1:32pm UTC](https://forum.opensearch.org/t/support-of-ccr-for-migration-to-a-new-opensearch-version/27939/2 "2026-03-19T13:32:59Z")

</div>

@farman Can you take a look at this GitHub issue? A similar question was raised and answered there.

> <https://github.com/opensearch-project/cross-cluster-replication/issues/1608>
>
> \*\*Is your feature request related to a problem?\*\*
> A clear and concise descriptio…n of what the problem is, e.g. \_I'm always frustrated when \[...\]\_
> 
> I could not find any documentation under https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/index/ or https://docs.opensearch.org/latest/migrate-or-upgrade/rolling-upgrade/ about version compatibility for cross cluster replication between Leaders and Followers. I can see from https://docs.aws.amazon.com/opensearch-service/latest/developerguide/replication.html there is some mention of upgrading Follower clusters first, but based on my observation - 
> 
> 1. Creating new replications returns a validation error when the Leader cluster is higher than the Follower, for example - \`Leader index\[leader\_index2\] is on higher version \[3.2.0\] than follower \[2.19.3\]\`
> 2. Existing replication work fine regardless of the order of upgrading the Leader/Follower clusters. I even tried upgrading the Leader cluster first to \`3.2.0\` and the replication continued to work without a hitch. So that point on the AWS docs don't seem to be entirely accurate based on how CCR currently works. I assume the reason this works is because the lucene version for the leader and follower indices are the same.
> 
> \*\*What solution would you like?\*\*
> A clear and concise description of what you want to happen.
> 
> It would be good to get confirmation that upgrading Leader/Follower clusters, regardless of the order, does not interrupt existing replications by design.
> 
> It would also be good to document the expected compatibility and reliability information on https://docs.opensearch.org/latest/tuning-your-cluster/replication-plugin/index/ and/or https://docs.opensearch.org/latest/migrate-or-upgrade/rolling-upgrade/ as it would provide essential information for those using cross cluster replication on how to plan their upgrades.
> 
> \*\*What alternatives have you considered?\*\*
> A clear and concise description of any alternative solutions or features you've considered.
> 
> None.
> 
> \*\*Do you have any additional context?\*\*
> Add any other context or screenshots about the feature request here.
> 
> None.

---

<div class="post-metadata">

**Author:** ![farman](https://avatars.discourse-cdn.com/v4/letter/f/f14d63/32.png) [@farman](https://forum.opensearch.org/u/farman)\
**Post date:** [March 20, 2026, 10:13am UTC](https://forum.opensearch.org/t/support-of-ccr-for-migration-to-a-new-opensearch-version/27939/3 "2026-03-20T10:13:21Z")

</div>

Thanks I looked at it.

I am exploring the possibility of using CCR for upgrading from one OpenSearch version to another. In this regard it will be very beneficial to have the compatibility matrix between different OpenSearch versions where CCR is possible.  
I have also read that CCR will work if the source and target clusters are in the same major version or if target cluster is in the immediate next version as compared to the source cluster (e.g. source in 2.X and target in 3.X). Is it correct?

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [March 25, 2026, 10:28am UTC](https://forum.opensearch.org/t/support-of-ccr-for-migration-to-a-new-opensearch-version/27939/4 "2026-03-25T10:28:39Z")

</div>

@farman As per that GitHub issue, having a source with a lower version than the target can cause the error.  
I would suggest first upgrading the source and then following the target.

---

<div class="post-metadata">

**Author:** ![farman](https://avatars.discourse-cdn.com/v4/letter/f/f14d63/32.png) [@farman](https://forum.opensearch.org/u/farman)\
**Post date:** [March 26, 2026, 1:19pm UTC](https://forum.opensearch.org/t/support-of-ccr-for-migration-to-a-new-opensearch-version/27939/5 "2026-03-26T13:19:33Z")

</div>

@pablo Trying to map to CCR terminology, when you say “source” do you mean the “follower” cluster and when you say “target” , then, the “leader” cluster. If so, then it makes sense because as I have read that Lucene indices are backwards compatible (not forward compatible). So, if I have 2 clusters on versions 2.19 and 3.0, then it will still be possible for 3.0 cluster(having higher underlying Lucene version) to read data from opensearch 2.19 cluster(having lower underlying Lucene version).

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [March 26, 2026, 1:33pm UTC](https://forum.opensearch.org/t/support-of-ccr-for-migration-to-a-new-opensearch-version/27939/6 "2026-03-26T13:33:05Z")

</div>

@farman Apologies for the misleading terminology. That is correct, source = leader and target = follower.

---

<div class="post-metadata">

**Author:** ![farman](https://avatars.discourse-cdn.com/v4/letter/f/f14d63/32.png) [@farman](https://forum.opensearch.org/u/farman)\
**Post date:** [March 27, 2026, 7:49am UTC](https://forum.opensearch.org/t/support-of-ccr-for-migration-to-a-new-opensearch-version/27939/7 "2026-03-27T07:49:05Z")

</div>

@pablo OK, thanks.

So then as I understand, when we say “Source” we refer to the cluster which provides the source of data, in case of CCR that should be the “leader cluster”.  
Similarly when we say “Target”, we refer to the cluster where data will be replicated, in case of CCR that should be the “follower cluster”.

Since CCR uses a “pull” mechanism, i.e., “follower” pulls data from “leader”. And because it is possible for higher version Lucene Index (present in newer version of OpenSearch) to read data from a lower version of Lucene indices (present in older version of OpenSearch), therefore, ideally follower should be on a higher version of OpenSearch than leader which implies that “Target Cluster” should be on a higher version that “Source Cluster”, right?

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [March 31, 2026, 10:50am UTC](https://forum.opensearch.org/t/support-of-ccr-for-migration-to-a-new-opensearch-version/27939/8 "2026-03-31T10:50:43Z")

</div>

@farman I’ve just re-read my last statement. Your approach is correct; the follower must be upgraded first, and then the leader must follow the upgrade. Lucene isn’t forward-compatible.

One comment here, this is correct as long as CCR is unidirectional.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [May 30, 2026, 10:51am UTC](https://forum.opensearch.org/t/support-of-ccr-for-migration-to-a-new-opensearch-version/27939/9 "2026-05-30T10:51:39Z")

</div>

Closed on May 30, 2026, 10:51am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
