Skip to content

500 Error on SegmentMetadataQuery against router for datasource with no data #3178

@drcrallen

Description

@drcrallen
{
    "intervals": "2016-06-21T19/pt1h",
    "queryType": "segmentMetadata",
    "dataSource": "notExist"
}

results in a 500 error with

{"error":"Can not construct instance of io.druid.query.metadata.metadata.SegmentMetadataQuery$AnalysisType, problem: No enum constant io.druid.query.metadata.metadata.SegmentMetadataQuery.AnalysisType.MINMAX\n at [Source: HttpInputOverHTTP@59cc5787; line: 1, column: 337] (through reference chain: java.util.RegularEnumSet[3])"}

When issued to the router.

This ALSO occurs when issued over a time range where an otherwise fine datasource has no data. This is easily checked by doing a query in the future beyond when any data should exist in a cluster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions