Skip to content

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

Merged
abhinavdangeti merged 4 commits into
trinity-couchbasefrom
mb64604
Dec 17, 2024
Merged

MB-64604: Fix interpreting scorch config: "fieldTFRCacheThreshold"#2117
abhinavdangeti merged 4 commits into
trinity-couchbasefrom
mb64604

Conversation

@abhinavdangeti
Copy link
Copy Markdown
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
@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