• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • Statistics
  • nadeem
  • Reporter: gbevin
  • August 29, 2008
  • 0
  • Watchers: 0
  • April 10, 2009
  • April 03, 2009

Description

The cluster statistics recorder buffers all data locally on each node and sends the data out in batches to the gatherer on the TC server. During that time it needs the information of the active capturing session. However, when the session is stopped and all the data for it has been sent out, the session data itself should also be removed from the buffer. This isn’t done currently.

The consumeStatistics method of H2StatisticsBufferImpl should know when all session data has been consumed and at that time clear the session information from capturesession.

Without doing this, it’s not possible to re-use a capture session ID.

Comments

Geert Bevin 2008-08-29

Calling reinitialize clears away all session data and makes it possible to re-use the same session ID.

nadeem ghani 2008-08-29

Can’t reproduce this… both 2.6.3 and 2.6.3 + patch 1 seem to show the same behavior:

macbook ~/__releases/terracotta-2.6.3-ee/bin > ./tc-stats.sh startup createSession bar

Started up. Session ‘bar’ created. macbook ~/__releases/terracotta-2.6.3-ee/bin > ./tc-stats.sh startCapturing Capturing started. macbook ~/__releases/terracotta-2.6.3-ee/bin > ./tc-stats.sh shutdown
Shutdown finished. macbook ~/__releases/terracotta-2.6.3-ee/bin > ./tc-stats.sh startup createSession bar Started up. Session ‘bar’ created. macbook ~/__releases/terracotta-2.6.3-ee/bin > ./tc-stats.sh startCapturing Capturing started.

from admin console:

2008-08-29 14:54:52,003 [Job_Executor13] INFO com.tc.statistics.retrieval.impl.StatisticsRetrieverImpl - Statistics retrieval is STARTING for session ID ‘bar’ on node ‘10.0.0.113 (L2/9510)’. 2008-08-29 14:54:52,003 [Statistics Retriever Timer] INFO com.tc.statistics.retrieval.impl.StatisticsRetrieverImpl - Statistics retrieval in PROCESS for session ID ‘bar’ on node ‘10.0.0.113 (L2/9510)’ for 0 seconds. 2008-08-29 14:55:09,005 [Job_Executor8] INFO com.tc.statistics.retrieval.impl.StatisticsRetrieverImpl - Statistics retrieval has STOPPED for session ID ‘bar’ on node ‘10.0.0.113 (L2/9510)’ after running for 17 seconds. 2008-08-29 14:55:21,909 [Job_Executor18] WARN com.tc.statistics.buffer.h2.H2StatisticsBufferImpl - The capture session with ID ‘bar’ already exists, not creating it again. 2008-08-29 14:55:26,212 [Job_Executor12] WARN com.tc.statistics.agent.StatisticsAgentConnection - Unable to start capturing for session ‘bar’ on node ‘10.0.0.113 (L2/9510)’ 2008-08-29 14:55:26,219 [Job_Executor12] WARN com.tc.statistics.agent.StatisticsAgentConnection - Unable to start capturing for session ‘bar’ on node ‘10.0.0.113 (L1/0)’ 2008-08-29 14:55:26,230 [Job_Executor12] WARN com.tc.statistics.agent.StatisticsAgentConnection - Unable to start capturing for session ‘bar’ on node ‘10.0.0.113 (L1/1)’

What should I be doing differently?

Geert Bevin 2008-08-30

If you retrieve the statistics after the 2nd capture, there will nothing be recorded.

Fiona OShea 2008-09-03

Nadeem can you try this again with Geerts additional instructions?

nadeem ghani 2009-04-03

tested again on 3.0.0, and the second session is indeed empty