Git Product home page Git Product logo

dynatrace-synthetic's People

Contributors

beeme1mr avatar

Watchers

 avatar  avatar  avatar

Forkers

smc87

dynatrace-synthetic's Issues

'teardown()' closes connection manager; monitor fails with 'IllegalStateException: Connection pool shut down'

The issue

After a change in plugin properties (plugin name, username, password, test name, test type, etc.), the teardown() will be executed and the PoolingHttpClientConnectionManager (from the underlying library http-client) will be closed. The next execution of the plugin fails because the connection manager is shut down.

Please see captured log below with commentaries:

Last successful execution (before property change) (16:04):

(...)
2015-11-19 16:04:43 FINE [monitor@New Synthetic_0] Successfully received test data
2015-11-19 16:04:43 FINE [monitor@New Synthetic_0] Starting to summarize backbone data
2015-11-19 16:04:43 FINE [monitor@New Synthetic_0] This is a new location
2015-11-19 16:04:43 FINE [monitor@New Synthetic_0] Successfully created the summary object - saving time stamp
2015-11-19 16:04:43 FINE [monitor@New Synthetic_0] Finished the execute method

First execution (after property change) (16:09). The execution starts with calling teardown(), as seen by the "Shutting down Unirest" log message.

2015-11-19 16:09:43 FINE [monitor@New Synthetic_0] Shutting down Unirest
2015-11-19 16:09:43 FINE [PoolingHttpClientConnectionManager@New Synthetic_0] Connection manager is shutting down
2015-11-19 16:09:43 FINE [PoolingHttpClientConnectionManager@New Synthetic_0] Connection manager shut down

Now, the execute() begins, trying to authenticate. However, a Unirest exception is captured and the Connection pool shut down exception is thrown.

2015-11-19 16:09:43 FINE [monitor@New Synthetic_0] Starting the execute method
2015-11-19 16:09:43 FINE [monitor@New Synthetic_0] Attempting to authenticate gabriel.prioli@...
2015-11-19 16:09:43 FINE [PoolingHttpClientConnectionManager@New Synthetic_0] Connection request: [route: {}->http://127.0.0.1:81][total kept alive: 0; route allocated: 0 of 100; total allocated: 0 of 250]
2015-11-19 16:09:43 SEVERE [monitor@New Synthetic_0] A Unirest exception has been thrown while attempting to get test data
2015-11-19 16:09:43 SEVERE [monitor@New Synthetic_0] java.lang.IllegalStateException: Connection pool shut down

How to reproduce

  • Configure a monitor
  • Let it run once to see it is working properly
  • Change the monitor name (or username, pass, etc.)
  • Let it run again and check if it fails with the above exception

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.