spark-instrumented-optimizer/unsafe/src
Liang-Chi Hsieh e4489c36df [SPARK-7800] isDefined should not marked too early in putNewKey
JIRA: https://issues.apache.org/jira/browse/SPARK-7800

`isDefined` is marked as true twice in `Location.putNewKey`. The first one is unnecessary and will cause problem because it is too early and before some assert checking. E.g., if an attempt with incorrect `keyLengthBytes` marks `isDefined` as true, the location can not be used later.

ping JoshRosen

Author: Liang-Chi Hsieh <viirya@gmail.com>

Closes #6324 from viirya/dup_isdefined and squashes the following commits:

cbfe03b [Liang-Chi Hsieh] isDefined should not marked too early in putNewKey.

(cherry picked from commit 5a3c04bb92)
Signed-off-by: Josh Rosen <joshrosen@databricks.com>
2015-05-21 15:21:23 -07:00
..
main/java/org/apache/spark/unsafe [SPARK-7800] isDefined should not marked too early in putNewKey 2015-05-21 15:21:23 -07:00
test/java/org/apache/spark/unsafe [SPARK-7251] Perform sequential scan when iterating over BytesToBytesMap 2015-05-20 16:43:09 -07:00