Skip to content

Refactor QueryRunner.run(), make responseContext immutable #4113

@leventov

Description

@leventov

Mutable Map, passed into QueryRunner.run(), is abused: #4112 and inherently broken with async/concurrent runners: #3803.

I suggest to change QueryRunner signature to

  QueryResult<T> run(Query<T> query);

where

class QueryResult<T>
{
  final Sequence<T> result;
  final ImmutableMap<String, Object> responseContext;
}

What do you think? @himanshug @gianm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions