Drb problem : related with sended data size?

View: New views
5 Messages — Rating Filter:   Alert me  

Drb problem : related with sended data size?

by tbrazao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, we found a problem with drb... related with sended data size.

[server code]
#!/usr/bin/env jruby
require 'drb/drb'

URI="druby://localhost:9876"

class TestServer
 def values(x)
   array = []
   0.upto(x) { array << "x" }
   array
 end
end

FRONT_OBJECT = TestServer.new
DRb.start_service(URI,FRONT_OBJECT)
DRb.thread.join
[/server code]

[client code]
#!/usr/bin/env ruby
require 'drb/drb'

SERVER_URI="druby://localhost:9876"
DRb.start_service

test = DRbObject.new_with_uri(SERVER_URI)
puts test.values(10).to_s
puts test.values(100).to_s
puts test.values(1000).to_s
puts test.values(10000).to_s #Fails
[/client code]

We get a DRb::DRbConnError: premature marshal format(can't read)!
Is there any specification for the max data size allowed to send in drb?
Or it's a some kind of bug?

Thanks for any help!

#!/usr/bin/env ruby
require 'drb/drb'

SERVER_URI="druby://localhost:9876"
DRb.start_service

test = DRbObject.new_with_uri(SERVER_URI)
puts test.values(10).to_s
puts test.values(100).to_s
puts test.values(1000).to_s
puts test.values(10000).to_s #Fails
#puts test.values(1000).to_s
#!/usr/bin/env jruby
require 'drb/drb'

URI="druby://localhost:9876"

class TestServer
 def values(x)
   array = []
   0.upto(x) { array << "x" }
   array
 end
end

FRONT_OBJECT = TestServer.new
DRb.start_service(URI,FRONT_OBJECT)
DRb.thread.join
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Re: Drb problem : related with sended data size?

by Damian Steer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tiago Brazão wrote:
> Hi, we found a problem with drb... related with sended data size.
>

I found this quite hard to reproduce on my machine -- needed to up the
size a bit, and it still wasn't failing all the time.

Which version of jruby are you using? I tried trunk, which (as I said)
did fail sometimes (after some tweaking).

After applying the fix in [1] I couldn't reproduce the issue. Whether
that solves it, or just makes it even harder to reproduce, I can't say.
Could you try it and report back?

Thanks,

Damian

[1] <http://jira.codehaus.org/browse/JRUBY-2314>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Drb problem : related with sended data size?

by Reeves, Gareth :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We ran into the same problem yesterday... Would also be interested to hear a response if someone knows.  

Thanks 

Gareth

On Mar 27, 2008, at 6:22 AM, Tiago Brazão wrote:

Hi, we found a problem with drb... related with sended data size.

[server code]
#!/usr/bin/env jruby
require 'drb/drb'

URI="druby://localhost:9876"

class TestServer
def values(x)
 array = []
 0.upto(x) { array << "x" }
 array
end
end

FRONT_OBJECT = TestServer.new
DRb.start_service(URI,FRONT_OBJECT)
DRb.thread.join
[/server code]

[client code]
#!/usr/bin/env ruby
require 'drb/drb'

SERVER_URI="druby://localhost:9876"
DRb.start_service

test = DRbObject.new_with_uri(SERVER_URI)
puts test.values(10).to_s
puts test.values(100).to_s
puts test.values(1000).to_s
puts test.values(10000).to_s #Fails
[/client code]

We get a DRb::DRbConnError: premature marshal format(can't read)!
Is there any specification for the max data size allowed to send in drb? Or it's a some kind of bug?

Thanks for any help!
#!/usr/bin/env ruby
require 'drb/drb'

SERVER_URI="druby://localhost:9876"
DRb.start_service

test = DRbObject.new_with_uri(SERVER_URI)
puts test.values(10).to_s
puts test.values(100).to_s
puts test.values(1000).to_s
puts test.values(10000).to_s #Fails
#puts test.values(1000).to_s#!/usr/bin/env jruby
require 'drb/drb'

URI="druby://localhost:9876"

class TestServer
def values(x)
  array = []
  0.upto(x) { array << "x" }
  array
end
end

FRONT_OBJECT = TestServer.new
DRb.start_service(URI,FRONT_OBJECT)
DRb.thread.join---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehausorg/manage_email

Gareth Reeves
Project Manager
Stark Investments | Information Technology
500 W. Madison Street, Suite 1710
Chicago, IL 60661
312.281.4639| fax: 312.281.464



 
 
 
This transmission contains information for the exclusive use of the intended recipient and may be privileged, confidential and/or otherwise protected from disclosure.  Any unauthorized review or distribution is strictly prohibited.  Our company is required to retain electronic mail messages, which may be produced at the request of regulators or in connection with litigation. Electronic messages cannot be guaranteed to be secure, timely or error-free.  As such, we recommend that you do not send confidential information to us via electronic mail. This communication is for informational purposes only and is not an offer or solicitation to buy or sell any investment product.  Any information regarding specific investment products is subject to change without notice.  If you received this transmission in error, please notify the sender immediately by return e-mail and delete this message and any attachments from your system.


Re: Drb problem : related with sended data size?

by tbrazao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Damian Steer wrote:

> Tiago Brazão wrote:
>> Hi, we found a problem with drb... related with sended data size.
>>
>
> I found this quite hard to reproduce on my machine -- needed to up the
> size a bit, and it still wasn't failing all the time.
>
> Which version of jruby are you using? I tried trunk, which (as I said)
> did fail sometimes (after some tweaking).
>
> After applying the fix in [1] I couldn't reproduce the issue. Whether
> that solves it, or just makes it even harder to reproduce, I can't
> say. Could you try it and report back?
>
> Thanks,
>
> Damian
>
> [1] <http://jira.codehaus.org/browse/JRUBY-2314>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>
Hi, it seems that trunk ( i updated about 5 minutes) have some drb
problems... But, i tested with RC3 and the fix seems to work! If i found
something strange i report ...

Thanks for the help!

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



RE: Drb problem : related with sended data size?

by Reeves, Gareth :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Worked for me as well.

-----Original Message-----
From: Tiago Brazão [mailto:tiago.brazao@...]
Sent: Thursday, March 27, 2008 10:48 AM
To: user@...
Subject: Re: [jruby-user] Drb problem : related with sended data size?

Damian Steer wrote:

> Tiago Brazão wrote:
>> Hi, we found a problem with drb... related with sended data size.
>>
>
> I found this quite hard to reproduce on my machine -- needed to up the
> size a bit, and it still wasn't failing all the time.
>
> Which version of jruby are you using? I tried trunk, which (as I said)
> did fail sometimes (after some tweaking).
>
> After applying the fix in [1] I couldn't reproduce the issue. Whether
> that solves it, or just makes it even harder to reproduce, I can't
> say. Could you try it and report back?
>
> Thanks,
>
> Damian
>
> [1] <http://jira.codehaus.org/browse/JRUBY-2314>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>
Hi, it seems that trunk ( i updated about 5 minutes) have some drb
problems... But, i tested with RC3 and the fix seems to work! If i found
something strange i report ...

Thanks for the help!

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
 
 
 
This transmission contains information for the exclusive use of the intended recipient and may be privileged, confidential and/or otherwise protected from disclosure.  Any unauthorized review or distribution is strictly prohibited.  Our company is required to retain electronic mail messages, which may be produced at the request of regulators or in connection with litigation. Electronic messages cannot be guaranteed to be secure, timely or error-free.  As such, we recommend that you do not send confidential information to us via electronic mail. This communication is for informational purposes only and is not an offer or solicitation to buy or sell any investment product.  Any information regarding specific investment products is subject to change without notice.  If you received this transmission in error, please notify the sender immediately by return e-mail and delete this message and any attachments from your system.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email