Coder Social home page Coder Social logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
Thanks, this is a good find. It will be a severe bug for us as well because
running pdsh where there is output from only some nodes is a common idiom for
us.

Do you know if this issue only happens with rsh? (Have you tried mrsh/ssh/exec)

mark

Original comment by [email protected] on 11 Feb 2013 at 9:58

  • Added labels: Priority-High
  • Removed labels: Priority-Medium

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
Ah, the -S option appears to be required to recreate this problem:

grondo@hype355:~/git/pdsh.git/src/pdsh$ pdsh -S -w hype[210-213] cd ..
hype210: hype212: hype211: hype213: grondo@hype355:~/git/pdsh.git/src/pdsh$ 
grondo@hype355:~/git/pdsh.git/src/pdsh$ pdsh -w hype[210-213] cd ..

and I cannot recreate the problem while using the 'exec' module (which is 
unfortunate
for writing a testcase, but another good clue here)

To collect return codes from remote processes the rsh and mrsh modules use a 
special
string embedded at the beginning of a line. If there is otherwise no output, 
then
when this string is removed it leaves an empty line sans newline, so we get the
unwanted behavior.

I'll try to find exactly when this broke.

Original comment by [email protected] on 11 Feb 2013 at 10:15

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
So far, only tested with mrsh. Do not know if it happens with rsh or ssh.

Original comment by [email protected] on 11 Feb 2013 at 10:50

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
Yes, git bisect verified your guess above that commit 
c37f0b533b93c0d6825df83dc3035ec54a1ce3e8 was the culprit.
Now comparing that change with preexisting code, I do see
that an if (strlen(buf) > 0) was dropped.

Thanks, this will be fixed in pdsh-2.29

Original comment by [email protected] on 11 Feb 2013 at 11:16

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
This issue was closed by revision 60b39484c3c9.

Original comment by [email protected] on 11 Feb 2013 at 11:20

  • Changed state: Fixed

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
Joshua:

If you are willing can you verify the fix applied in revision 60b39484c3c9?

Original comment by [email protected] on 11 Feb 2013 at 11:26

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
Just built and tested on el5 {i686|x86_64} and el6 {i686|x86_64}. Did not test 
suse11, but I can't imagine why it would be any different. The behavior is as 
expected.

How soon do you think this will be made into a release?

Original comment by [email protected] on 12 Feb 2013 at 2:20

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
pdsh-2.29 should be out within the next day or so.

Original comment by [email protected] on 13 Feb 2013 at 12:18

from pdsh.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
I've uploaded pdsh-2.29

http://pdsh.googlecode.com/files/pdsh-2.29.tar.bz2

Original comment by [email protected] on 13 Feb 2013 at 6:06

from pdsh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.