https://bz.apache.org/bugzilla/show_bug.cgi?id=66209

--- Comment #20 from Rahul Jaisimha <jaisi...@amazon.com> ---
We've realized the proposed change (updating useBloomFilterForArchives from
boolean to String) is a breaking change, since the setter for this value is
exposed publically. The two options to get around this and maintain
backward-compatibility are:

1. Mark the boolean Setter as Deprecated and add a String Setter. The Getter
would remain a boolean and return whether a bloom filter is to be used (true
for "TRUE" and "RETAINED"). A second getter would have to be exposed to
understand if useBloomFilterForArchives is "RETAINED". This could also be
boolean.

2. Maintain the original boolean "useBloomFilterForArchives" and add a second
boolean parameter "retainBloomFilter". The logic for re-initializing the bloom
filter would depend on both parameters. "retainBloomFilter" will default to
false and will maintain the existing behavior for "useBloomFilterForArchives".
The existing behavior will also be retained if "useBloomFilterForArchives" is
false. Only if "retainBloomFilter" is true and "useBloomFilterForArchives" is
true, then will the bloom filter avoid re-initialization.

For 10.1.x we will maintain the same solution, since this can be
non-backwards-compatible:

> For 10.1.x, I'll remove "useBloomFilterForArchives" from Context and add 
> "archiveIndexing" in WebResourceRoot which supports the following options: 
> ["simple", "bloom", "purged-bloom"].

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to