apache / apache/lucene

3xCodec should throw UOE if a DocValuesConsumer is pulled [LUCENE-3797]

Open
#4,870 5 comments 0 reactions 1 assignee Claimed by @s1monw View on GitHub
affects-version:4.0-ALPHA legacy-jira-fix-version:4.9 legacy-jira-fix-version:6.0 legacy-jira-priority:Major module:core/codecs module:core/index type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

currently we just return null if a DVConsumer is pulled from 3.x which is trappy since it causes an NPE in DocFieldProcessor. We should rather throw a UOE.

---
Migrated from [LUCENE-3797](https://issues.apache.org/jira/browse/LUCENE-3797) by Simon Willnauer (@s1monw), updated May 09 2016
Attachments: [LUCENE-3797.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-3797/LUCENE-3797.patch) (versions: 2)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.