Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: MFTF does not close connection to Selenium hub #660

Closed
lbajsarowicz opened this issue Mar 28, 2020 · 6 comments
Closed

Bug: MFTF does not close connection to Selenium hub #660

lbajsarowicz opened this issue Mar 28, 2020 · 6 comments

Comments

@lbajsarowicz
Copy link
Contributor

While everything works as expected when running standalone instance of Selenium, when running Selenium hub repeatedly - the browser instances are not being freed up.

Preconditions

  1. Start selenium hub and 3 instances of selenium chrome assigned to the hub

Steps to reproduce

  1. Run any suite and wait till it's done
  2. Try to run the suite again

Expected result

  1. Suite is being performed

Actual result

  1. MFTF reports that it cannot connect to selenium hub
    image
@lbajsarowicz
Copy link
Contributor Author

lbajsarowicz commented Mar 29, 2020

Having 3 instances of Selenium Chrome and running single test, I end up with $ curl http://selenium-hub:4444/wd/hub/status returning

{
  "status": 0,
  "value": {
    "ready": false,
    "message": "No spare hub capacity",
    "build": {
      "revision": "e82be7d358",
      "time": "2018-11-14T08:25:53",
      "version": "3.141.59"
    },
    "os": {
      "arch": "amd64",
      "name": "Linux",
      "version": "5.3.0-40-generic"
    },
    "java": {
      "version": "1.8.0_242"
    }
  }

Selenium Hub restart helps:

{
  "status": 0,
  "value": {
    "ready": true,
    "message": "Hub has capacity",
    "build": {
      "revision": "e82be7d358",
      "time": "2018-11-14T08:25:53",
      "version": "3.141.59"
    },
    "os": {
      "arch": "amd64",
      "name": "Linux",
      "version": "5.3.0-40-generic"
    },
    "java": {
      "version": "1.8.0_242"
    }
  }
}

@lbajsarowicz
Copy link
Contributor Author

That might be a hint: elgalu/docker-selenium#296

@okolesnyk okolesnyk added this to TODO in Community Issues via automation Apr 2, 2020
@jilu1 jilu1 added needs team discussion An issue needs team review before being accepted or rejected and removed needs team discussion An issue needs team review before being accepted or rejected labels Jul 27, 2020
@jilu1
Copy link
Contributor

jilu1 commented Jul 28, 2020

@lbajsarowicz This issue might have been fixed. Can you please try this with MFTF 3.0.0?

@lbajsarowicz
Copy link
Contributor Author

@jilu1 Verifying that now.

@lbajsarowicz
Copy link
Contributor Author

@jilu1 Looks like it was fixed. Could you tell me which PR fixed that?

Community Issues automation moved this from TODO to Done Dec 10, 2020
@jilu1
Copy link
Contributor

jilu1 commented Dec 10, 2020

@jilu1 Looks like it was fixed. Could you tell me which PR fixed that?

It's fixed as part of 3.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants