Code Monkey home page Code Monkey logo

Comments (6)

dlmarion avatar dlmarion commented on June 3, 2024

So, I did some testing, and it's not the use of RANDOM vs $RANDOM. The log has the same IP being selected over and over again. So, maybe it's something else.

from accumulo-testing.

ctubbsii avatar ctubbsii commented on June 3, 2024

So, I did some testing, and it's not the use of RANDOM vs $RANDOM. The log has the same IP being selected over and over again. So, maybe it's something else.

I'm not that familiar with RANDOM vs $RANDOM, but in testing the existing expressions, they seemed to both work for me.

from accumulo-testing.

ctubbsii avatar ctubbsii commented on June 3, 2024

I don't see anything immediately obviously wrong with the use of RANDOM to select nodes from the bash array to kill. But, I wouldn't append to the kill array using the index, like the script is currently doing (array[index]=foo). Instead, I'd do array=("${array[@]}" foo), which I am more familiar with. I don't know if the former works on older bash, but when testing, it did seem to work on mine, so it could be fine. (I'm running 5.2.2)

from accumulo-testing.

dlmarion avatar dlmarion commented on June 3, 2024

I found it. Can't believe I didn't see it earlier.

from accumulo-testing.

dlmarion avatar dlmarion commented on June 3, 2024

I'm wondering if this was meant to be if num_hosts == 1 ...

from accumulo-testing.

ctubbsii avatar ctubbsii commented on June 3, 2024

@dlmarion Those two lines of code look okay to me. It looks like it's a simplified case where it avoids all the array logic if you're only killing up to 1 node. (max_kill == 1). Though, in that case, I suppose it could pick a random one, instead of always selecting the first.

from accumulo-testing.

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.