Thread-safety for ResponseContext.REGISTERED_KEYS#9667
Conversation
|
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions. |
|
Up |
|
This issue is no longer marked as stale. |
|
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions. |
530b13e to
ae67441
Compare
|
This pull request/issue is no longer marked as stale. |
|
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions. |
|
up |
|
This issue is no longer marked as stale. |
|
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions. |
ae67441 to
bc88181
Compare
|
This pull request/issue is no longer marked as stale. |
gianm
left a comment
There was a problem hiding this comment.
Looks good to me. I suppose another solution would be to make registerKey private, but perhaps it would be called in an extension.
|
Thanks @alex-plekhanov! |
Fixes #9106
Description
This PR fixes potential concurrency problems of ResponseContext.REGISTERED_KEYS.
TreeMap was replaced with ConcurrentSkipList to make ResponseContext.REGISTERED_KEYS thread-safe.
This PR has:
Key changed/added classes in this PR
ResponseContext