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

Fix Druid metadata refresh. #192

Merged
merged 3 commits into from
Mar 26, 2016
Merged

Fix Druid metadata refresh. #192

merged 3 commits into from
Mar 26, 2016

Conversation

coleslaw
Copy link
Contributor

Could you take a look @mistercrunch, in particular dashed/models.py ?

@landscape-bot
Copy link

Code Health
Repository health decreased by 0.09% when pulling 40787b0 on kim/misc_hack into 2d3edf3 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 65.475% when pulling 40787b0 on kim/misc_hack into 2d3edf3 on master.

@landscape-bot
Copy link

Code Health
Repository health decreased by 0.08% when pulling 7a7eb33 on kim/misc_hack into 10a1edd on master.

@landscape-bot
Copy link

Code Health
Code quality remained the same when pulling 23b6bca on airbnb:kim/misc_hack into 10a1edd on airbnb:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 65.325% when pulling 23b6bca on kim/misc_hack into 10a1edd on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 65.325% when pulling 23b6bca on kim/misc_hack into 10a1edd on master.

@coleslaw coleslaw changed the title Hacks to get the sync script to work. DONT MERGE Fix Druid metadata refresh. Mar 25, 2016
@@ -840,8 +840,12 @@ def latest_metadata(self):
return
max_time = results[0]['result']['maxTime']
max_time = parse(max_time)
intervals = (max_time - timedelta(seconds=1)).isoformat() + '/'
intervals += (max_time + timedelta(seconds=1)).isoformat()
# Query segmentMetadata for 7 days back. However, due to a bug,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mistercrunch I have to query [-7 day, -1 day] range because of a bug in 0.8.0. (see comment).

Choose a reason for hiding this comment

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

why we need to query for 7 days? even 10 minutes is good enough

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Max has a point that some segment might be outside of the range. -7 is a heuristic to get at least one segment.

@coleslaw
Copy link
Contributor Author

It's ready to be reviewed @mistercrunch @dayzzz

@landscape-bot
Copy link

Code Health
Code quality remained the same when pulling 2378fdf on airbnb:kim/misc_hack into 10a1edd on airbnb:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 65.325% when pulling 2378fdf on kim/misc_hack into 10a1edd on master.

@mistercrunch
Copy link
Member

LGTM ! merging.

@mistercrunch mistercrunch merged commit fdce2aa into master Mar 26, 2016
@mistercrunch mistercrunch deleted the kim/misc_hack branch March 26, 2016 05:16
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.8.5 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.8.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants