jon-wei opened a new pull request #9354: Fix basic auth polling to skip retries when cachedSerializedGroupMappingMap returns 404 URL: https://github.com/apache/druid/pull/9354 This PR fixes a rolling upgrade issue that occurs when druid-basic-security extension is used. `cachedSerializedGroupMappingMap` is a new endpoint on the coordinator added by #6972 . When a process running 0.17.0 or later is running alongside a coordinator running a version < 0.17.0, the new version process will attempt to fetch info from the ``cachedSerializedGroupMappingMap` endpoint which does not exist until the coordinator is upgraded. This has the effect of blocking process startup until the retries for that endpoint are exhausted. The impact is worse for tasks launched during the rolling upgrade, as the overlord may kill tasks that take too long to start up. The PR addresses this issue by having the polling mechanism stop retrying if it receives a 404 from the coordinator for the `cachedSerializedGroupMappingMap` endpoint and logging a warning message. This PR has: - [x] been self-reviewed. - [ ] added documentation for new or modified features or behaviors. - [ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links. - [ ] added or updated version, license, or notice information in [licenses.yaml](https://github.com/apache/druid/blob/master/licenses.yaml) - [x] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader. - [ ] added unit tests or modified existing tests to cover new code paths. - [ ] added integration tests. - [x] been tested in a test Druid cluster.
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
