You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/03/18 08:23:32 UTC

[GitHub] [incubator-brpc] huchunjin opened a new issue #1067: 计数溢出导致程序退出

huchunjin opened a new issue #1067: 计数溢出导致程序退出
URL: https://github.com/apache/incubator-brpc/issues/1067
 
 
   **Describe the bug (描述bug)**
   线上一个服务在跑4~5天左右,就会出现程序退出现象,最后的日志如下:
   F0316 12:30:30.953776 393651 percentile.h:98] Check failed: _num_samples == _num_added (254 vs. 4294967280) _nu    m_added=4294967280 rhs._num_added30 _num_samples=254 rhs._num_samples=30 SAMPLE_SIZE=254 size2=30
   
   从日志看应该是计数溢出引起的
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:
   Compiler: centos 7.2
   brpc: 0.9.5
   protobuf: 2.6
   
   **Additional context/screenshots (更多上下文/截图)**
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] jamesge edited a comment on issue #1067: 计数溢出导致程序退出

Posted by GitBox <gi...@apache.org>.
jamesge edited a comment on issue #1067: 计数溢出导致程序退出
URL: https://github.com/apache/incubator-brpc/issues/1067#issuecomment-600950414
 
 
   percentile需要被定期reset,这个reset是在采样线程里做的。如果在fork出来的进程中运行brpc代码,老版本可能不会创建这个线程,所以才建议用master试试

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] jamesge commented on issue #1067: 计数溢出导致程序退出

Posted by GitBox <gi...@apache.org>.
jamesge commented on issue #1067: 计数溢出导致程序退出
URL: https://github.com/apache/incubator-brpc/issues/1067#issuecomment-600513298
 
 
   这是在fork产生的进程中么?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] jamesge commented on issue #1067: 计数溢出导致程序退出

Posted by GitBox <gi...@apache.org>.
jamesge commented on issue #1067: 计数溢出导致程序退出
URL: https://github.com/apache/incubator-brpc/issues/1067#issuecomment-600950414
 
 
   percentile需要被定期reset,这个reset是在采样线程里做的

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] ryankeke commented on issue #1067: 计数溢出导致程序退出

Posted by GitBox <gi...@apache.org>.
ryankeke commented on issue #1067: 计数溢出导致程序退出
URL: https://github.com/apache/incubator-brpc/issues/1067#issuecomment-601205634
 
 
   谢谢!我试下。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] ryankeke commented on issue #1067: 计数溢出导致程序退出

Posted by GitBox <gi...@apache.org>.
ryankeke commented on issue #1067: 计数溢出导致程序退出
URL: https://github.com/apache/incubator-brpc/issues/1067#issuecomment-600684465
 
 
   能说下为什么采用线程没起来可能会引起这个问题?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] jamesge commented on issue #1067: 计数溢出导致程序退出

Posted by GitBox <gi...@apache.org>.
jamesge commented on issue #1067: 计数溢出导致程序退出
URL: https://github.com/apache/incubator-brpc/issues/1067#issuecomment-600581177
 
 
   > > 这是在fork产生的进程中么?
   > 
   > 不是的
   
   这个可能是采样的线程没起来,和fork关系比较密切。一个方法是你们把brpc版本替换为master最新版,看看能否复现问题

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] ryankeke commented on issue #1067: 计数溢出导致程序退出

Posted by GitBox <gi...@apache.org>.
ryankeke commented on issue #1067: 计数溢出导致程序退出
URL: https://github.com/apache/incubator-brpc/issues/1067#issuecomment-600568080
 
 
   > 这是在fork产生的进程中么?
   
   不是的

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org