Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-18963] o.a.s.unsafe.types.UTF8StringSuite.writeToOutputStreamIntArray test #16375

Closed
wants to merge 5 commits into from
Closed

Conversation

robbinspg
Copy link
Member

@robbinspg robbinspg commented Dec 21, 2016

fails on big endian. Only change byte order on little endian

What changes were proposed in this pull request?

Fix test to only change byte order on LE platforms

How was this patch tested?

Test run on Big Endian and Little Endian platforms

fails on big endian. Only change byte order on little endian
@robbinspg robbinspg changed the title [SPRK-18963] o.a.s.unsafe.types.UTF8StringSuite.writeToOutputStreamIntArray test [SPARK-18963] o.a.s.unsafe.types.UTF8StringSuite.writeToOutputStreamIntArray test Dec 21, 2016
@SparkQA
Copy link

SparkQA commented Dec 21, 2016

Test build #70475 has finished for PR 16375 at commit fbc46a6.

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

@@ -591,7 +591,11 @@ public void writeToOutputStreamIntArray() throws IOException {
// verify that writes work on objects that are not byte arrays
final ByteBuffer buffer = StandardCharsets.UTF_8.encode("大千世界");
buffer.position(0);
buffer.order(ByteOrder.LITTLE_ENDIAN);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this just be buffer.order(ByteOrder.nativeOrder())? that's what's done elsewhere.

CC @NathanHowell for a thought.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's probably the right approach.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I'll change it to that

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I think that's an example of a redundant comment, but no big deal. AFAIK this is an OK change and Nathan agrees.

@SparkQA
Copy link

SparkQA commented Dec 22, 2016

Test build #70514 has finished for PR 16375 at commit 30e20be.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@robbinspg
Copy link
Member Author

Jenkins retest this please

@SparkQA
Copy link

SparkQA commented Dec 22, 2016

Test build #70515 has finished for PR 16375 at commit 30e20be.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@robbinspg
Copy link
Member Author

Test run is failing with an unrelated error

@SparkQA
Copy link

SparkQA commented Dec 22, 2016

Test build #3513 has finished for PR 16375 at commit 30e20be.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Dec 23, 2016

Test build #70546 has finished for PR 16375 at commit 1bc1adf.

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

@srowen
Copy link
Member

srowen commented Dec 23, 2016

Merged to master

@asfgit asfgit closed this in 1311448 Dec 23, 2016
cmonkey pushed a commit to cmonkey/spark that referenced this pull request Dec 24, 2016
…ntArray test

fails on big endian. Only change byte order on little endian

## What changes were proposed in this pull request?

Fix test to only change byte order on LE platforms

## How was this patch tested?

Test run on Big Endian and Little Endian platforms

Author: Pete Robbins <robbinspg@gmail.com>

Closes apache#16375 from robbinspg/SPARK-18963.
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…ntArray test

fails on big endian. Only change byte order on little endian

## What changes were proposed in this pull request?

Fix test to only change byte order on LE platforms

## How was this patch tested?

Test run on Big Endian and Little Endian platforms

Author: Pete Robbins <robbinspg@gmail.com>

Closes apache#16375 from robbinspg/SPARK-18963.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants