Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented May 21, 2015

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

@JoshRosen
Copy link
Contributor

Nice catch. LGTM pending Jenkins.

@SparkQA
Copy link

SparkQA commented May 21, 2015

Test build #33258 has finished for PR 6324 at commit cbfe03b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@asfgit asfgit closed this in 5a3c04b May 21, 2015
@JoshRosen
Copy link
Contributor

This should also go into branch-1.4.

asfgit pushed a commit that referenced this pull request May 21, 2015
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 <[email protected]>

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 5a3c04b)
Signed-off-by: Josh Rosen <[email protected]>
@JoshRosen
Copy link
Contributor

Cherry pick'd.

@srowen
Copy link
Member

srowen commented May 21, 2015

Fair enough, wasn't sure whether it was too theoretical a problem to introduce post RC1, but seems pretty fine.

jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request May 28, 2015
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 <[email protected]>

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

cbfe03b [Liang-Chi Hsieh] isDefined should not marked too early in putNewKey.
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request Jun 12, 2015
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 <[email protected]>

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

cbfe03b [Liang-Chi Hsieh] isDefined should not marked too early in putNewKey.
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
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 <[email protected]>

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

cbfe03b [Liang-Chi Hsieh] isDefined should not marked too early in putNewKey.
@viirya viirya deleted the dup_isdefined branch December 27, 2023 18:31
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.

4 participants