seata Metrics statistics are incorrect.

gk7wooem  于 2个月前  发布在  其他
关注(0)|答案(3)|浏览(25)
  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

Metrics statistics are incorrect.

Ⅱ. Describe what happened

If there is an exception, please attach the exception trace:

Just paste your stack trace here!

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. xxx
  2. xxx
  3. xxx

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • JDK version :
  • Seata version:
  • OS :
  • Others:
ego6inou

ego6inou1#

如果使用的是TC集群, 由于事务的begin和commit不在同一台TC进行,导致单台TC的counter指标可能只增不减或只减不增。 综合所有TC的指标一起看的话应该是没问题的。

5ktev3wc

5ktev3wc2#

如果使用的是TC集群, 由于事务的begin和commit不在同一台TC进行,导致单台TC的counter指标可能只增不减或只减不增。 综合所有TC的指标一起看的话应该是没问题的。

only one node.

xoefb8l8

xoefb8l83#

如果使用的是TC集群, 由于事务的begin和commit不在同一台TC进行,导致单台TC的counter指标可能只增不减或只减不增。 综合所有TC的指标一起看的话应该是没问题的。

only one node.

应该是这种情况:
TC在处理了527个prepare成功之后重启了(保存到redis/db/file),重启之后内存的metric就从0开始处理(localhost:9898是内存里面的数据),可以看到你下面的committed正好是=527,处理完成之后远端的527加上这里的-527正好是0

相关问题