You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/10/17 00:35:36 UTC

[GitHub] [couchdb] nickva opened a new pull request #3790: Fix badarith error in get_db_timeout when request timeout = infinity

nickva opened a new pull request #3790:
URL: https://github.com/apache/couchdb/pull/3790


   `infinity` it turns out is a valid configuration value for fabric request_timeout. We can pass that to Erlang `receive` statement, any arithmetic with it would fail.
   
   To guard against the crash use the max small int value (60 bits). With enough shards, due to the exponential nature of the algorithm, we still get a nice progression from the minimum 100 msec all the way up to the large int value. This case is illustrated in the test.
   
   Issue: https://github.com/apache/couchdb/issues/3789
   
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb] nickva merged pull request #3790: Fix badarith error in get_db_timeout when request timeout = infinity

Posted by GitBox <gi...@apache.org>.
nickva merged pull request #3790:
URL: https://github.com/apache/couchdb/pull/3790


   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org