You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by re...@apache.org on 2016/01/18 16:00:55 UTC

[4/6] git commit: updated refs/heads/master to fac259f

Merge pull request #1294 from miguelaferreira/nsx-execution-counter-per-thread

Implement a NSX API request execution counter per threadThe NSX plugin has a execution counter to prevent infinite recursion (and as a result a stack overflow exception). However, the thread safeness of this counter are not as desired. The counter was implemented with an AtomicInteger which make it safe for multiple threads to update and read it. The desired property would be to have a counter per thread.

This PR addresses that issue.

* pr/1294:
  Fix execution counter to support separate counts per thread
  Add test to check that each thread has it's own execution counter

Signed-off-by: Remi Bergsma <gi...@remi.nl>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/1f1da0fa
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1f1da0fa
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1f1da0fa

Branch: refs/heads/master
Commit: 1f1da0fa594ef5fad2974cea371c7a5f635488b6
Parents: 24277e1 c35c416
Author: Remi Bergsma <gi...@remi.nl>
Authored: Mon Jan 18 12:41:20 2016 +0100
Committer: Remi Bergsma <gi...@remi.nl>
Committed: Mon Jan 18 12:41:21 2016 +0100

----------------------------------------------------------------------
 .../cloud/network/nicira/ExecutionCounter.java  | 12 +++--
 .../network/nicira/ExecutionCounterTest.java    | 47 ++++++++++++++++++++
 2 files changed, 55 insertions(+), 4 deletions(-)
----------------------------------------------------------------------