William Lo created GOBBLIN-2155:
-----------------------------------

             Summary: DeleteWorkDirsActivity needs to serialize the empty result
                 Key: GOBBLIN-2155
                 URL: https://issues.apache.org/jira/browse/GOBBLIN-2155
             Project: Apache Gobblin
          Issue Type: Bug
            Reporter: William Lo


Currently there is a bug in Temporal when there are no work directories to 
delete, e.g. non hdfs sink jobs.
{code:java}
Caused by: io.temporal.common.converter.DataConverterException: 
com.fasterxml.jackson.databind.JsonMappingException: successesByDirPath is 
marked non-null but is null
 at [Source: (byte[])"{"successesByDirPath":null}"; line: 1, column: 23] 
(through reference chain: 
org.apache.gobblin.temporal.ddm.work.DirDeletionResult["successesByDirPath"])
        at 
io.temporal.common.converter.JacksonJsonPayloadConverter.fromData(JacksonJsonPayloadConverter.java:101)
        at 
io.temporal.common.converter.DefaultDataConverter.fromPayload(DefaultDataConverter.java:145)
 {code}
We need to fix the empty result of DeleteWorkDirsActivity to support this 
scenario with a serializable result and add tests.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to