[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042923877 > What about making this new behaviour configurable? Like adding a new boolean parameter 'autoShrink'? In the constructor method of this class of

[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042920147 > I agree that the condition foe the expansion is not good and probably we should fix it, but maybe not in this PR OK, I will create another PR to fix the

[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042894104 > What about making this new behaviour configurable? Like adding a new boolean parameter 'autoShrink'? The default is false, to keep previous behaviour.

[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042894104 > What about making this new behaviour configurable? Like adding a new boolean parameter 'autoShrink'? The default is false, to keep previous behaviour.

[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042894104 > What about making this new behaviour configurable? Like adding a new boolean parameter 'autoShrink'? The default is false, to keep previous behaviour.

[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042894104 > What about making this new behaviour configurable? Like adding a new boolean parameter 'autoShrink'? The default is false, to keep previous behaviour.

[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042894104 > What about making this new behaviour configurable? Like adding a new boolean parameter 'autoShrink'? The default is false, to keep previous behaviour.

[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042894104 > What about making this new behaviour configurable? Like adding a new boolean parameter 'autoShrink'? The default is false, to keep previous behaviour.

[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042894104 > What about making this new behaviour configurable? Like adding a new boolean parameter 'autoShrink'? The default is false, to keep previous behaviour.

[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042751827 usedBuckets does not represent the actual usage size. Considering such a scenario, expansion will be triggered even if there is excess space. Assuming that

[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042747023 > What about making this new behaviour configurable? Regardless of the scenario, unused memory should be reclaimed, and it should be noted that the

[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042735210 > What about making this new behaviour configurable? I think this is a memory leak bug, so I think that configuration should not be added, and the unused

[GitHub] [bookkeeper] lordcheng10 edited a comment on pull request #3061: Fix memory leak:Support shrinking in ConcurrentLongLongPairHashMap

2022-02-17 Thread GitBox
lordcheng10 edited a comment on pull request #3061: URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042735210 > What about making this new behaviour configurable? I think this is a memory leak bug, so I think that configuration should not be added, and the unused