mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
Kill task: Don't include markAsUnused unless set. (#13104)
Cleans up the serialized JSON.
This commit is contained in:
parent
de8f229bed
commit
2e729170cc
@ -20,6 +20,7 @@
|
||||
package org.apache.druid.indexing.common.task;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import org.apache.druid.client.indexing.ClientKillUnusedSegmentsTaskQuery;
|
||||
import org.apache.druid.indexer.TaskStatus;
|
||||
@ -75,6 +76,7 @@ public class KillUnusedSegmentsTask extends AbstractFixedIntervalTask
|
||||
}
|
||||
|
||||
@JsonProperty
|
||||
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
|
||||
public boolean isMarkAsUnused()
|
||||
{
|
||||
return markAsUnused;
|
||||
|
Loading…
x
Reference in New Issue
Block a user