GSoC 2015 : Week 2

This post is regarding the work done in the second week of the GSoC coding period. To know more details about the project follow the Introduction link.

This week I completed the locate changed documents phase of the replication protocol and wrote tests for it. With this now we can get the missing revisions that are there on the source but not on the target and only these need to be transferred. I was away for most part of this week but now I am fully available to jump on the remaining tasks.

After this the major replicate phase would start which would continue for most part of this month. Also Since the CouchDB Replication Protocol works on top of HTTP, which is based on TCP/IP, the Replicator should expect to be working within an unstable environment with delays, losses and other bad surprises that might eventually occur. The Replicator should not count every HTTP request failure as a fatal error. It should be smart enough to detect timeouts, repeat failed requests, be ready to process incomplete or malformed data and so on. These thing are of main concern and need to be discussed with mentors and CouchDB community members, before I move ahead.

Leave a comment