Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
renctan sent you a message
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Pratik Daga  
View profile  
 More options Nov 8 2010, 7:30 pm
From: Pratik Daga <pd...@nyu.edu>
Date: Mon, 08 Nov 2010 19:30:00 -0500
Subject: Re: [GitHub] renctan sent you a message
Yeah I did that!! actually!!
But I think I got bigger bug in a process not in my code but in node.js
If I am not wrong.

Here is the scenario

Assume I have list of servers in ServerCluster Object.

a = new ServerCluster(Serverlist);
=> d = new db("testdb", a,....)

=> than I do sleep(50)// which do sleep for 50 sec in meanwhile I  put server down and up again before it goes to next line
//  I do this to get new master

=> d.open(err, reply){  // here it give me err that Connection is Reset... in node.js line no....
db.close();

}

it means that node.js don't except connection reset or server up/down in between.

It should not do this because db.open() check the above situation and have code to handle it .
 And I am also using same logic in my code.  
So until and unless I don't fix this or find the problem in code. Doesn't make any sense

Am I clear with problem?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik Daga  
View profile  
 More options Nov 8 2010, 7:41 pm
From: Pratik Daga <pd...@nyu.edu>
Date: Mon, 08 Nov 2010 19:41:42 -0500
Local: Mon, Nov 8 2010 7:41 pm
Subject: Re: [GitHub] renctan sent you a message
I am trying to figure out everything into detail.
Once I solve this problem,  I am fine to push code.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Randolph  
View profile  
 More options Nov 8 2010, 10:37 pm
From: Randolph <renc...@gmail.com>
Date: Mon, 8 Nov 2010 19:37:52 -0800 (PST)
Local: Mon, Nov 8 2010 10:37 pm
Subject: Re: renctan sent you a message
I don't fully understand the problem, but I think we can address this
as a seperate issue as long as it is not a bug introduced by the new
code addition.

On Nov 8, 7:41 pm, Pratik Daga <pd...@nyu.edu> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik Daga  
View profile  
 More options Nov 8 2010, 11:04 pm
From: Pratik Daga <pd...@nyu.edu>
Date: Mon, 08 Nov 2010 23:04:39 -0500
Local: Mon, Nov 8 2010 11:04 pm
Subject: Re: renctan sent you a message
I will send a code which will describe code problem in sometime.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "replset" by Pratik Daga
Pratik Daga  
View profile  
 More options Nov 9 2010, 6:40 am
From: Pratik Daga <pd...@nyu.edu>
Date: Tue, 09 Nov 2010 06:40:19 -0500
Local: Tues, Nov 9 2010 6:40 am
Subject: replset
ok , so I am trying to figure out, why I am getting error and why it is not handled in try catch.
I am using code in example folder for testing but all of them asynchronous and if I try to add some kind of
sleep method for few seconds and try to up/down server to check functionality I am not able trace it.

Even I am not sure that is it bug in my code or is it something related to asynch.

Note:-- problem comes especially when error is thrown from node.js its just not handled by my code, it get return
------------ some error-----------
node.js:63
    throw e;
    ^
Error: EPIPE, Broken pipe
    at Stream._writeImpl (net:300:14)
    at Stream._writeOut (net:732:25)
    at Stream.write (net:665:17)
-------------------------------------------------

node.js:63
    throw e;
    ^
Error: ENOTCONN, Socket is not connected
    at Stream._shutdownImpl (net:309:18)
    at Stream._shutdown (net:1003:14)
    at Stream.flush (net:790:12)
    at Stream.end (net:1029:12)
------------------------------------------------

node.js:63
    throw e;
    ^
Error: ECONNRESET, Connection reset by peer
    at Stream._readImpl (net:304:14)
    at IOWatcher.callback (net:454:24)
    at node.js:768:9


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristina Chodorow  
View profile  
 More options Nov 9 2010, 3:45 pm
From: Kristina Chodorow <krist...@10gen.com>
Date: Tue, 9 Nov 2010 15:45:17 -0500
Local: Tues, Nov 9 2010 3:45 pm
Subject: Re: replset

The main thing is to have the driver autodetect the master.  Please commit
once you have that implemented.  We can all work on these little things,
especially once we can see the code.

Those errors are all various networking errors caused by reading from or
writing to an invalid socket (when you bring down the server, the socket
becomes invalid).  Some of these should be caught and retried by the driver
(e.g., reads), others are unsafe to retry (database commands, writes).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik Daga  
View profile  
 More options Nov 9 2010, 3:58 pm
From: Pratik Daga <pd...@nyu.edu>
Date: Tue, 09 Nov 2010 15:58:41 -0500
Local: Tues, Nov 9 2010 3:58 pm
Subject: Re: replset
Ok If that is a case I will commit it today with clean code.
Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristina Chodorow  
View profile  
 More options Nov 9 2010, 4:00 pm
From: Kristina Chodorow <krist...@10gen.com>
Date: Tue, 9 Nov 2010 16:00:01 -0500
Local: Tues, Nov 9 2010 4:00 pm
Subject: Re: replset

Great!

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik Daga  
View profile  
 More options Nov 11 2010, 12:47 am
From: Pratik Daga <pd...@nyu.edu>
Date: Thu, 11 Nov 2010 00:47:14 -0500
Local: Thurs, Nov 11 2010 12:47 am
Subject: Re: replset
Let me know what you think about code I added!!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristina Chodorow  
View profile  
 More options Nov 13 2010, 4:58 pm
From: Kristina Chodorow <krist...@10gen.com>
Date: Sat, 13 Nov 2010 16:58:00 -0500
Subject: Re: replset

Better, but it looks like you're still using dbcopy.  You can't have any
static/global variables like that, in case people are using multiple
Connection instances.

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik Daga  
View profile  
 More options Nov 13 2010, 5:23 pm
From: Pratik Daga <pd...@nyu.edu>
Date: Sat, 13 Nov 2010 17:23:47 -0500
Local: Sat, Nov 13 2010 5:23 pm
Subject: Re: replset
thanks for replying,

https://github.com/pdaga/node-mongodb-native/blob/9e1f9b83f2806a05b14...

I don't think so, if you see executecommand  function in db.js @ line 532
I called checkMaster(this)

and in checkMaster I used dbcopy as a parameter and it returns it when you get err or master(line 590 and 596)
and at line 532 dbcopy is handled as  dbinstance

Also I haven't declared dbcopy anywhere in db.js apart from ensureMaster function
so its local to ensureMaster.

so how does it makes it global or static global.

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristina Chodorow  
View profile  
 More options Nov 15 2010, 4:28 pm
From: Kristina Chodorow <krist...@10gen.com>
Date: Mon, 15 Nov 2010 16:28:40 -0500
Local: Mon, Nov 15 2010 4:28 pm
Subject: Re: replset

Ah, I see!  I think that's almost exactly correct, will discuss a slight
change tonight.

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik Daga  
View profile  
 More options Nov 20 2010, 12:59 am
From: Pratik Daga <pd...@nyu.edu>
Date: Sat, 20 Nov 2010 00:59:06 -0500
Local: Sat, Nov 20 2010 12:59 am
Subject: Re: replset
sorry for getting back late! was working on deadlines.
Will fix code as we discussed including indentation and private method
also will be working on gridfs streaming part. will get back to you by
monday.

pratik daga

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristina Chodorow  
View profile  
 More options Nov 24 2010, 1:14 pm
From: Kristina Chodorow <krist...@10gen.com>
Date: Wed, 24 Nov 2010 13:14:26 -0500
Local: Wed, Nov 24 2010 1:14 pm
Subject: Re: replset

Replica set code has been merged in!

Now we have to try to break it.  We can brainstorm cases/tests on Monday and
come up with more stuff to build on it.

Thanks, Pratik!

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik Daga  
View profile  
 More options Nov 24 2010, 3:23 pm
From: Pratik Daga <pd...@nyu.edu>
Date: Wed, 24 Nov 2010 15:23:28 -0500
Local: Wed, Nov 24 2010 3:23 pm
Subject: Re: replset
sure, as you showed one test case as I remember in which you have try catch in a loop.
will try to work on same approach!!

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »