> On Jan. 24, 2017, 2:50 p.m., Peter Bacsko wrote: > > core/src/main/java/org/apache/oozie/util/StringSerializationUtil.java, line > > 33 > > <https://reviews.apache.org/r/55879/diff/1/?file=1613533#file1613533line33> > > > > Is it still 60k? Not 20k?
I'm looking at the size of the byte array now, not the string. > On Jan. 24, 2017, 2:50 p.m., Peter Bacsko wrote: > > core/src/test/java/org/apache/oozie/util/TestStringSerializationUtil.java, > > line 34 > > <https://reviews.apache.org/r/55879/diff/1/?file=1613538#file1613538line34> > > > > What about the case when the number of characters are below 20k? It tests with a string of lenght 1, 10001, 20001 .... 140001. > On Jan. 24, 2017, 2:50 p.m., Peter Bacsko wrote: > > core/src/test/java/org/apache/oozie/workflow/lite/TestLiteWorkflowApp.java, > > line 32 > > <https://reviews.apache.org/r/55879/diff/1/?file=1613539#file1613539line32> > > > > Does it have to extend XTestCase? Yes, LiteWorkflowApp needs some services. It was not started as one. > On Jan. 24, 2017, 2:50 p.m., Peter Bacsko wrote: > > core/src/test/java/org/apache/oozie/util/TestStringSerializationUtil.java, > > line 39 > > <https://reviews.apache.org/r/55879/diff/1/?file=1613538#file1613538line39> > > > > I'd prefer a deterministic behaviour in an unit test. > > > > I think it's better to use Strings.repeat() from Guava. I like the idea of random testing as it might bring out issues we're not think about. E.g. that some charaters are represented with more than 2 bytes in UTF-8 - Peter ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/55879/#review162812 ----------------------------------------------------------- On Jan. 24, 2017, 1:25 p.m., Peter Cseh wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/55879/ > ----------------------------------------------------------- > > (Updated Jan. 24, 2017, 1:25 p.m.) > > > Review request for oozie. > > > Repository: oozie-git > > > Description > ------- > > Config-default.xml longer than 64k results in java.io.UTFDataFormatException > https://issues.apache.org/jira/browse/OOZIE-2777 > > > Diffs > ----- > > core/src/main/java/org/apache/oozie/util/StringSerializationUtil.java > PRE-CREATION > core/src/main/java/org/apache/oozie/workflow/lite/LiteWorkflowApp.java > a06595d3b2b99dbe33ef5d55208435aaec151e1a > core/src/main/java/org/apache/oozie/workflow/lite/LiteWorkflowInstance.java > 2b13e6701226b7236d101d738aba6b6ebbabf4e5 > core/src/main/java/org/apache/oozie/workflow/lite/NodeDef.java > 496b0086f840c0c6fc60a74bdb3dc382c4db2612 > core/src/test/java/org/apache/oozie/command/wf/TestSubmitXCommand.java > 47ff8ca2751926bb728ea3eba5d7fe11282c3176 > core/src/test/java/org/apache/oozie/util/TestStringSerializationUtil.java > PRE-CREATION > core/src/test/java/org/apache/oozie/workflow/lite/TestLiteWorkflowApp.java > PRE-CREATION > > core/src/test/java/org/apache/oozie/workflow/lite/TestLiteWorkflowAppParser.java > a3c7b142d08101e2bb03737871db939133bd3cd2 > > Diff: https://reviews.apache.org/r/55879/diff/ > > > Testing > ------- > > > Thanks, > > Peter Cseh > >
