Skip to content

404 when task type is index #19

@ktong

Description

@ktong

Error when index id likes index_{datasource_name}_2018-03-20T17:39:09.499Z:
druid.js:138 TypeError: Cannot read property '3' of null
at Object.parseTaskId (druid.js:13739)
at Object.decorateTask (druid.js:13752)
at tasks.reduce.all (druid.js:13778)
at Array.reduce ()
at Object.processTasks (druid.js:13775)
at druid.js:13856
at druid.js:118
at J (druid.js:147)
at J (druid.js:147)
at druid.js:148

The root cause is regex for taskId parsing does not support index type task. Code is at

m = taskId.match /^((hadoop_convert_segment)|index_(hadoop|realtime|spark)|(archive))_(.+)_(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions