You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2018/12/10 14:28:32 UTC
spark git commit: [SPARK-26286][TEST] Add MAXIMUM_PAGE_SIZE_BYTES
exception bound unit test
Repository: spark
Updated Branches:
refs/heads/master c8ac6ae84 -> 42e8c381b
[SPARK-26286][TEST] Add MAXIMUM_PAGE_SIZE_BYTES exception bound unit test
## What changes were proposed in this pull request?
Add MAXIMUM_PAGE_SIZE_BYTES Exception test
## How was this patch tested?
Existing tests
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)
Please review http://spark.apache.org/contributing.html before opening a pull request.
Closes #23226 from wangjiaochun/BytesToBytesMapSuite.
Authored-by: 10087686 <wa...@zte.com.cn>
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/42e8c381
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/42e8c381
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/42e8c381
Branch: refs/heads/master
Commit: 42e8c381b15dd48c2f00c088c897ebdd25405aef
Parents: c8ac6ae
Author: 10087686 <wa...@zte.com.cn>
Authored: Mon Dec 10 22:28:26 2018 +0800
Committer: Hyukjin Kwon <gu...@apache.org>
Committed: Mon Dec 10 22:28:26 2018 +0800
----------------------------------------------------------------------
.../spark/unsafe/map/AbstractBytesToBytesMapSuite.java | 11 +++++++++++
1 file changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/42e8c381/core/src/test/java/org/apache/spark/unsafe/map/AbstractBytesToBytesMapSuite.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/spark/unsafe/map/AbstractBytesToBytesMapSuite.java b/core/src/test/java/org/apache/spark/unsafe/map/AbstractBytesToBytesMapSuite.java
index aa29232..a11cd53 100644
--- a/core/src/test/java/org/apache/spark/unsafe/map/AbstractBytesToBytesMapSuite.java
+++ b/core/src/test/java/org/apache/spark/unsafe/map/AbstractBytesToBytesMapSuite.java
@@ -622,6 +622,17 @@ public abstract class AbstractBytesToBytesMapSuite {
} catch (IllegalArgumentException e) {
// expected exception
}
+
+ try {
+ new BytesToBytesMap(
+ taskMemoryManager,
+ 1,
+ TaskMemoryManager.MAXIMUM_PAGE_SIZE_BYTES + 1);
+ Assert.fail("Expected IllegalArgumentException to be thrown");
+ } catch (IllegalArgumentException e) {
+ // expected exception
+ }
+
}
@Test
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org