FacetDataCache loading fails without reporting error to junit for TermLongList

Description

It was discovered when resolving SENSEI-15: after adding uid facet, with the first data being zero, hit document does not output this newly added facet while not reporting error. The root cause of the problem is that FacetDataCache loading fails for TermLongList (TermIntList might have the same issue). The direct reason for this failure might be the fact that sanity is initialized as -1 and an exception is to be thrown inside add member method when the first data is zero or less. (see also the attached stack)

Environment

None

Assignee

Xiaoyang Gu

Reporter

Zhuochuan Huang

Labels

None

Components

Fix versions

Priority

Major
Configure