linkedin / rest.li

Rest.li is a REST+JSON framework for building robust, scalable service architectures using dynamic discovery and simple asynchronous APIs.
rest.li
Other
2.51k stars 546 forks source link

Fail documentation requests while renderers are being lazily initialized #746

Closed evanw555 closed 2 years ago

evanw555 commented 2 years ago

In DefaultDocumentationRequestHandler, the documentation renderers are lazily initialized. Request threads will block on the completion of this initialization, which could cause problems if it takes too long. This changes that, as request threads will simply fail if it's not complete.