GWphua opened a new pull request, #18470: URL: https://github.com/apache/druid/pull/18470
### Description <!-- Describe the goal of this PR, what problem are you fixing. If there is a corresponding issue (referenced above), it's not necessary to repeat the description here, however, you may choose to keep one summary sentence. --> <!-- Describe your patch: what did you change in code? How did you fix the problem? --> <!-- If there are several relatively logically separate changes in this PR, create a mini-section for each of them. For example: --> #### Optimized data structure for heavy writes. The ConcurrentLinkedQueue features a O(1) write time, as opposed to the O(N) write time for CopyOnWriteArrayList. Not an impactful performance increase, given the `failedSegments` array should be as small as possible, but caught this while trying to optimize other stuff in `SegmentBootstrapper`. #### Release note <!-- Give your best effort to summarize your changes in a couple of sentences aimed toward Druid users. If your change doesn't have end user impact, you can skip this section. For tips about how to write a good release note, see [Release notes](https://github.com/apache/druid/blob/master/CONTRIBUTING.md#release-notes). --> Optimize concurrent writing to failedSegments array when loading segment on startup. <hr> ##### Key changed/added classes in this PR * `SegmentBootstrapper` <hr> <!-- Check the items by putting "x" in the brackets for the done things. Not all of these items apply to every PR. Remove the items which are not done or not relevant to the PR. None of the items from the checklist below are strictly necessary, but it would be very helpful if you at least self-review the PR. --> This PR has: - [x] been self-reviewed. - [x] a release note entry in the PR description. - [] been tested in a test Druid cluster. (Pending) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
