Skip to content

[BUG]Request with size 0 and no agg requested should return empty result not 500 #43

@baroquebobcat

Description

@baroquebobcat

Describe the bug

When you make a query that has no agg component and requests size 0, the query api 500s. It should either return a 4xx or short circuit to returning an empty result.

500 is caused by an illegal arg exception from the chunk manager where it’s complaining that Hits or aggregation should be requested

at com.slack.astra.chunkManager.ChunkManagerBase.lambda$query$4(ChunkManagerBase.java:134)
at com.slack.astra.logstore.search.LogIndexSearcherImpl.search(LogIndexSearcherImpl.java:106)

Requirements (place an x in each of the [ ])**

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

To Reproduce

Steps to reproduce the behavior:

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Reproducible in:

Astra version:

JVM version:

OS version(s):

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions