"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tsdb/wal/watcher_test.go" between
prometheus-2.15.1.tar.gz and prometheus-2.15.2.tar.gz

About: Prometheus is a monitoring system, alerting toolkit and time series database.

watcher_test.go  (prometheus-2.15.1):watcher_test.go  (prometheus-2.15.2)
skipping to change at line 430 skipping to change at line 430
{ {
Ref: uint64(inner ), Ref: uint64(inner ),
T: int64(i), T: int64(i),
V: float64(i), V: float64(i),
}, },
}, nil) }, nil)
testutil.Ok(t, w.Log(sample)) testutil.Ok(t, w.Log(sample))
} }
} }
} }
testutil.Ok(t, w.Close())
// At this point we should have at least 6 segments, lets create a checkpoint dir of the first 5. // At this point we should have at least 6 segments, lets create a checkpoint dir of the first 5.
checkpointDir := dir + "/wal/checkpoint.000004" checkpointDir := dir + "/wal/checkpoint.000004"
err = os.Mkdir(checkpointDir, 0777) err = os.Mkdir(checkpointDir, 0777)
testutil.Ok(t, err) testutil.Ok(t, err)
for i := 0; i <= 4; i++ { for i := 0; i <= 4; i++ {
err := os.Rename(SegmentName(dir+"/wal", i), Segm entName(checkpointDir, i)) err := os.Rename(SegmentName(dir+"/wal", i), Segm entName(checkpointDir, i))
testutil.Ok(t, err) testutil.Ok(t, err)
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)