On Nov 9, 2012, at 8:41 AM, Paul K. Gedeon <
paul....@gmail.com> wrote:
> #1 Turn DHCP off and back on. Sometimes replication works after the test, sometimes it doesn't
> ---------------------------
> Result
> ----------------------------
>
> 1) Turned DHCP off
> 2) Received following message:
> WARNING*** : TDPusher[[...]
cloudant.com/ [...]]: Unable to save remote checkpoint: Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo=0x19f6de90 {NSErrorFailingURLStringKey=[...]
cloudant.com/ [...], NSErrorFailingURLKey=[...]
cloudant.com/ [...], NSLocalizedDescription=The Internet connection appears to be offline., NSUnderlyingError=0x18af31a0 "The Internet connection appears to be offline.”}
That’s normal (so probably this message should be downgraded from a warning.)
> 6) Turned DHCP on
> 7) Received following message:
> [{"error":[-1003,"A server with the specified hostname could not be found."],"x_active_requests":[],"type":"Replication","continuous":true,"source":"[...]","task":"repl001","target":"[...]
cloudant.com/ [...]","status":"Idle"},{"error":[-1003,"A server with the specified hostname could not be found."],"x_active_requests":[],"type":"Replication","continuous":true,"source":"rocktown_datahex","task":"repl002","target":"[...]
cloudant.com/ [...]","status":"Idle”}]
This looks like the system notification that the host is reachable was sent too early, before DNS came back up. Seems like an OS issue, but if it happens often I should figure out a workaround. How commonly does this happen, and does it happen in more realistic situations? (What exactly did you do to turn off DHCP?)
> 3.2 Unblocked the HTTP requests/ The replication returns to an idle state when I unblock them (abnormal behavior IMO)
What is it doing that’s abnormal?
> {{ "x_active_requests": [], "type": "Replication", "continuous": true, "source": [...], "task": "repl002", "target": "[...]
cloudant.com/ [...]", "status": "Idle" }}
> (NOTICE: he switched to repl002, does this mean he tried to re-init the local DB?)
No, that’s just the identifier of the replication task. Pay no attention to it :)
By the way, there is a “Network Link Conditioner” system-prefs pane you can install that will let you simulate various network conditions. You can specify bandwidth, latency, packet loss, DNS delays, etc. I believe it’s downloadable from Apple’s developer website.
—Jens