[CBMA-28] Couch throws erlang based errors with large DB Created: 23/Jul/12  Updated: 25/Jul/12

Status: Open
Project: Couchbase Mobile Android
Component/s: None
Affects Version/s: 2.0-beta
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Nick Kitto Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Android on Samsung Galaxy Tablets

Attachments: Text File couch.log    

 Description   
Have been using Couchbase Mobile for several months on a large ish database. Recently couch has been throwing errors every so often. This seems to happen when the device has been on for about 4 or 5 hours. I post a message to do a push and pull replication to couch every 45 seconds (+ there are other calls dependent on the user changing pages in the couchapp). After it throws this error it becomes completely unresponsive.

These are the errors it writes in couch.log on the android devices (likely when a replication has been posted)

[Mon, 23 Jul 2012 01:01:01 GMT] [error] [emulator] driver_select(0x00000022, 266, ERL_DRV_USE, 0) by udp_inet driver #Port<0.5154> failed: fd=266 is larger than the largest allowed fd=255
[Mon, 23 Jul 2012 01:01:01 GMT] [error] [emulator] driver_select(0x00000025, 269, ERL_DRV_WRITE ERL_DRV_USE, 1) by tcp_inet driver #Port<0.5157> failed: fd=269 is larger than the largest allowed fd=255

The fd number keeps increasing each request.
Any ideas? Google searches seem to come up with either socket issues or with file descriptor issues.

 Comments   
Comment by Nick Kitto [ 25/Jul/12 ]
Here is the snippet from the log file while this was happening
Generated at Tue Jun 18 22:06:34 CDT 2013 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.