wisdom-framework / wisdom

A modular and dynamic web framework
http://wisdom-framework.org
Apache License 2.0
88 stars 42 forks source link

can't create my executor #521

Closed hboumedane closed 9 years ago

hboumedane commented 9 years ago

Hi,

when I try to create my own executor as explained in the doc , I'm using wisdom 9.1:

pools {
  executors {
    my-executor { # This is a name of the executor, used in the @Requires filter
      threadType: DAEMON # Thread type between POOLED and DAEMON
      hungTime : 1h # Hung threshold
      coreSize : 3 # Number of core threads created on start
      maxSize : 5 # Maximum numbers of threads
      keepAlive : 30m # The idle time before disposing an unused thread
      workQueueCapacity : 5 # Size of the work queue # (2147483647 = Integer.MAX = unbound)
      priority: 2 # the thread priority
    }
  }
}

I got this exception :

.IllegalArgumentException: A metric named wisdom-system-executor.queue already exists
cheleb commented 9 years ago

Hi, AFAIK it is fixed in master by https://github.com/wisdom-framework/wisdom/commit/9aa042c9ae53df2c66e543bf2d7a969b4a28a71c

hboumedane commented 9 years ago

it's part of the release ? i don't think so , because i'm using 0.9.1 release version

cheleb commented 9 years ago

Nope, you need to build the project from source or wait the next release.

hboumedane commented 9 years ago

thanks for the help..

barjo commented 9 years ago

duplicated with #516