mojodna/metricsd — Issue #7: counter decrements will result in error
Author: skeleton9
Created: 2012-02-24 10:31:35+00:00
State: open

I'm using metricsd-0.4.1-jar-with-dependencies.jar with default settings under Ubuntu 10.04

counter increment works OK for me.
But when send message as "test:-10|c" will get this:

ERROR [2012-02-24 10:25:57,266] net.mojodna.metricsd.server.MetricsServiceHandler: Exception in MetricsServiceHandler
! scala.MatchError: test:-10|c (of class java.lang.String)
!	at net.mojodna.metricsd.server.MetricsServiceHandler$$anonfun$messageReceived$1.apply(MetricsServiceHandler.scala:33)
!	at net.mojodna.metricsd.server.MetricsServiceHandler$$anonfun$messageReceived$1.apply(MetricsServiceHandler.scala:31)
!	at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:34)
!	at scala.collection.mutable.ArrayOps.foreach(ArrayOps.scala:38)
!	at net.mojodna.metricsd.server.MetricsServiceHandler.messageReceived(MetricsServiceHandler.scala:30)
!	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
!	at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:71)
!	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
!	at org.jboss.netty.channel.socket.nio.NioDatagramWorker.read(NioDatagramWorker.java:413)
!	at org.jboss.netty.channel.socket.nio.NioDatagramWorker.processSelectedKeys(NioDatagramWorker.java:342)
!	at org.jboss.netty.channel.socket.nio.NioDatagramWorker.run(NioDatagramWorker.java:255)
!	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
!	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
!	at java.lang.Thread.run(Thread.java:636)