[
https://issues.apache.org/jira/browse/FLINK-13702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16962940#comment-16962940
]
Jingsong Lee commented on FLINK-13702:
--------------------------------------
BinaryLazyFormat is designed for single threaded context.
If we add code like this:
{code:java}
@Override
protected BaseMap[] getTestData() {
Map<Object, Object> first = new HashMap<>();
BinaryString empty = BinaryString.fromString("");
empty.ensureMaterialized();
first.put(1, empty);
return new BaseMap[] {
new GenericMap(first)
};
}
{code}
This method generate GenericMap with BinaryString, the fields of this empty
BinaryString are all be inited. All its methods(except pointTo method that
re-assign fields) should be thread safe. So the remaining test should be safe.
> BaseMapSerializerTest.testDuplicate fails on Travis
> ---------------------------------------------------
>
> Key: FLINK-13702
> URL: https://issues.apache.org/jira/browse/FLINK-13702
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Planner
> Affects Versions: 1.10.0
> Reporter: Till Rohrmann
> Assignee: Dawid Wysakowicz
> Priority: Critical
> Labels: test-stability
>
> The {{BaseMapSerializerTest.testDuplicate}} fails on Travis with an
> {{java.lang.IndexOutOfBoundsException}}.
> https://api.travis-ci.org/v3/job/570973199/log.txt
--
This message was sent by Atlassian Jira
(v8.3.4#803005)