jihoonson commented on a change in pull request #8810: Make submit task API similar to supervisor API URL: https://github.com/apache/incubator-druid/pull/8810#discussion_r344397213
########## File path: indexing-service/src/test/java/org/apache/druid/indexing/common/task/TaskSerdeTest.java ########## @@ -259,6 +263,175 @@ public void testIndexTaskSerde() throws Exception Assert.assertEquals(taskTuningConfig.isReportParseExceptions(), task2TuningConfig.isReportParseExceptions()); } + @Test + public void testIndexTaskNullSpecSerde() throws Exception + { + final IndexTask task = new IndexTask( + null, + null, + null, + new DataSchema( + "foo", + null, + new AggregatorFactory[]{new DoubleSumAggregatorFactory("met", "met")}, + new UniformGranularitySpec( + Granularities.DAY, + null, + ImmutableList.of(Intervals.of("2010-01-01/P2D")) + ), + null, + jsonMapper + ), + new IndexIOConfig(new LocalFirehoseFactory(new File("lol"), "rofl", null), true), + new IndexTuningConfig( + null, + null, + 10, + null, + null, + 9999, + null, + null, + new DynamicPartitionsSpec(10000, null), + indexSpec, + null, + 3, + false, + null, + null, + null, + null, + null, + null, + null + ), + null, + AuthTestUtils.TEST_AUTHORIZER_MAPPER, + null, + rowIngestionMetersFactory, + null + ); + + final String json = jsonMapper.writeValueAsString(task); + + Thread.sleep(100); // Just want to run the clock a bit to make sure the task id doesn't change Review comment: I don't understand this comment. What does it do? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org For additional commands, e-mail: commits-h...@druid.apache.org