Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MB-64604: Fix interpreting scorch config: "fieldTFRCacheThreshold" #2117

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

abhinavdangeti
Copy link
Member

@abhinavdangeti abhinavdangeti commented Dec 17, 2024

  • Setting the default to 0 on account of the panics caught in the MB.
  • Firstly, refactor FieldTFRCacheThreshold to fieldTFRCacheThreshold for some naming consistency here.
  • This threshold can be used to toggle recycling of TermFieldReaders on/off.
  • Couchbase users will have the ability to provide this setting within a JSON payload, which when interpreted into a map[string]interface{} will need to be interpreted as a float64.
  • Should library users set it as an int within the index config - we'll honor that setting as well.

+ Firstly, refactor FieldTFRCacheThreshold to fieldTFRCacheThreshold
  for _some_ naming consistency here.
+ This threshold can be used to toggle recycling of TermFieldReaders
  on/off.
+ Couchbase users will have the ability to provide this setting within
  a JSON payload, which when interpreted into a map[string]interface{}
  will need to be interpreted as a `float64`.
+ Should library users set it as `int` we'll honor that setting as well.
@abhinavdangeti abhinavdangeti changed the title Fix interpreting scorch config: "fieldTFRCacheThreshold" MB-64604: Fix interpreting scorch config: "fieldTFRCacheThreshold" Dec 17, 2024
@abhinavdangeti abhinavdangeti merged commit 78cf789 into trinity-couchbase Dec 17, 2024
9 checks passed
@abhinavdangeti abhinavdangeti deleted the mb64604 branch December 17, 2024 17:49
abhinavdangeti added a commit that referenced this pull request Dec 17, 2024
…o 'master'

|\
| * 5c53634 Abhi Dangeti | MB-64604: Remove unnecessary second map lookup (#2121)
| * 78cf789 Abhi Dangeti | MB-64604: Fix interpreting scorch config: "fieldTFRCacheThreshold" (#2117)
| * 7d627b9 Aditi Ahuja | MB-64360 - Upgrade zapx v16 (#2107)
abhinavdangeti added a commit that referenced this pull request Dec 17, 2024
…o 'master'

|\
| * 5c53634 Abhi Dangeti | MB-64604: Remove unnecessary second map lookup (#2121)
| * 78cf789 Abhi Dangeti | MB-64604: Fix interpreting scorch config: "fieldTFRCacheThreshold" (#2117)
| * 7d627b9 Aditi Ahuja | MB-64360 - Upgrade zapx v16 (#2107)
@abhinavdangeti abhinavdangeti added this to the v2.4.4 milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants