Skip to content

Conversation

@mailravi3390
Copy link

No description provided.

@mailravi3390 mailravi3390 changed the title Sharded meta client Sharded meta client and sharded aura fixes Oct 29, 2021
@Override
public Iterator<MergedMetaTimeSeriesQueryResult> getTimeseriesAllShards(String namespace, String query) throws MetaFetchException {

final List<ShardEndPoint> shardEndPoints = setUpEndpoints(namespace);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is expensive to do for each call.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, it should be event driven. May be it's okay to start and we can revisit this. Needs a TODO in that case.


for(int i = 0 ; i < futures.size(); i++) {
try {
timeSeriesQueryResults.add(futures.get(i).get());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have a timeout in the future.get()


final ShardEndPoint shardEndPoint = setUpEndpoints(namespace).get(shardId);
try {
return getResult(clients.get(shardEndPoint), query).get();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timeout her as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants