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 2020/09/09 00:19:06 UTC

[GitHub] [couchdb] nickva opened a new pull request #3135: Update all the type monitors after setting any couch jobs type timeout

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


   This mostly helps with flaky tests where some jobs might complete before the type monitor discovers this particular type, so opt to always re-scan and start notification monitors when any type timeout is set.
   


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



[GitHub] [couchdb] nickva merged pull request #3135: Update all the type monitors after setting any couch jobs type timeout

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


   


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



[GitHub] [couchdb] nickva commented on pull request #3135: Update all the type monitors after setting any couch jobs type timeout

Posted by GitBox <gi...@apache.org>.
nickva commented on pull request #3135:
URL: https://github.com/apache/couchdb/pull/3135#issuecomment-689629809


   There is a notification monitor running for each type so that it watches for activity of those jobs and responds to subscriptions. To discover the types of jobs there is a periodic polling of all the types. The notifiers can also be auto-started the first time a subscription for that type comes in. Each type notifiers then starts watching for activity on that type starting with the version that it reads from the init call https://github.com/apache/couchdb/blob/prototype/fdb-layer/src/couch_jobs/src/couch_jobs_notifier.erl#L81
   
   What could happen (in a test mostly), a job subscribes while it is in the pending state still, then quickly finishes. By the time the type notifier is auto-started for that type, there won't be any more updates for that type since the test might have run just one job of that type and then was waiting to finish. So instead of adding more complexity to the notification mechanism, we ensure the notifiers are started when the type timeouts are set.
   


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



[GitHub] [couchdb] davisp commented on pull request #3135: Update all the type monitors after setting any couch jobs type timeout

Posted by GitBox <gi...@apache.org>.
davisp commented on pull request #3135:
URL: https://github.com/apache/couchdb/pull/3135#issuecomment-689631994


   Cool, makes sense.


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



[GitHub] [couchdb] davisp commented on pull request #3135: Update all the type monitors after setting any couch jobs type timeout

Posted by GitBox <gi...@apache.org>.
davisp commented on pull request #3135:
URL: https://github.com/apache/couchdb/pull/3135#issuecomment-689612652


   I read the code and I'm not seeing the connection between this and flaky tests. You mentioned the other day you thought you'd found a job that finished before a client subscribed for notifications but I'm not seeing the connection here.


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