-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #516 from broneill/master
Version 0.8.7
- Loading branch information
Showing
112 changed files
with
3,653 additions
and
731 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
language: scala | ||
dist: trusty | ||
env: | ||
global: | ||
_JAVA_OPTIONS="-Dakka.test.timefactor=3 -XX:MaxMetaspaceSize=256m" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
coordinator/src/main/scala/filodb.coordinator/queryengine2/FailureProvider.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package filodb.coordinator.queryengine2 | ||
|
||
import filodb.core.DatasetRef | ||
|
||
/** | ||
* A provider to get failure ranges. Query engine can use failure ranges while preparing physical | ||
* plan to reroute or skip failure ranges. Ranges are based on dataset and over all clusters. | ||
* Provider will filter failure ranges by current cluster and its replicas. Failures which do not | ||
* belong to current cluster or its replica, will be skipped. | ||
*/ | ||
trait FailureProvider { | ||
def getFailures(datasetRef: DatasetRef, queryTimeRange: TimeRange): Seq[FailureTimeRange] | ||
} | ||
|
||
object EmptyFailureProvider extends FailureProvider { | ||
override def getFailures(datasetRef: DatasetRef, queryTimeRange: TimeRange): Seq[FailureTimeRange] = Nil | ||
} | ||
|
||
/** | ||
* Time range. | ||
* | ||
* @param startInMillis epoch time in millis. | ||
* @param endInMillis epoch time in millis. | ||
*/ | ||
case class TimeRange(startInMillis: Long, endInMillis: Long) | ||
|
||
/** | ||
* Failure details. | ||
* | ||
* @param clusterName cluster name. | ||
* @param datasetRef Dataset reference for database and dataset. | ||
* @param timeRange time range. | ||
*/ | ||
case class FailureTimeRange(clusterName: String, datasetRef: DatasetRef, timeRange: TimeRange, | ||
isRemote: Boolean) | ||
|
||
/** | ||
* For rerouting queries for failure ranges, Route trait will offer more context in the form of corrective | ||
* ranges for queries or alternative dispatchers. | ||
* A local route indicates a non-failure range on local cluster. A remote route indicates a non-failure | ||
* range on remote cluster. | ||
*/ | ||
trait Route | ||
|
||
case class LocalRoute(timeRange: Option[TimeRange]) extends Route | ||
|
||
case class RemoteRoute(timeRange: Option[TimeRange]) extends Route |
Oops, something went wrong.