Skip to content

Commit

Permalink
Update cortex vendoring (#325)
Browse files Browse the repository at this point in the history
* Update cortex vendoring

Signed-off-by: Goutham Veeramachaneni <[email protected]>

* Fix API breakage

Signed-off-by: Goutham Veeramachaneni <[email protected]>
  • Loading branch information
gouthamve authored Mar 15, 2019
1 parent d0fcfd8 commit ddddd14
Show file tree
Hide file tree
Showing 45 changed files with 1,160 additions and 400 deletions.
20 changes: 9 additions & 11 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@

[[constraint]]
name = "github.com/cortexproject/cortex"
branch = "optionally-enforce-metric-name"
source = "https://github.com/grafana/cortex.git"
branch = "master"

[[constraint]]
name = "github.com/weaveworks/common"
source = "github.com/tomwilkie/weaveworks-common"
branch = "dev"
branch = "master"

[[constraint]]
name = "gopkg.in/fsnotify.v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/ingester/flush.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (i *Ingester) removeFlushedChunks(instance *instance, stream *stream) {

if len(stream.chunks) == 0 {
delete(instance.streams, stream.fp)
instance.index.Delete(stream.labels, stream.fp)
instance.index.Delete(client.FromLabelPairsToLabels(stream.labels), stream.fp)
instance.streamsRemovedTotal.Inc()
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/ingester/ingester.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (*Ingester) Watch(*grpc_health_v1.HealthCheckRequest, grpc_health_v1.Health
// the addition removal of another ingester. Returns 204 when the ingester is
// ready, 500 otherwise.
func (i *Ingester) ReadinessHandler(w http.ResponseWriter, r *http.Request) {
if i.lifecycler.IsReady(r.Context()) {
if err := i.lifecycler.CheckReady(r.Context()); err == nil {
w.WriteHeader(http.StatusNoContent)
} else {
w.WriteHeader(http.StatusInternalServerError)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 2 additions & 12 deletions vendor/github.com/cortexproject/cortex/pkg/chunk/aws/fixtures.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions vendor/github.com/cortexproject/cortex/pkg/chunk/chunk_store.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ddddd14

Please sign in to comment.