Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
debug logging for stacktest
Browse files Browse the repository at this point in the history
  • Loading branch information
woodsaj committed Mar 11, 2019
1 parent 26f8e6f commit 8e3f270
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion idx/memory/find_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func NewFindCache(size int) *FindCache {
cache: make(map[uint32]*lru.Cache),
size: size,
newSeries: make(map[uint32]chan struct{}),
backoff: make(map[uint32]time.Time),
}
return fc
}
Expand Down Expand Up @@ -69,7 +70,7 @@ func (c *FindCache) Add(orgId uint32, pattern string, nodes []*Node) {
}
c.Lock()
c.cache[orgId] = cache
c.newSeries[orgId] = make(chan struct{}, 100)
c.newSeries[orgId] = make(chan struct{}, 10)
c.Unlock()
}
cache.Add(pattern, nodes)
Expand Down
4 changes: 3 additions & 1 deletion stacktest/fakemetrics/fakemetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ func (f *FakeMetrics) run() {
}
err := f.o.Flush(f.metrics)
if err != nil {
panic(fmt.Sprintf("failed to send data to output: %s", err))
log.Errorf("fakemetrics: failed to send data to output: %s", err)
f.closed = true
return
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion stacktest/tests/end2end_carbon/end2end_carbon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestMain(m *testing.M) {
cmd := exec.Command("docker-compose", "up", "--force-recreate")
cmd.Dir = docker.Path("docker/docker-dev")

tracker, err = track.NewTracker(cmd, false, false, "launch-stdout", "launch-stderr")
tracker, err = track.NewTracker(cmd, true, true, "launch-stdout", "launch-stderr")
if err != nil {
log.Fatal(err.Error())
}
Expand Down

0 comments on commit 8e3f270

Please sign in to comment.