I have a shareded collection which I'm trying to migrate from an existing production Cluster running v 2.4 to a new one running 2.6.
As both clusters are shareded, I'm using mongoexport from the old and mongoimport to the new so the data will go through the config servers. The way I'm doing it is the call mongoexport process and pipe the results into mongoimport process.
I'm guessing that the export | import process affects the size of the exported json which fails to be imported back to the new cluster. Is there any way I can avoid having this problem or even ignore some documents that cause this error? (I'd rather lose a few than lost all 8 million records).
Is there a way to go around this?
Thanks in advance