Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharded meta client and sharded aura fixes #27

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

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