Skip to content

Batch job with malformed query - hangs #9782

@gauravthadani

Description

@gauravthadani

Expected Behavior

Batch job to fail - with error indicating malformed query

Actual Behavior

batch job running - hangs indefinitely

Image Image

Steps to Reproduce the Problem

Run a batch operation against Temporal - for eg. to delete with bad query

    val query = "()"

    val describeTaskQueueResponse = workflowClient.workflowServiceStubs.blockingStub().startBatchOperation(
        StartBatchOperationRequest.newBuilder()
            .setNamespace(namespace)
            .setVisibilityQuery(query)
            .setJobId(UUID.randomUUID().toString())
            .setReason("why not")
            .setDeletionOperation(
                BatchOperationDeletion.newBuilder()
                    .build()
            )
            .build()
    )

Note: starting a schedule with cli - validates the query and fails fast

Specifications

  • Version:
  • Platform:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions