Fix the segment interval for pulling metadata (#3174)

The end of the interval would be on the truncated today date, which
means that you will exclude today. If your realtime ingestion job
runs shorter than a day, the metadata cannot be pulled from the
druid cluster.
This commit is contained in:
Fokko Driesprong 2017-07-26 18:28:08 +02:00 committed by Maxime Beauchemin
parent cf1d0f38ad
commit aa95e03eb9
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ class DruidDatasource(Model, BaseDatasource):
lbound = datetime(1901, 1, 1).isoformat()[:10]
rbound = datetime(2050, 1, 1).isoformat()[:10]
if not self.version_higher(self.cluster.druid_version, '0.8.2'):
rbound = datetime.now().isoformat()[:10]
rbound = datetime.now().isoformat()
try:
segment_metadata = client.segment_metadata(
datasource=self.datasource_name,