This repository was archived by the owner on Jan 24, 2024. It is now read-only.
Multi tenant configuration - fix handling of group management topics tenant - #849
Closed
eolivelli wants to merge 11 commits into
Closed
Multi tenant configuration - fix handling of group management topics tenant#849eolivelli wants to merge 11 commits into
eolivelli wants to merge 11 commits into
Conversation
Demogorgon314
left a comment
Member
There was a problem hiding this comment.
Overall LGTM. Just left few comment. PTAL.
| @@ -1154,6 +1158,7 @@ public void removeGroupsForPartition(int offsetsPartition, | |||
| TopicPartition topicPartition = new TopicPartition( | |||
| GROUP_METADATA_TOPIC_NAME, offsetsPartition | |||
Member
There was a problem hiding this comment.
I guess this topic name need change too, it will make log more accurate.
| @Default | ||
| private String offsetsTopicName = DefaultOffsetsTopicName; | ||
|
|
||
| public String getCurrentOffsetsTopicName(String tenant) { |
Member
There was a problem hiding this comment.
IMO, We can replace placeholder when OffsetConfig object creating, Instead of replacing placeholder every time we get it.
Contributor
Author
There was a problem hiding this comment.
it makes sense to me.
But I have to perform some refactors.
I will update the patch in the next days
Contributor
Author
|
After rebasing to current master this patch is useless. |
Demogorgon314
pushed a commit
to Demogorgon314/kop
that referenced
this pull request
Apr 15, 2026
…nabled (streamnative#850) Fixes streamnative#849 ### Motivation When Ursa is enabled, the `ManagedLedger` instance will never be closed so that it will always exist in the `ManagedLedgerFactory`'s internal map. ### Modifications - Introduce the DelayedRemovalCache to support delay removal for the managed ledger for sometime. The `DelayedRemovalCache` is a thread-safe cache implementation that supports delayed removal of entries. It provides functionality to schedule the removal of cache entries after a specified delay, with the capability to cancel pending removals if the entry is accessed again before the delay expires. Additionally, it allows for a removal listener to be specified to perform actions when an entry is removed. Please see more design details in the java doc of `DelayedRemovalCache`. - Use the DelayedRemovalCache to support closing the manager ledger after 1 min if it's not used by any connection.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OffsetConfig was still using "public" as tenant
Changes: