mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
feat: plain detach handle, polling stop and backup waits, older-client paths removed (#971)
Merge note (batch b1; pull_request_target spec-trace workflow has a startup_failure, so its checks run locally): - One Test run (47164144583) succeeded (go test (linux), process-level tests (real binaries)) on the integration tree 59f6e6ec = main 3ebcac06 + #971 #985 #992 #993 in this order; these squash merges reproduce that tree, verified after the last one. - spec-trace-check.sh and public-text-check.sh, run with main's scripts against this head and body: both exit 0. - Code review ACCEPT on 99de539f: the operation-count test joins its background worker on every path and exits the test binary if the bounded join times out, so storage never closes under a live worker; production and documentation verdicts from the earlier rounds carry. - The recorded model-checker outputs that earlier heads committed are removed; the cut-time model results stay outside the repository.
This commit is contained in:
1 parent
41de8a137e
commit
82e9c5f4c7
115 files changed
+2342
-13700
No files matched your search
+11
@@ -11,6 +11,8 @@ cmd/sw-block/volume_backup.go RestoreCommand.Abort
|
||||
cmd/sw-block/volume_backup.go RestoreCommand.AbortVerify
|
||||
cmd/sw-block/volume_backup.go RestoreCommand.Run
|
||||
cmd/sw-block/volume_backup.go RestoreCommand.Start
|
||||
cmd/sw-block/volume_verbs.go CutTime.CliGiveUp
|
||||
cmd/sw-block/volume_verbs.go CutTime.Poll
|
||||
core/authority/workspace.go HolderInterface.ForcedMove
|
||||
core/authority/workspace.go HolderInterface.PlannedMove
|
||||
core/authority/workspace.go MoveAdmission.Ack
|
||||
@@ -174,6 +176,8 @@ core/frontend/durable/provider_chunk.go StopAndRestart.SendDetach
|
||||
core/frontend/durable/provider_chunk.go StopAndRestart.SettleResume
|
||||
core/frontend/durable/provider_layout.go EngineAdapter.SettleDown
|
||||
core/frontend/durable/provider_layout.go StopAndRestart.SettleDown
|
||||
core/frontend/durable/provider_preempt.go CutTime.Preempt
|
||||
core/frontend/durable/provider_preempt.go CutTime.Settle
|
||||
core/frontend/durable/storage_adapter.go EngineAdapter.GuestWrite
|
||||
core/frontend/durable/storage_adapter.go HolderInterface.Write
|
||||
core/frontend/durable/storage_adapter.go WALHold.Resubmit
|
||||
@@ -205,6 +209,11 @@ core/host/volume/manual_cut.go CutTime.Admit
|
||||
core/host/volume/manual_cut.go CutTime.InProgress
|
||||
core/host/volume/manual_cut.go CutTime.Poll
|
||||
core/host/volume/manual_cut.go CutTime.Retire
|
||||
core/host/volume/plain_detach_handle.go CutTime.OtherEnd
|
||||
core/host/volume/plain_detach_handle.go CutTime.OtherStep
|
||||
core/host/volume/plain_detach_handle.go CutTime.Preempt
|
||||
core/host/volume/plain_detach_handle.go CutTime.Settle
|
||||
core/host/volume/plain_detach_handle.go CutTime.SettleStall
|
||||
core/host/volume/primary_evidence.go FencingRound.Adopt
|
||||
core/host/volume/primary_evidence.go Promotion.Adopt
|
||||
core/host/volume/primary_evidence.go Promotion.Refuse
|
||||
@@ -255,6 +264,8 @@ core/storage/chunk_manual_cut.go CutTime.Settle
|
||||
core/storage/chunk_manual_cut.go CutTime.SettleInherited
|
||||
core/storage/chunk_manual_cut.go CutTime.SettleStall
|
||||
core/storage/chunk_manual_cut.go HolderInterface.Fence
|
||||
core/storage/chunk_preempt.go CutTime.OtherStep
|
||||
core/storage/chunk_preempt.go CutTime.Preempt
|
||||
core/storage/chunk_public.go FormatGate.Upgrade1
|
||||
core/storage/chunk_seam.go FormatGate.Upgrade1
|
||||
core/storage/chunk_state_upgrade.go SlotFence.Publish
|
||||
|
||||
|
@@ -85,7 +85,7 @@ func TestDefaultConfigCleansAfterEachSnapshotDelete(t *testing.T) {
|
||||
}
|
||||
}
|
||||
name := fmt.Sprintf("s%d", round)
|
||||
if _, err := ctl.Snapshot(ctx, "v1", volume.ChunkSnapshotRequest{Name: name}); err != nil {
|
||||
if _, err := dp.SnapshotVolume(ctx, "v1", name, layout.SnapshotMeta{}); err != nil {
|
||||
t.Fatalf("round %d: snapshot: %v", round, err)
|
||||
}
|
||||
if prev != "" {
|
||||
|
||||
@@ -202,6 +202,11 @@ func chunkPostUntil(name, statusAddr, route string, timeout time.Duration, waitU
|
||||
a.Accepted = true
|
||||
return 0
|
||||
}
|
||||
if resp.StatusCode == http.StatusOK && len(admission) == 1 && admission[0] != nil {
|
||||
// A holder without snapshot operations predates this release: the
|
||||
// asynchronous operation replaced its synchronous answer.
|
||||
return chunkFail(name, stdout, stderr, chunkExitUnknown, "outcome_unknown", "the holder answered without a snapshot operation; upgrade it to this release, then repeat the command", false)
|
||||
}
|
||||
if resp.StatusCode == http.StatusOK {
|
||||
if err := writeAll(stdout, out); err != nil {
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk %s: write the result: %v\n", name, err)
|
||||
@@ -305,10 +310,10 @@ func chunkSnapshot(args []string, stdout, stderr io.Writer) int {
|
||||
func chunkDetach(args []string, stdout, stderr io.Writer) int {
|
||||
fs := chunkFlagSet("detach", stderr)
|
||||
var (
|
||||
volumeID, statusAddr string
|
||||
timeout time.Duration
|
||||
plain, frozen, allowOverBudget bool
|
||||
freezeStartedAtNs int64
|
||||
volumeID, statusAddr, deadlineText string
|
||||
timeout time.Duration
|
||||
plain, frozen, allowOverBudget bool
|
||||
freezeStartedAtNs int64
|
||||
)
|
||||
fs.StringVar(&volumeID, "volume", "", "volume id")
|
||||
fs.StringVar(&statusAddr, "status-addr", "", "blockvolume status address or URL (with --chunk-control-endpoint)")
|
||||
@@ -317,9 +322,18 @@ func chunkDetach(args []string, stdout, stderr io.Writer) int {
|
||||
fs.BoolVar(&frozen, "frozen", false, "not supported in this release: the server refuses a frozen detach (frozen_detach_unsupported)")
|
||||
fs.Int64Var(&freezeStartedAtNs, "freeze-started-at-ns", 0, "not supported in this release; only valid with --frozen")
|
||||
fs.BoolVar(&allowOverBudget, "allow-over-budget", false, "not supported in this release; only valid with --frozen")
|
||||
fs.StringVar(&deadlineText, "deadline", "", "with --plain: optional absolute RFC3339 deadline, the only total bound on the observed detach")
|
||||
if err := fs.Parse(args); err != nil {
|
||||
return chunkFail(chunkName(fs), stdout, stderr, ops.VolumeStatusExitInvalid, codeBadRequestCLI, err.Error(), false)
|
||||
}
|
||||
var deadline time.Time
|
||||
if deadlineText != "" {
|
||||
var err error
|
||||
deadline, err = time.Parse(time.RFC3339Nano, deadlineText)
|
||||
if err != nil || deadline.IsZero() || !time.Unix(0, deadline.UnixNano()).Equal(deadline) || !plain {
|
||||
return chunkFail("detach", stdout, stderr, ops.VolumeStatusExitInvalid, codeBadRequestCLI, "--deadline needs --plain and a nonzero absolute RFC3339 time representable as Unix nanoseconds", false)
|
||||
}
|
||||
}
|
||||
if volumeID == "" || statusAddr == "" {
|
||||
return chunkFail("detach", stdout, stderr, ops.VolumeStatusExitInvalid, codeBadRequestCLI, "--volume and --status-addr are required", false)
|
||||
}
|
||||
@@ -334,7 +348,7 @@ func chunkDetach(args []string, stdout, stderr io.Writer) int {
|
||||
body := map[string]any{"volumeID": volumeID}
|
||||
if plain {
|
||||
body["plain"] = true
|
||||
return chunkPlainDetachPost(statusAddr, volumeID, timeout, body, stdout, stderr)
|
||||
return chunkPlainDetachPost(statusAddr, volumeID, timeout, deadline, body, stdout, stderr)
|
||||
}
|
||||
if frozen {
|
||||
body["frozen"] = true
|
||||
|
||||
@@ -12,9 +12,11 @@ import (
|
||||
|
||||
// M5 PlainStop -> Quiesce, INV-CUT-PLAIN-DETACH-001. Keep stdout JSON
|
||||
// unchanged; the separate human readout identifies the seal to the operator.
|
||||
func chunkPlainDetachPost(addr, volume string, timeout time.Duration, body map[string]any, stdout, stderr io.Writer) int {
|
||||
func chunkPlainDetachPost(addr, volume string, timeout time.Duration, deadline time.Time, body map[string]any, stdout, stderr io.Writer) int {
|
||||
var out bytes.Buffer
|
||||
code := chunkPostLoop("detach", addr, "/chunk/detach", timeout, body, &out, stderr)
|
||||
// CutTime r7: one admission, then the detach's handle is polled; only its
|
||||
// sequence rises renew the wait, and --deadline is the only total bound.
|
||||
code := chunkObserveHandle("detach", "/chunk/detach", addr, timeout, deadline, body, &out, stderr)
|
||||
if code != ops.VolumeStatusExitOK {
|
||||
if err := writeAll(stdout, out.Bytes()); err != nil {
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk detach: write result: %v\n", err)
|
||||
|
||||
@@ -4,12 +4,14 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
"testing"
|
||||
"testing/synctest"
|
||||
"time"
|
||||
)
|
||||
|
||||
// M5 PlainStop -> Quiesce, INV-CUT-PLAIN-DETACH-001: encode the existing
|
||||
// idle seal request; preserve JSON stdout for existing operator tooling.
|
||||
func TestOpsChunkPlainDetachSendsTheExistingRequest(t *testing.T) {
|
||||
const reply = `{"volumeID":"vol","headGen":11}`
|
||||
const reply = `{"apiVersion":1,"volumeID":"vol","headGen":11}`
|
||||
srv, got := chunkServer(t, http.StatusOK, reply)
|
||||
code, out, errOut := runChunk("detach", "--plain", "--volume", "vol", "--status-addr", srv.URL, "--timeout", "2s")
|
||||
if code != 0 || out != reply || !strings.Contains(errOut, "sealed HEAD generation: 11\n") {
|
||||
@@ -41,7 +43,7 @@ func TestOpsChunkPlainDetachRefusesInvalidMixBeforeHTTP(t *testing.T) {
|
||||
func TestOpsChunkPlainDetachPreservesTypedFailure(t *testing.T) {
|
||||
for _, reason := range []string{"busy", "fenced", "outcome_unknown"} {
|
||||
t.Run(reason, func(t *testing.T) {
|
||||
reply := `{"code":"` + reason + `","message":"seal refused","retryable":true}`
|
||||
reply := `{"apiVersion":1,"code":"` + reason + `","message":"seal refused","retryable":true}`
|
||||
srv, got := chunkServer(t, http.StatusConflict, reply)
|
||||
code, out, errOut := runChunk("detach", "--plain", "--volume", "vol", "--status-addr", srv.URL)
|
||||
if code != 1 || out != reply || len(*got) != 1 || strings.Contains(errOut, "sealed HEAD generation:") {
|
||||
@@ -50,3 +52,42 @@ func TestOpsChunkPlainDetachPreservesTypedFailure(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// An observed plain detach whose handle the holder ends outcome_unknown is
|
||||
// reported unknown (exit 3) at once: one admission, one read, no re-POST.
|
||||
func TestOpsChunkPlainDetachHandleEndedUnknownIsReportedAtOnce(t *testing.T) {
|
||||
synctest.Test(t, func(t *testing.T) {
|
||||
start, posts, polls := time.Now(), 0, 0
|
||||
installCutPollTransport(t, func(r *http.Request) (*http.Response, error) {
|
||||
if r.Method == http.MethodPost {
|
||||
posts++
|
||||
return cutPollReply(202, `{"apiVersion":1,"code":"in_progress","cutID":"d1","sequence":1}`), nil
|
||||
}
|
||||
polls++
|
||||
return cutPollReply(503, `{"apiVersion":1,"code":"outcome_unknown","cutID":"d1","message":"publish answer lost","retryable":true}`), nil
|
||||
})
|
||||
code, out, _ := runChunk("detach", "--plain", "--volume", "v1", "--status-addr", "http://holder", "--timeout", "1m")
|
||||
if code != 3 || posts != 1 || polls != 1 || !strings.Contains(out, `"code":"outcome_unknown"`) || time.Since(start) >= time.Minute {
|
||||
t.Fatalf("code=%d posts=%d polls=%d elapsed=%s out=%s", code, posts, polls, time.Since(start), out)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// A first answer that already carries the detach's id with a terminal
|
||||
// outcome_unknown (the admitted worker ended unknown within the window) is
|
||||
// unknown (exit 3), never a definite refusal, with one POST.
|
||||
func TestOpsChunkPlainDetachFirstAnswerUnknownWithItsIDIsUnknown(t *testing.T) {
|
||||
synctest.Test(t, func(t *testing.T) {
|
||||
posts := 0
|
||||
installCutPollTransport(t, func(r *http.Request) (*http.Response, error) {
|
||||
if r.Method == http.MethodPost {
|
||||
posts++
|
||||
}
|
||||
return cutPollReply(503, `{"apiVersion":1,"code":"outcome_unknown","cutID":"d1","message":"publish answer lost","retryable":true}`), nil
|
||||
})
|
||||
code, out, _ := runChunk("detach", "--plain", "--volume", "v1", "--status-addr", "http://holder", "--timeout", "1m")
|
||||
if code != 3 || posts != 1 || !strings.Contains(out, `"code":"outcome_unknown"`) {
|
||||
t.Fatalf("code=%d posts=%d out=%s, want unknown after one POST", code, posts, out)
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -29,15 +29,32 @@ type scripted struct {
|
||||
replies []scriptedReply
|
||||
hold time.Duration
|
||||
status func(n int, volume string) (int, string, time.Duration)
|
||||
// sync answers a 200 reply as it is even to an asynchronous snapshot
|
||||
// request (a holder older than this release). Otherwise such a reply is
|
||||
// the snapshot operation's result: admitted (202), then read succeeded.
|
||||
sync bool
|
||||
|
||||
mu sync.Mutex
|
||||
posts []postRecord
|
||||
gets int
|
||||
ops map[string]string // request id -> the operation's result
|
||||
}
|
||||
|
||||
func (s *scripted) start(t *testing.T) *httptest.Server {
|
||||
t.Helper()
|
||||
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Method == http.MethodGet && r.URL.Path == "/chunk/operations" {
|
||||
id := r.URL.Query().Get("request_id")
|
||||
s.mu.Lock()
|
||||
result, ok := s.ops[id]
|
||||
s.mu.Unlock()
|
||||
if !ok {
|
||||
http.NotFound(w, r)
|
||||
return
|
||||
}
|
||||
_, _ = io.WriteString(w, `{"operation_id":"`+id+`","state":"succeeded","result":`+result+`}`)
|
||||
return
|
||||
}
|
||||
if r.Method != http.MethodPost {
|
||||
s.mu.Lock()
|
||||
n := s.gets
|
||||
@@ -74,6 +91,18 @@ func (s *scripted) start(t *testing.T) *httptest.Server {
|
||||
return
|
||||
}
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
if id, _ := m["requestID"].(string); rep.status == http.StatusOK && !s.sync && r.Header.Get("Prefer") == "respond-async" {
|
||||
s.mu.Lock()
|
||||
if s.ops == nil {
|
||||
s.ops = map[string]string{}
|
||||
}
|
||||
s.ops[id] = rep.body
|
||||
s.mu.Unlock()
|
||||
w.Header().Set("Location", "/chunk/operations?request_id="+id)
|
||||
w.WriteHeader(http.StatusAccepted)
|
||||
_, _ = io.WriteString(w, `{"operation_id":"`+id+`","state":"accepted"}`)
|
||||
return
|
||||
}
|
||||
w.WriteHeader(rep.status)
|
||||
_, _ = io.WriteString(w, rep.body)
|
||||
}))
|
||||
@@ -343,8 +372,9 @@ func TestChunkLoopReportsTheHolderProgressSinceTheFirstRequest(t *testing.T) {
|
||||
}
|
||||
|
||||
// A cut with an unidentified admission outcome must not start a second cut.
|
||||
// Plain detach retains its retry loop; the sealed generation is printed once.
|
||||
func TestChunkCutUnknownIsNotRepostedAndPlainDetachRetries(t *testing.T) {
|
||||
// A plain detach runs on a handle too: a refused admission is reported as it
|
||||
// is, without a second POST; a sealed answer prints its generation once.
|
||||
func TestChunkCutUnknownAndPlainDetachRefusalAreNotReposted(t *testing.T) {
|
||||
shortLoop(t, 200*time.Millisecond, 10*time.Millisecond, 10*time.Millisecond)
|
||||
s := &scripted{replies: []scriptedReply{{503, cutUnknown}, {200, `{"volumeID":"v1","cutLSN":9}`}}}
|
||||
srv := s.start(t)
|
||||
@@ -358,11 +388,19 @@ func TestChunkCutUnknownIsNotRepostedAndPlainDetachRetries(t *testing.T) {
|
||||
if strings.Contains(errs, "stopped guest I/O") {
|
||||
t.Fatalf("cut stderr %q: an outcome_unknown cut does not stop guest I/O", errs)
|
||||
}
|
||||
s2 := &scripted{replies: []scriptedReply{{503, timedOut}, {200, sealed}}}
|
||||
// A plain detach's answers speak the versioned cut API.
|
||||
versioned := func(body string) string { return `{"apiVersion":1,` + body[1:] }
|
||||
s2 := &scripted{replies: []scriptedReply{{503, versioned(timedOut)}, {200, versioned(sealed)}}}
|
||||
srv2 := s2.start(t)
|
||||
code, out, errs = runChunk("detach", "--plain", "--volume", "v1", "--status-addr", srv2.URL, "--timeout", "5s")
|
||||
if code != 0 || out != sealed || len(s2.recorded()) != 2 {
|
||||
t.Fatalf("plain detach: exit %d stdout %q stderr %q, %d requests", code, out, errs, len(s2.recorded()))
|
||||
if code != chunkExitFailed || out != versioned(timedOut) || len(s2.recorded()) != 1 {
|
||||
t.Fatalf("refused plain detach: exit %d stdout %q stderr %q, %d requests, want the refusal and one request", code, out, errs, len(s2.recorded()))
|
||||
}
|
||||
s3 := &scripted{replies: []scriptedReply{{200, versioned(sealed)}}}
|
||||
srv3 := s3.start(t)
|
||||
code, out, errs = runChunk("detach", "--plain", "--volume", "v1", "--status-addr", srv3.URL, "--timeout", "5s")
|
||||
if code != 0 || out != versioned(sealed) || len(s3.recorded()) != 1 {
|
||||
t.Fatalf("plain detach: exit %d stdout %q stderr %q, %d requests", code, out, errs, len(s3.recorded()))
|
||||
}
|
||||
if n := strings.Count(errs, "sealed HEAD generation: 5"); n != 1 {
|
||||
t.Fatalf("stderr %q: the sealed generation is printed %d times, want once", errs, n)
|
||||
@@ -387,7 +425,10 @@ func TestChunkDetachOutcomeUnknownSettles(t *testing.T) {
|
||||
{"fenced", []scriptedReply{{503, detachUnknown}, {409, detachFenced}}, chunkExitFailed, detachFenced},
|
||||
} {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
for _, plain := range []bool{false, true} {
|
||||
// A non-plain detach still settles by repeating the request. An observed
|
||||
// plain detach is never re-posted: a handle the holder ends outcome_unknown
|
||||
// is reported unknown.
|
||||
for _, plain := range []bool{false} {
|
||||
s := &scripted{replies: tc.replies}
|
||||
srv := s.start(t)
|
||||
args := []string{"detach", "--volume", "v1", "--status-addr", srv.URL, "--timeout", "5s"}
|
||||
@@ -457,3 +498,16 @@ func TestChunkDetachTimeoutHelpNamesTheGuestStop(t *testing.T) {
|
||||
t.Fatalf("detach help %q", errs)
|
||||
}
|
||||
}
|
||||
|
||||
// A holder that answers a snapshot synchronously, without an operation, is
|
||||
// older than this release: the command ends unknown (exit 3) naming the
|
||||
// upgrade, and relays no snapshot.
|
||||
func TestChunkSnapshotSynchronousHolderIsUnsupported(t *testing.T) {
|
||||
shortLoop(t, 200*time.Millisecond, 10*time.Millisecond, 10*time.Millisecond)
|
||||
s := &scripted{replies: []scriptedReply{{200, published}}, sync: true}
|
||||
srv := s.start(t)
|
||||
code, out, errs := runChunk("snapshot", "--volume", "v1", "--status-addr", srv.URL, "--name", "s1", "--request-id", "rid-1", "--timeout", "5s")
|
||||
if code != chunkExitUnknown || strings.Contains(out, `"cutLSN"`) || !strings.Contains(out, "upgrade it") {
|
||||
t.Fatalf("exit %d stdout %q stderr %q: want unknown naming the upgrade", code, out, errs)
|
||||
}
|
||||
}
|
||||
@@ -23,15 +23,29 @@ type chunkRoute struct {
|
||||
func chunkServer(t *testing.T, status int, reply string) (*httptest.Server, *[]chunkRoute) {
|
||||
t.Helper()
|
||||
var got []chunkRoute
|
||||
results := map[string]string{} // snapshot request id -> its operation's result
|
||||
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
b, _ := io.ReadAll(r.Body)
|
||||
var m map[string]any
|
||||
_ = json.Unmarshal(b, &m)
|
||||
if id := r.URL.Query().Get("request_id"); r.Method == http.MethodGet && r.URL.Path == "/chunk/operations" && results[id] != "" {
|
||||
_, _ = io.WriteString(w, `{"operation_id":"`+id+`","state":"succeeded","result":`+results[id]+`}`)
|
||||
return
|
||||
}
|
||||
if r.Method != http.MethodPost {
|
||||
t.Errorf("%s %s: want POST", r.Method, r.URL.Path)
|
||||
}
|
||||
got = append(got, chunkRoute{path: r.URL.Path, body: m})
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
// A snapshot is an operation: its success answer is the operation's
|
||||
// result, read from the handle after the admission.
|
||||
if id, _ := m["requestID"].(string); status == http.StatusOK && r.Header.Get("Prefer") == "respond-async" {
|
||||
results[id] = reply
|
||||
w.Header().Set("Location", "/chunk/operations?request_id="+id)
|
||||
w.WriteHeader(http.StatusAccepted)
|
||||
_, _ = io.WriteString(w, `{"operation_id":"`+id+`","state":"accepted"}`)
|
||||
return
|
||||
}
|
||||
w.WriteHeader(status)
|
||||
_, _ = io.WriteString(w, reply)
|
||||
}))
|
||||
|
||||
@@ -22,8 +22,16 @@ const chunkExitCutBusy = 4
|
||||
// Only this cut's completed-step sequence renews observation.
|
||||
// A chosen deadline remains absolute across every request.
|
||||
func chunkObserveCut(addr string, window time.Duration, deadline time.Time, body map[string]any, stdout, stderr io.Writer) int {
|
||||
return chunkObserveHandle("cut", "/chunk/cut", addr, window, deadline, body, stdout, stderr)
|
||||
}
|
||||
|
||||
// chunkObserveHandle admits an observed operation at route (a cut, or a
|
||||
// plain detach, CutTime r7) once, then reads its status by the handle's id
|
||||
// on the shared /chunk/cut status route. Only this handle's sequence rises
|
||||
// renew observation; a chosen deadline stays absolute.
|
||||
func chunkObserveHandle(name, route, addr string, window time.Duration, deadline time.Time, body map[string]any, stdout, stderr io.Writer) int {
|
||||
if window < time.Millisecond || window > time.Duration(1<<63-1)-cutObservationSlack {
|
||||
return chunkFail("cut", stdout, stderr, 2, codeBadRequestCLI, "--timeout must be at least 1ms and leave room for observation slack", false)
|
||||
return chunkFail(name, stdout, stderr, 2, codeBadRequestCLI, "--timeout must be at least 1ms and leave room for observation slack", false)
|
||||
}
|
||||
body["timeoutMs"] = window.Milliseconds()
|
||||
if !deadline.IsZero() {
|
||||
@@ -31,7 +39,7 @@ func chunkObserveCut(addr string, window time.Duration, deadline time.Time, body
|
||||
}
|
||||
payload, err := json.Marshal(body)
|
||||
if err != nil {
|
||||
return chunkFail("cut", stdout, stderr, 2, codeBadRequestCLI, err.Error(), false)
|
||||
return chunkFail(name, stdout, stderr, 2, codeBadRequestCLI, err.Error(), false)
|
||||
}
|
||||
if !strings.Contains(addr, "://") {
|
||||
addr = "http://" + addr
|
||||
@@ -46,9 +54,9 @@ func chunkObserveCut(addr string, window time.Duration, deadline time.Time, body
|
||||
client.CheckRedirect = func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }
|
||||
unknown := func(why string) int {
|
||||
if id != "" {
|
||||
why += "; cut id " + id
|
||||
why += "; id " + id
|
||||
}
|
||||
return chunkFail("cut", stdout, stderr, chunkExitUnknown, "outcome_unknown", why, true)
|
||||
return chunkFail(name, stdout, stderr, chunkExitUnknown, "outcome_unknown", why, true)
|
||||
}
|
||||
for {
|
||||
until := last.Add(bound)
|
||||
@@ -56,20 +64,20 @@ func chunkObserveCut(addr string, window time.Duration, deadline time.Time, body
|
||||
until = deadline
|
||||
}
|
||||
if !time.Now().Before(until) {
|
||||
return unknown("cut observation window or explicit deadline expired")
|
||||
return unknown(name + " observation window or explicit deadline expired")
|
||||
}
|
||||
ctx, cancel := context.WithDeadline(context.Background(), until)
|
||||
method, endpoint := http.MethodPost, strings.TrimRight(addr, "/")+"/chunk/cut"
|
||||
method, endpoint := http.MethodPost, strings.TrimRight(addr, "/")+route
|
||||
var requestBody io.Reader = bytes.NewReader(payload)
|
||||
if id != "" {
|
||||
method = http.MethodGet
|
||||
endpoint += "?" + url.Values{"volumeID": {fmt.Sprint(body["volumeID"])}, "cutID": {id}}.Encode()
|
||||
endpoint = strings.TrimRight(addr, "/") + "/chunk/cut?" + url.Values{"volumeID": {fmt.Sprint(body["volumeID"])}, "cutID": {id}}.Encode()
|
||||
requestBody = nil
|
||||
}
|
||||
req, err := http.NewRequestWithContext(ctx, method, endpoint, requestBody)
|
||||
if err != nil {
|
||||
cancel()
|
||||
return chunkFail("cut", stdout, stderr, 2, codeBadRequestCLI, err.Error(), false)
|
||||
return chunkFail(name, stdout, stderr, 2, codeBadRequestCLI, err.Error(), false)
|
||||
}
|
||||
if method == http.MethodPost {
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
@@ -78,7 +86,7 @@ func chunkObserveCut(addr string, window time.Duration, deadline time.Time, body
|
||||
var raw []byte
|
||||
if err != nil && id == "" {
|
||||
cancel()
|
||||
return unknown("cut admission answer was not received; no second cut was started")
|
||||
return unknown(name + " admission answer was not received (" + err.Error() + "); no second one was started")
|
||||
}
|
||||
if err == nil {
|
||||
raw, err = io.ReadAll(io.LimitReader(resp.Body, chunkResponseLimit+1))
|
||||
@@ -90,7 +98,7 @@ func chunkObserveCut(addr string, window time.Duration, deadline time.Time, body
|
||||
cancel()
|
||||
// Late sequence rises cannot revive silence already exhausted.
|
||||
if !time.Now().Before(until) {
|
||||
return unknown("cut observation window or explicit deadline expired")
|
||||
return unknown(name + " observation window or explicit deadline expired")
|
||||
}
|
||||
if err == nil {
|
||||
var protocol struct {
|
||||
@@ -121,9 +129,9 @@ func chunkObserveCut(addr string, window time.Duration, deadline time.Time, body
|
||||
CutLSN *uint64 `json:"cutLSN"`
|
||||
HeadGen *uint64 `json:"headGen"`
|
||||
}
|
||||
if json.Unmarshal(raw, &result) == nil && (id == "" || result.CutID == id) && result.VolumeID == body["volumeID"] && result.CutLSN != nil && result.HeadGen != nil && (!legacy || result.CutID == "") {
|
||||
if json.Unmarshal(raw, &result) == nil && (id == "" || result.CutID == id) && result.VolumeID == body["volumeID"] && (result.CutLSN != nil || name == "detach") && result.HeadGen != nil && (!legacy || result.CutID == "") {
|
||||
if err := writeAll(stdout, raw); err != nil {
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk cut: write the result: %v\n", err)
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk %s: write the result: %v\n", name, err)
|
||||
return chunkExitFailed
|
||||
}
|
||||
return 0
|
||||
@@ -143,27 +151,34 @@ func chunkObserveCut(addr string, window time.Duration, deadline time.Time, body
|
||||
if resp.StatusCode == http.StatusAccepted && answer.Code == "in_progress" {
|
||||
if id == "" && answer.ID != "" {
|
||||
id = answer.ID
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk cut: cut id %s\n", id)
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk "+name+": id %s\n", id)
|
||||
}
|
||||
if answer.ID == id && answer.Sequence > seen {
|
||||
seen = answer.Sequence
|
||||
last = time.Now()
|
||||
}
|
||||
} else if id == "" && answer.Code == "cut_busy" {
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk cut: %s: %s\n", answer.Code, answer.Message)
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk %s: %s: %s\n", name, answer.Code, answer.Message)
|
||||
if err := writeAll(stdout, raw); err != nil {
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk cut: write the result: %v\n", err)
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk %s: write the result: %v\n", name, err)
|
||||
return chunkExitFailed
|
||||
}
|
||||
return chunkExitCutBusy
|
||||
} else if answer.Code == "unknown_cut_id" && answer.ID == id && id != "" {
|
||||
return unknown("holder no longer knows this cut id")
|
||||
} else if answer.Code == "outcome_unknown" && answer.ID == id && id != "" {
|
||||
return unknown("cut publication settlement exhausted its progress window")
|
||||
} else if (id == "" || answer.ID == id) && (answer.Code == "cut_stalled" || (!answer.Retryable && answer.Code != "outcome_unknown")) {
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk cut: %s: %s\n", answer.Code, answer.Message)
|
||||
} else if id == "" && name == "detach" && resp.StatusCode != http.StatusAccepted && answer.ID == "" {
|
||||
// A plain detach refused at admission started nothing: report the
|
||||
// typed refusal as it is (the detach keeps its existing failure answer).
|
||||
if err := writeAll(stdout, raw); err != nil {
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk cut: write the result: %v\n", err)
|
||||
return chunkExitFailed
|
||||
}
|
||||
return chunkExitFailed
|
||||
} else if answer.Code == "unknown_cut_id" && answer.ID == id && id != "" {
|
||||
return unknown("holder no longer knows this id")
|
||||
} else if answer.Code == "outcome_unknown" && answer.ID == id && id != "" {
|
||||
return unknown(name + " publication settlement exhausted its progress window")
|
||||
} else if (id == "" || answer.ID == id) && (answer.Code == "cut_stalled" || (!answer.Retryable && answer.Code != "outcome_unknown")) {
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk %s: %s: %s\n", name, answer.Code, answer.Message)
|
||||
if err := writeAll(stdout, raw); err != nil {
|
||||
fmt.Fprintf(stderr, "sw-block ops chunk %s: write the result: %v\n", name, err)
|
||||
return chunkExitFailed
|
||||
}
|
||||
return chunkExitFailed
|
||||
@@ -172,9 +187,9 @@ func chunkObserveCut(addr string, window time.Duration, deadline time.Time, body
|
||||
}
|
||||
if id == "" {
|
||||
if err != nil {
|
||||
return unknown("cut admission answer could not be read: " + err.Error())
|
||||
return unknown(name + " admission answer could not be read: " + err.Error())
|
||||
}
|
||||
return unknown("cut admission answer did not identify its outcome")
|
||||
return unknown(name + " admission answer did not identify its outcome")
|
||||
}
|
||||
// Prompt short polling keeps the observation gap within the modeled slack.
|
||||
next := last.Add(bound)
|
||||
|
||||
@@ -30,8 +30,8 @@ type snapshotCLIAdmission struct {
|
||||
|
||||
// The admission retry uses the existing request loop and the same body. Once
|
||||
// admitted, observation only GETs the returned handle; interrupt ends the
|
||||
// observer, never the server operation. Old synchronous servers still relay
|
||||
// their final 200 answer through the existing loop.
|
||||
// observer, never the server operation. A synchronous answer (a holder
|
||||
// older than this release) is an unknown outcome.
|
||||
func chunkObserveSnapshot(addr string, timeout time.Duration, body map[string]any, noWait bool, stdout, stderr io.Writer) int {
|
||||
var a snapshotCLIAdmission
|
||||
code := chunkPostLoop("snapshot", addr, "/chunk/snapshot", timeout, body, stdout, stderr, &a)
|
||||
|
||||
@@ -42,6 +42,7 @@ func derivedID(prefix string, parts ...string) string {
|
||||
type backupOpts struct {
|
||||
Volume, Name string
|
||||
Timeout time.Duration
|
||||
Deadline time.Time // optional absolute bound on the snapshot (--deadline)
|
||||
}
|
||||
|
||||
func parseVolumeBackup(args []string, stderr io.Writer) (backupOpts, error) {
|
||||
@@ -49,10 +50,18 @@ func parseVolumeBackup(args []string, stderr io.Writer) (backupOpts, error) {
|
||||
fs.SetOutput(stderr)
|
||||
var o backupOpts
|
||||
fs.StringVar(&o.Name, "name", "", "snapshot name (required: the same --name resumes this backup)")
|
||||
fs.DurationVar(&o.Timeout, "timeout", 5*time.Minute, "bound on the snapshot")
|
||||
fs.DurationVar(&o.Timeout, "timeout", 5*time.Minute, "bound on each request to the holder; the snapshot itself is bounded by its progress (a silent snapshot ends stalled and the same command resumes it)")
|
||||
deadline := fs.String("deadline", "", "optional absolute RFC3339 deadline: the only total bound on the wait")
|
||||
if err := fs.Parse(volumeArgsFirst(args)); err != nil {
|
||||
return o, err
|
||||
}
|
||||
if *deadline != "" {
|
||||
d, err := time.Parse(time.RFC3339Nano, *deadline)
|
||||
if err != nil || d.IsZero() {
|
||||
return o, errors.New("--deadline must be an absolute RFC3339 time")
|
||||
}
|
||||
o.Deadline = d
|
||||
}
|
||||
if fs.NArg() != 1 || !volumeNameRE.MatchString(fs.Arg(0)) {
|
||||
fmt.Fprintln(stderr, volumeHelp())
|
||||
return o, errors.New("one volume")
|
||||
@@ -107,7 +116,7 @@ func volumeBackup(ctx context.Context, env verbEnv, o backupOpts, stdout, stderr
|
||||
fmt.Fprintf(stderr, "sw-block volume backup: snapshot: %v; a cut that timed out keeps what it uploaded; to finish, run the same command (it resumes the same request and reuses completed uploads): %s\n", err, again)
|
||||
return 1
|
||||
}
|
||||
a, refusal, err := volumeSnapshot(ctx, env, e["SWB_STATUS_ADDR"], o.Volume, o.Name, id, o.Timeout)
|
||||
a, refusal, err := volumeSnapshot(ctx, env, e["SWB_STATUS_ADDR"], o.Volume, o.Name, id, o.Timeout, o.Deadline)
|
||||
if refusal != nil {
|
||||
text := refusal.Code + ": " + refusal.Message
|
||||
if refusal.Code == "snapshot_name_taken" {
|
||||
@@ -127,35 +136,77 @@ func volumeBackup(ctx context.Context, env verbEnv, o backupOpts, stdout, stderr
|
||||
|
||||
type snapshotRefusal struct{ Code, Message string }
|
||||
|
||||
// volumeSnapshot is the holder's POST /chunk/snapshot with a fixed request
|
||||
// id. Only a complete answer naming this volume and name is the snapshot; a
|
||||
// volumeSnapshot is the holder's asynchronous snapshot operation with a
|
||||
// fixed request id (F05): one POST with Prefer: respond-async, then the
|
||||
// operation handle is read until it ends; timeout bounds each request and
|
||||
// deadline, when set, is the only total bound. The holder bounds a silent
|
||||
// snapshot cut by its progress window (the operation then ends stalled, and
|
||||
// the same command resumes it). Only a complete answer naming this volume and name is the snapshot; a
|
||||
// refusal returns its code and message; anything else is an unknown outcome
|
||||
// that the same request resolves (a snapshot is one conditional HEAD write:
|
||||
// it exists or it does not, and a replay finds it).
|
||||
func volumeSnapshot(ctx context.Context, env verbEnv, status, volume, name, requestID string, timeout time.Duration) (snapshotAnswer, *snapshotRefusal, error) {
|
||||
ctx, cancel := context.WithTimeout(ctx, timeout)
|
||||
defer cancel()
|
||||
body, _ := json.Marshal(map[string]any{"volumeID": volume, "name": name, "requestID": requestID, "consistency": "crash", "labels": map[string]string{backupLabel: backupTag(requestID)}})
|
||||
req, err := http.NewRequestWithContext(ctx, http.MethodPost, "http://"+status+"/chunk/snapshot", bytes.NewReader(body))
|
||||
if err != nil {
|
||||
return snapshotAnswer{}, nil, err
|
||||
func volumeSnapshot(ctx context.Context, env verbEnv, status, volume, name, requestID string, timeout time.Duration, deadline time.Time) (snapshotAnswer, *snapshotRefusal, error) {
|
||||
if !deadline.IsZero() {
|
||||
var cancel context.CancelFunc
|
||||
ctx, cancel = context.WithDeadline(ctx, deadline)
|
||||
defer cancel()
|
||||
}
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
body, _ := json.Marshal(map[string]any{"volumeID": volume, "name": name, "requestID": requestID, "consistency": "crash", "labels": map[string]string{backupLabel: backupTag(requestID)}})
|
||||
client := *env.HTTP
|
||||
client.Timeout = timeout + 5*time.Second
|
||||
client.CheckRedirect = func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }
|
||||
unknown := func(why string) (snapshotAnswer, *snapshotRefusal, error) {
|
||||
return snapshotAnswer{}, nil, fmt.Errorf("the snapshot's outcome is unknown (%s)", why)
|
||||
}
|
||||
rctx, cancel := context.WithTimeout(ctx, timeout)
|
||||
req, err := http.NewRequestWithContext(rctx, http.MethodPost, "http://"+status+"/chunk/snapshot", bytes.NewReader(body))
|
||||
if err != nil {
|
||||
cancel()
|
||||
return snapshotAnswer{}, nil, err
|
||||
}
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
req.Header.Set("Prefer", "respond-async")
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
cancel()
|
||||
return unknown(err.Error())
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
b, err := io.ReadAll(io.LimitReader(resp.Body, 64<<10))
|
||||
resp.Body.Close()
|
||||
cancel()
|
||||
if err != nil {
|
||||
return unknown("answer unreadable: " + err.Error())
|
||||
}
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
if resp.StatusCode == http.StatusAccepted {
|
||||
var adm snapshotOperationIdentity
|
||||
if json.Unmarshal(b, &adm) != nil || adm.ID != requestID || adm.Target == "" || adm.Handle == "" || adm.Handle != resp.Header.Get("Location") {
|
||||
return unknown("the admission answer does not identify this backup's operation")
|
||||
}
|
||||
if b, err = observeSnapshotOperation(ctx, env, client, status, adm, timeout); err != nil {
|
||||
return unknown(err.Error())
|
||||
}
|
||||
var op struct {
|
||||
State string `json:"state"`
|
||||
Result json.RawMessage `json:"result"`
|
||||
Code string `json:"code"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
if json.Unmarshal(b, &op) != nil {
|
||||
return unknown("operation answer unreadable")
|
||||
}
|
||||
switch op.State {
|
||||
case "succeeded":
|
||||
b = op.Result
|
||||
case "refused":
|
||||
return snapshotAnswer{}, &snapshotRefusal{Code: op.Code, Message: op.Message}, nil
|
||||
default:
|
||||
return unknown("the snapshot operation " + op.State + "; run the same command to resume it")
|
||||
}
|
||||
} else if resp.StatusCode == http.StatusOK {
|
||||
// A holder without snapshot operations predates this release: the
|
||||
// asynchronous operation replaced its synchronous answer.
|
||||
return unknown("the holder answered without a snapshot operation; upgrade it to this release, then run the same command")
|
||||
} else {
|
||||
var eb struct{ Code, Message string }
|
||||
if json.Unmarshal(b, &eb) != nil || eb.Code == "" || eb.Code == "outcome_unknown" {
|
||||
return unknown(fmt.Sprintf("http %d %s %s", resp.StatusCode, eb.Code, strings.TrimSpace(eb.Message)))
|
||||
@@ -175,6 +226,85 @@ func volumeSnapshot(ctx context.Context, env verbEnv, status, volume, name, requ
|
||||
return a, nil, nil
|
||||
}
|
||||
|
||||
// snapshotOperationIdentity names one admitted snapshot operation: its
|
||||
// request id, target incarnation and handle.
|
||||
type snapshotOperationIdentity struct {
|
||||
ID string `json:"operation_id"`
|
||||
Target string `json:"target"`
|
||||
Handle string `json:"handle"`
|
||||
}
|
||||
|
||||
// matches reports whether a status answer is the admitted operation's: the
|
||||
// same request id, target and handle (which names its incarnation).
|
||||
func (o snapshotOperationIdentity) matches(adm snapshotOperationIdentity) bool {
|
||||
return o.ID == adm.ID && o.Target == adm.Target && o.Handle == adm.Handle
|
||||
}
|
||||
|
||||
// observeSnapshotOperation reads the snapshot operation at location until
|
||||
// it ends (succeeded, refused or stalled), each read bounded by timeout,
|
||||
// and returns its last answer. Interruption or the context's deadline ends
|
||||
// the wait with an error: the operation runs on, and the same command
|
||||
// resumes it.
|
||||
func observeSnapshotOperation(ctx context.Context, env verbEnv, client http.Client, status string, adm snapshotOperationIdentity, timeout time.Duration) ([]byte, error) {
|
||||
location := adm.Handle
|
||||
if !strings.HasPrefix(location, "/") {
|
||||
return nil, fmt.Errorf("the holder named no operation handle")
|
||||
}
|
||||
// Unreadable answers end the wait once none was read for this long; a
|
||||
// progressing operation has no total bound.
|
||||
silence := timeout + volumeCutSlack
|
||||
lastRead := time.Now()
|
||||
for {
|
||||
if time.Since(lastRead) > silence {
|
||||
return nil, fmt.Errorf("the snapshot operation could not be read for %s", silence)
|
||||
}
|
||||
rctx, cancel := context.WithTimeout(ctx, timeout)
|
||||
req, err := http.NewRequestWithContext(rctx, http.MethodGet, "http://"+status+location, nil)
|
||||
if err != nil {
|
||||
cancel()
|
||||
return nil, err
|
||||
}
|
||||
resp, err := client.Do(req)
|
||||
var b []byte
|
||||
if err == nil {
|
||||
b, err = io.ReadAll(io.LimitReader(resp.Body, 64<<10))
|
||||
resp.Body.Close()
|
||||
if err == nil && resp.StatusCode != http.StatusOK {
|
||||
var eb struct{ Code string }
|
||||
if resp.StatusCode == http.StatusNotFound && json.Unmarshal(b, &eb) == nil && eb.Code == "operation_not_found" {
|
||||
cancel()
|
||||
return nil, fmt.Errorf("the holder no longer knows the snapshot operation")
|
||||
}
|
||||
err = fmt.Errorf("operation status http %d", resp.StatusCode)
|
||||
}
|
||||
}
|
||||
cancel()
|
||||
if ctx.Err() != nil {
|
||||
return nil, fmt.Errorf("the wait for the snapshot operation ended: %w", ctx.Err())
|
||||
}
|
||||
if err == nil {
|
||||
var op struct {
|
||||
snapshotOperationIdentity
|
||||
State string `json:"state"`
|
||||
}
|
||||
if json.Unmarshal(b, &op) == nil {
|
||||
lastRead = time.Now()
|
||||
if !op.matches(adm) {
|
||||
return nil, fmt.Errorf("the holder answered for another operation (%s)", op.ID)
|
||||
}
|
||||
if op.State != "accepted" && op.State != "running" {
|
||||
return b, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return nil, fmt.Errorf("the wait for the snapshot operation ended: %w", ctx.Err())
|
||||
case <-time.After(env.Poll):
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
type restoreOpts struct {
|
||||
Source, Snapshot string
|
||||
New volumeSpec // the new volume: its name and its own endpoints (from the flags)
|
||||
|
||||
@@ -34,13 +34,47 @@ type snapHolder struct {
|
||||
mu sync.Mutex
|
||||
snaps map[string]string // name -> its backup label ("" for a snapshot without one)
|
||||
posts int
|
||||
mode string // "", "lost" (taken, answer lost), "refuse", "unknown", "missing-<field>"
|
||||
mode string // "", "lost" (taken, answer lost), "refuse", "unknown", "missing-<field>", "async" (runs two reads), "async-stalled", "async-gone" (handle lost), "async-silent" (reads fail), "async-foreign" (another operation answers), "sync" (no operations)
|
||||
srv *httptest.Server
|
||||
op map[string]any // the asynchronous operation's result
|
||||
opID string // its request id
|
||||
reads int // operation status reads
|
||||
}
|
||||
|
||||
func newSnapHolder(t *testing.T) *snapHolder {
|
||||
h := &snapHolder{snaps: map[string]string{}}
|
||||
h.srv = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
if r.URL.Path == "/chunk/operations" && r.Method == http.MethodGet {
|
||||
// The operation runs for two reads (modes async*), then ends.
|
||||
h.mu.Lock()
|
||||
defer h.mu.Unlock()
|
||||
h.reads++
|
||||
id := h.opID
|
||||
answer := func(m map[string]any) {
|
||||
m["operation_id"], m["target"], m["handle"] = id, "t1", "/chunk/operations?volume=vol-a&request_id="+id+"&verb=create"
|
||||
if h.mode == "async-incarnation" { // the same request id, another incarnation
|
||||
m["handle"] = m["handle"].(string) + "&sequence=2"
|
||||
}
|
||||
_ = json.NewEncoder(w).Encode(m)
|
||||
}
|
||||
switch {
|
||||
case h.op == nil || r.URL.Query().Get("request_id") != id || h.mode == "async-gone":
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"code": "operation_not_found", "message": "no such operation"})
|
||||
case h.mode == "async-silent":
|
||||
w.WriteHeader(http.StatusServiceUnavailable)
|
||||
case h.mode == "async-foreign":
|
||||
id = "another-request"
|
||||
answer(map[string]any{"state": "refused", "code": "snapshot_exists", "message": "not this one"})
|
||||
case h.reads <= 2 && strings.HasPrefix(h.mode, "async"):
|
||||
answer(map[string]any{"state": "running"})
|
||||
case h.mode == "async-stalled":
|
||||
answer(map[string]any{"state": "stalled"})
|
||||
default:
|
||||
answer(map[string]any{"state": "succeeded", "result": h.op})
|
||||
}
|
||||
return
|
||||
}
|
||||
if r.URL.Path != "/chunk/snapshot" || r.Method != http.MethodPost {
|
||||
http.NotFound(w, r)
|
||||
return
|
||||
@@ -86,6 +120,21 @@ func newSnapHolder(t *testing.T) *snapHolder {
|
||||
}
|
||||
return
|
||||
}
|
||||
if r.Header.Get("Prefer") == "respond-async" && h.mode != "sync" {
|
||||
h.op, h.opID, h.reads = answer, q.RequestID, 0
|
||||
location := "/chunk/operations?volume=vol-a&request_id=" + q.RequestID + "&verb=create"
|
||||
w.Header().Set("Location", location)
|
||||
body := map[string]any{"operation_id": q.RequestID, "target": "t1", "handle": location, "state": "accepted"}
|
||||
switch h.mode {
|
||||
case "async-no-target":
|
||||
delete(body, "target")
|
||||
case "async-contradictory":
|
||||
body["handle"] = location + "&sequence=9"
|
||||
}
|
||||
w.WriteHeader(http.StatusAccepted)
|
||||
_ = json.NewEncoder(w).Encode(body)
|
||||
return
|
||||
}
|
||||
_ = json.NewEncoder(w).Encode(answer)
|
||||
}))
|
||||
t.Cleanup(h.srv.Close)
|
||||
@@ -112,6 +161,8 @@ func (h *snapHolder) postCount() int {
|
||||
|
||||
func (h *snapHolder) put(name, label string) { h.mu.Lock(); h.snaps[name] = label; h.mu.Unlock() }
|
||||
|
||||
func (h *snapHolder) readCount() int { h.mu.Lock(); defer h.mu.Unlock(); return h.reads }
|
||||
|
||||
// restoreMaster is a running master's restore create (journaled: the same
|
||||
// request id completes it, another id is refused), GetVolume, and the
|
||||
// workspace binding and placement, behind real loopback gRPC.
|
||||
@@ -1016,3 +1067,80 @@ func TestVolumeRestoreAbortOfANeverCreatedTarget(t *testing.T) {
|
||||
t.Fatalf("abort of nothing: %d %s %s %v", code, out, errs, *order)
|
||||
}
|
||||
}
|
||||
|
||||
// The backup asks for the asynchronous snapshot operation (F05) and waits
|
||||
// on its handle while it runs: one POST, the handle read until it ends, and
|
||||
// the snapshot reported as on the synchronous path.
|
||||
func TestVolumeBackupWaitsOnTheSnapshotOperation(t *testing.T) {
|
||||
h := newFakeHost(t)
|
||||
env := h.env(t)
|
||||
env.Poll = 10 * time.Millisecond
|
||||
sh := newSnapHolder(t)
|
||||
sh.setMode("async")
|
||||
sourceEnv(t, env, "127.0.0.1:1", strings.TrimPrefix(sh.srv.URL, "http://"), true)
|
||||
code, out, errs := runBackup(env, "vol-a", "--name", "backup-async")
|
||||
if code != 0 || !strings.Contains(out, "snapshot backup-async of vol-a") || sh.postCount() != 1 || sh.readCount() != 3 {
|
||||
t.Fatalf("async backup: %d\n%s\n%s (posts %d, reads %d)", code, out, errs, sh.postCount(), sh.readCount())
|
||||
}
|
||||
}
|
||||
|
||||
// An operation that ends without a snapshot (stalled) is an unknown outcome
|
||||
// that names the same command; nothing is reported as taken.
|
||||
func TestVolumeBackupStalledOperationIsUnknown(t *testing.T) {
|
||||
h := newFakeHost(t)
|
||||
env := h.env(t)
|
||||
env.Poll = 10 * time.Millisecond
|
||||
sh := newSnapHolder(t)
|
||||
sh.setMode("async-stalled")
|
||||
sourceEnv(t, env, "127.0.0.1:1", strings.TrimPrefix(sh.srv.URL, "http://"), true)
|
||||
code, out, errs := runBackup(env, "vol-a", "--name", "backup-async")
|
||||
if code == 0 || !strings.Contains(errs, "unknown") || !strings.Contains(errs, "stalled") || strings.Contains(out, "snapshot backup-async of vol-a") {
|
||||
t.Fatalf("stalled operation: %d\n%s\n%s", code, out, errs)
|
||||
}
|
||||
}
|
||||
|
||||
// A holder that answers synchronously, without a snapshot operation, is
|
||||
// older than this release: the backup reports an unknown outcome naming the
|
||||
// upgrade, and never reports the snapshot as taken.
|
||||
func TestVolumeBackupSynchronousHolderIsUnsupported(t *testing.T) {
|
||||
h := newFakeHost(t)
|
||||
env := h.env(t)
|
||||
sh := newSnapHolder(t)
|
||||
sh.setMode("sync")
|
||||
sourceEnv(t, env, "127.0.0.1:1", strings.TrimPrefix(sh.srv.URL, "http://"), true)
|
||||
code, out, errs := runBackup(env, "vol-a", "--name", "backup-sync")
|
||||
if code == 0 || !strings.Contains(errs, "upgrade it") || strings.Contains(out, "snapshot backup-sync of vol-a") {
|
||||
t.Fatalf("synchronous holder: %d %s %s", code, out, errs)
|
||||
}
|
||||
}
|
||||
|
||||
// A backup reads only its admitted operation: a lost handle, reads that stay
|
||||
// unreadable past the silence bound, and another operation's status all end
|
||||
// the wait with an unknown outcome, after one admission and with nothing
|
||||
// reported as taken or refused.
|
||||
func TestVolumeBackupOperationHandleLostSilentOrForeignIsUnknown(t *testing.T) {
|
||||
prev := volumeCutSlack
|
||||
volumeCutSlack = 50 * time.Millisecond
|
||||
t.Cleanup(func() { volumeCutSlack = prev })
|
||||
for _, c := range []struct{ mode, want string }{
|
||||
{"async-gone", "no longer knows"},
|
||||
{"async-silent", "could not be read"},
|
||||
{"async-foreign", "another operation"},
|
||||
{"async-incarnation", "another operation"},
|
||||
{"async-no-target", "does not identify"},
|
||||
{"async-contradictory", "does not identify"},
|
||||
} {
|
||||
t.Run(c.mode, func(t *testing.T) {
|
||||
h := newFakeHost(t)
|
||||
env := h.env(t)
|
||||
env.Poll = 5 * time.Millisecond
|
||||
sh := newSnapHolder(t)
|
||||
sh.setMode(c.mode)
|
||||
sourceEnv(t, env, "127.0.0.1:1", strings.TrimPrefix(sh.srv.URL, "http://"), true)
|
||||
code, out, errs := runBackup(env, "vol-a", "--name", "b1", "--timeout", "100ms")
|
||||
if code == 0 || !strings.Contains(errs, "unknown") || !strings.Contains(errs, c.want) || sh.postCount() != 1 || strings.Contains(out, "snapshot b1 of vol-a") || strings.Contains(errs, "refused") {
|
||||
t.Fatalf("%s: %d %s %s (posts %d)", c.mode, code, out, errs, sh.postCount())
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -19,6 +19,7 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/chunkstore"
|
||||
"github.com/seaweedfs/seaweed-block/core/ops"
|
||||
)
|
||||
|
||||
@@ -418,6 +419,7 @@ type stopOpts struct {
|
||||
Volume string
|
||||
Force, NoCut bool
|
||||
Timeout time.Duration
|
||||
Deadline time.Time // optional absolute bound on the cut (--deadline)
|
||||
}
|
||||
|
||||
func parseVolumeStop(args []string, stderr io.Writer) (stopOpts, error) {
|
||||
@@ -426,10 +428,18 @@ func parseVolumeStop(args []string, stderr io.Writer) (stopOpts, error) {
|
||||
var o stopOpts
|
||||
fs.BoolVar(&o.Force, "force", false, "stop although a guest is connected (it gets I/O errors), or although whether one is connected cannot be read")
|
||||
fs.BoolVar(&o.NoCut, "no-cut", false, "stop without a cut (or although the cut failed): the recovery point in the object store does not move")
|
||||
fs.DurationVar(&o.Timeout, "timeout", 2*time.Minute, "bound on the cut")
|
||||
fs.DurationVar(&o.Timeout, "timeout", 2*time.Minute, "the cut's progress window: the stop waits while the cut progresses and gives up (outcome unknown) only after this long without progress")
|
||||
deadline := fs.String("deadline", "", "optional absolute RFC3339 deadline: the only total bound on the cut")
|
||||
if err := fs.Parse(volumeArgsFirst(args)); err != nil {
|
||||
return o, err
|
||||
}
|
||||
if *deadline != "" {
|
||||
d, err := time.Parse(time.RFC3339Nano, *deadline)
|
||||
if err != nil || d.IsZero() {
|
||||
return o, errors.New("--deadline must be an absolute RFC3339 time")
|
||||
}
|
||||
o.Deadline = d
|
||||
}
|
||||
if fs.NArg() != 1 || !volumeNameRE.MatchString(fs.Arg(0)) {
|
||||
fmt.Fprintln(stderr, volumeHelp())
|
||||
return o, errors.New("one volume")
|
||||
@@ -522,7 +532,7 @@ func volumeStop(ctx context.Context, env verbEnv, o stopOpts, stdout, stderr io.
|
||||
// The time printed is taken before the request: the cut's barrier is
|
||||
// no earlier, so "writes after it" never claims a write the cut missed.
|
||||
cutAt := env.Now()
|
||||
res, err := volumeCut(ctx, env, status, o.Volume, o.Timeout)
|
||||
res, err := volumeCut(ctx, env, status, o.Volume, o.Timeout, o.Deadline)
|
||||
if err != nil {
|
||||
return refuse("cut", fmt.Sprintf("%v. Nothing was stopped; the local data is safe on this host; %s. "+
|
||||
"A cut that timed out keeps what it uploaded: running the same command again continues from it. "+
|
||||
@@ -556,55 +566,136 @@ func stopUnit(ctx context.Context, env verbEnv, unit, volume, final string, stdo
|
||||
// cutAnswer is the part of POST /chunk/cut's success body volume stop checks.
|
||||
type cutAnswer struct {
|
||||
VolumeID string `json:"volumeID"`
|
||||
CutID string `json:"cutID"`
|
||||
CutLSN *uint64 `json:"cutLSN"` // required (0 is a legitimate empty volume's)
|
||||
HeadGen *uint64 `json:"headGen"` // required
|
||||
}
|
||||
|
||||
// volumeCut is POST /chunk/cut, one request bounded by timeout. Only a
|
||||
// volumeCutSlack is added to the stop's cut window before silence is an
|
||||
// unknown outcome (a test shortens it).
|
||||
var volumeCutSlack = 5 * time.Second
|
||||
|
||||
// volumeCut is the stop's observed manual cut (CutTime r7): one POST; an
|
||||
// answer within the window is the cut's, otherwise the cut's
|
||||
// handle is read by its id until it ends. Only a rise of its sequence renews
|
||||
// the wait: no rise for timeout plus slack, or the deadline passed, is an
|
||||
// unknown outcome, as is a holder that no longer knows the id. Only a
|
||||
// complete success answer for this volume is a cut; a refusal is an error,
|
||||
// and anything else (no answer, a timeout, an unreadable or foreign answer,
|
||||
// outcome_unknown) is an unknown outcome: the cut may have published.
|
||||
func volumeCut(ctx context.Context, env verbEnv, status, volume string, timeout time.Duration) (cutAnswer, error) {
|
||||
ctx, cancel := context.WithTimeout(ctx, timeout)
|
||||
defer cancel()
|
||||
body, _ := json.Marshal(map[string]any{"volumeID": volume, "timeoutMs": timeout.Milliseconds()})
|
||||
// and anything else is an unknown outcome: the cut may have published.
|
||||
func volumeCut(ctx context.Context, env verbEnv, status, volume string, timeout time.Duration, deadline time.Time) (cutAnswer, error) {
|
||||
slack := volumeCutSlack
|
||||
payload := map[string]any{"volumeID": volume, "timeoutMs": timeout.Milliseconds()}
|
||||
if !deadline.IsZero() {
|
||||
payload["deadlineNs"] = deadline.UnixNano()
|
||||
}
|
||||
body, _ := json.Marshal(payload)
|
||||
unknown := func(why string) (cutAnswer, error) {
|
||||
return cutAnswer{}, fmt.Errorf("the cut's outcome is unknown (%s): it may have published", why)
|
||||
}
|
||||
req, err := http.NewRequestWithContext(ctx, http.MethodPost, "http://"+status+"/chunk/cut", bytes.NewReader(body))
|
||||
if err != nil {
|
||||
return cutAnswer{}, err
|
||||
}
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
client := *env.HTTP
|
||||
client.Timeout = timeout + 5*time.Second
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
return unknown(err.Error())
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
b, err := io.ReadAll(io.LimitReader(resp.Body, 64<<10))
|
||||
if err != nil {
|
||||
return unknown("answer unreadable: " + err.Error())
|
||||
}
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
var eb struct{ Code, Message string }
|
||||
if json.Unmarshal(b, &eb) != nil || eb.Code == "" || eb.Code == "outcome_unknown" {
|
||||
return unknown(fmt.Sprintf("http %d %s %s", resp.StatusCode, eb.Code, strings.TrimSpace(eb.Message)))
|
||||
client.Timeout = timeout + slack
|
||||
client.CheckRedirect = func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }
|
||||
id, seen, last := "", uint64(0), time.Now()
|
||||
for {
|
||||
until := last.Add(timeout + slack)
|
||||
if !deadline.IsZero() && deadline.Before(until) {
|
||||
until = deadline
|
||||
}
|
||||
return cutAnswer{}, fmt.Errorf("the cut was refused: http %d %s %s", resp.StatusCode, eb.Code, eb.Message)
|
||||
if !time.Now().Before(until) {
|
||||
return unknown("no progress within the window, or the deadline passed; cut id " + id)
|
||||
}
|
||||
method, url := http.MethodPost, "http://"+status+"/chunk/cut"
|
||||
var reqBody io.Reader = bytes.NewReader(body)
|
||||
if id != "" {
|
||||
method, url, reqBody = http.MethodGet, url+"?volumeID="+volume+"&cutID="+id, nil
|
||||
}
|
||||
rctx, cancel := context.WithDeadline(ctx, until)
|
||||
req, err := http.NewRequestWithContext(rctx, method, url, reqBody)
|
||||
if err != nil {
|
||||
cancel()
|
||||
return cutAnswer{}, err
|
||||
}
|
||||
if method == http.MethodPost {
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
}
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
cancel()
|
||||
if id == "" {
|
||||
return unknown(err.Error())
|
||||
}
|
||||
time.Sleep(min(env.Poll, time.Until(until)))
|
||||
continue
|
||||
}
|
||||
b, err := io.ReadAll(io.LimitReader(resp.Body, 64<<10))
|
||||
resp.Body.Close()
|
||||
cancel()
|
||||
if err != nil {
|
||||
return unknown("answer unreadable: " + err.Error())
|
||||
}
|
||||
// Every answer speaks this CLI's integer cut API version (this
|
||||
// CLI's or the one before). Only the first answer may lack it, as a
|
||||
// synchronous 200 without a cut id from an older holder.
|
||||
var proto struct {
|
||||
Version json.RawMessage `json:"apiVersion"`
|
||||
}
|
||||
if json.Unmarshal(b, &proto) != nil {
|
||||
return unknown("answer is not a cut answer")
|
||||
}
|
||||
legacy := len(proto.Version) == 0
|
||||
if legacy && (id != "" || resp.StatusCode != http.StatusOK) {
|
||||
return unknown("answer carries no cut API version")
|
||||
}
|
||||
if !legacy {
|
||||
var v int
|
||||
if strings.TrimSpace(string(proto.Version)) == "null" || json.Unmarshal(proto.Version, &v) != nil || v < max(0, chunkstore.CutAPIVersion-1) || v > chunkstore.CutAPIVersion {
|
||||
return unknown("unsupported or invalid cut API version")
|
||||
}
|
||||
}
|
||||
if resp.StatusCode == http.StatusAccepted {
|
||||
var p struct {
|
||||
Code string `json:"code"`
|
||||
CutID string `json:"cutID"`
|
||||
Sequence uint64 `json:"sequence"`
|
||||
}
|
||||
if json.Unmarshal(b, &p) != nil || p.Code != "in_progress" || p.CutID == "" || (id != "" && p.CutID != id) {
|
||||
return unknown("progress answer not this cut's")
|
||||
}
|
||||
id = p.CutID
|
||||
if p.Sequence > seen {
|
||||
seen, last = p.Sequence, time.Now()
|
||||
}
|
||||
time.Sleep(min(env.Poll, max(0, time.Until(until))))
|
||||
continue
|
||||
}
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
var eb struct {
|
||||
Code, Message string
|
||||
CutID string `json:"cutID"`
|
||||
}
|
||||
if json.Unmarshal(b, &eb) != nil || eb.Code == "" || eb.Code == "outcome_unknown" || eb.Code == "unknown_cut_id" || (id != "" && eb.CutID != id) {
|
||||
return unknown(fmt.Sprintf("http %d %s %s", resp.StatusCode, eb.Code, strings.TrimSpace(eb.Message)))
|
||||
}
|
||||
return cutAnswer{}, fmt.Errorf("the cut was refused: http %d %s %s", resp.StatusCode, eb.Code, eb.Message)
|
||||
}
|
||||
var a cutAnswer
|
||||
if err := json.Unmarshal(b, &a); err != nil {
|
||||
return unknown("answer not a cut: " + err.Error())
|
||||
}
|
||||
if a.VolumeID != volume {
|
||||
return unknown(fmt.Sprintf("answer names volume %q", a.VolumeID))
|
||||
}
|
||||
if id != "" && a.CutID != id {
|
||||
return unknown(fmt.Sprintf("answer is cut %q, not this stop's %q", a.CutID, id))
|
||||
}
|
||||
if legacy && a.CutID != "" {
|
||||
return unknown("an unversioned answer names a cut handle")
|
||||
}
|
||||
if a.CutLSN == nil || a.HeadGen == nil {
|
||||
return unknown("answer lacks cutLSN or headGen")
|
||||
}
|
||||
return a, nil
|
||||
}
|
||||
var a cutAnswer
|
||||
if err := json.Unmarshal(b, &a); err != nil {
|
||||
return unknown("answer not a cut: " + err.Error())
|
||||
}
|
||||
if a.VolumeID != volume {
|
||||
return unknown(fmt.Sprintf("answer names volume %q", a.VolumeID))
|
||||
}
|
||||
if a.CutLSN == nil || a.HeadGen == nil {
|
||||
return unknown("answer lacks cutLSN or headGen")
|
||||
}
|
||||
return a, nil
|
||||
}
|
||||
|
||||
// lastConfirmedCut says when the holder last confirmed a cut (in its
|
||||
|
||||
@@ -149,6 +149,8 @@ type fakeHost struct {
|
||||
cutMode atomic.Value // "ok", "fail", "hang"
|
||||
cuts atomic.Int64
|
||||
published atomic.Int64 // cuts the fake published although their answer was lost
|
||||
posts atomic.Int64 // cut admissions (POSTs)
|
||||
polls atomic.Int64 // observed-cut answers given
|
||||
lastCutNs atomic.Int64
|
||||
name string // the volume /status names (vol-a unless a test sets it)
|
||||
srv *httptest.Server
|
||||
@@ -179,10 +181,62 @@ func newFakeHost(t *testing.T) *fakeHost {
|
||||
})
|
||||
mux.HandleFunc("/chunk/cut", func(w http.ResponseWriter, r *http.Request) {
|
||||
h.cuts.Add(1)
|
||||
if r.Method == http.MethodPost {
|
||||
h.posts.Add(1)
|
||||
}
|
||||
switch h.cutMode.Load().(string) {
|
||||
case "observed": // in progress past the window, its sequence rising, then the cut
|
||||
if seq := h.polls.Add(1); seq <= 4 {
|
||||
w.WriteHeader(http.StatusAccepted)
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"apiVersion": 1, "code": "in_progress", "cutID": "c1", "sequence": seq})
|
||||
return
|
||||
}
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"apiVersion": 1, "volumeID": "vol-a", "cutID": "c1", "cutLSN": 9, "headGen": 4})
|
||||
case "foreign-success": // this stop's cut c1 progresses, then another cut c2 answers success
|
||||
if seq := h.polls.Add(1); seq <= 1 {
|
||||
w.WriteHeader(http.StatusAccepted)
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"apiVersion": 1, "code": "in_progress", "cutID": "c1", "sequence": seq})
|
||||
return
|
||||
}
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"apiVersion": 1, "volumeID": "vol-a", "cutID": "c2", "cutLSN": 9, "headGen": 4})
|
||||
case "idless-refusal-after-progress": // admitted c1, then a refusal naming no cut (a restarting holder)
|
||||
if seq := h.polls.Add(1); seq <= 1 {
|
||||
w.WriteHeader(http.StatusAccepted)
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"apiVersion": 1, "code": "in_progress", "cutID": "c1", "sequence": seq})
|
||||
return
|
||||
}
|
||||
w.WriteHeader(http.StatusConflict)
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"apiVersion": 1, "code": "not_primary", "message": "not the primary"})
|
||||
case "unversioned-stalled-after-progress": // admitted c1, then an unversioned stall naming c1
|
||||
if seq := h.polls.Add(1); seq <= 1 {
|
||||
w.WriteHeader(http.StatusAccepted)
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"apiVersion": 1, "code": "in_progress", "cutID": "c1", "sequence": seq})
|
||||
return
|
||||
}
|
||||
w.WriteHeader(http.StatusServiceUnavailable)
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"code": "cut_stalled", "cutID": "c1", "message": "stalled"})
|
||||
case "null-version":
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"apiVersion": nil, "volumeID": "vol-a", "cutID": "c1", "cutLSN": 9, "headGen": 4})
|
||||
case "unversioned-progress": // unversioned progress, then an unversioned matching success
|
||||
if seq := h.polls.Add(1); seq <= 1 {
|
||||
w.WriteHeader(http.StatusAccepted)
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"code": "in_progress", "cutID": "c1", "sequence": seq})
|
||||
return
|
||||
}
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"volumeID": "vol-a", "cutID": "c1", "cutLSN": 9, "headGen": 4})
|
||||
case "unversioned-with-id": // an initial unversioned success naming a handle
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"volumeID": "vol-a", "cutID": "c1", "cutLSN": 9, "headGen": 4})
|
||||
case "bad-version-terminal":
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"apiVersion": 9, "volumeID": "vol-a", "cutID": "c1", "cutLSN": 9, "headGen": 4})
|
||||
case "bad-version-progress":
|
||||
w.WriteHeader(http.StatusAccepted)
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"apiVersion": 9, "code": "in_progress", "cutID": "c1", "sequence": 1})
|
||||
case "observed-silent": // in progress, its sequence never rising
|
||||
w.WriteHeader(http.StatusAccepted)
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"apiVersion": 1, "code": "in_progress", "cutID": "c1", "sequence": 1})
|
||||
case "fail":
|
||||
w.WriteHeader(http.StatusServiceUnavailable)
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"code": "not_primary", "message": "not the primary"})
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"apiVersion": 1, "code": "not_primary", "message": "not the primary"})
|
||||
case "drop": // published (the holder confirms it), then the answer is lost
|
||||
h.lastCutNs.Store(time.Date(2026, 11, 28, 22, 59, 0, 0, time.UTC).UnixNano())
|
||||
h.published.Add(1)
|
||||
@@ -810,3 +864,49 @@ func TestTheUnitOnlyFlagsAreListed(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The stop's cut is observed (CutTime r7): one admission, then the cut is
|
||||
// read by its id while it progresses past the window, and the stop waits
|
||||
// for it instead of giving up at the window.
|
||||
func TestVolumeStopObservesALongCutByItsID(t *testing.T) {
|
||||
h, env := startedHost(t, true)
|
||||
env.Poll = 10 * time.Millisecond
|
||||
h.cutMode.Store("observed")
|
||||
code, _, errs := runStop(env, stopOpts{Volume: "vol-a", Timeout: 30 * time.Millisecond})
|
||||
if code != 0 || h.posts.Load() != 1 || h.polls.Load() != 5 || h.called("stop sw-blockvolume@vol-a.service") != 1 {
|
||||
t.Fatalf("stop over a progressing cut: %d %s (posts %d, answers %d)", code, errs, h.posts.Load(), h.polls.Load())
|
||||
}
|
||||
}
|
||||
|
||||
// A cut whose sequence stops rising is an unknown outcome once the window
|
||||
// and its slack pass: the stop refuses and leaves the unit running.
|
||||
func TestVolumeStopGivesUpUnknownWhenItsCutStopsProgressing(t *testing.T) {
|
||||
prev := volumeCutSlack
|
||||
volumeCutSlack = 50 * time.Millisecond
|
||||
t.Cleanup(func() { volumeCutSlack = prev })
|
||||
h, env := startedHost(t, true)
|
||||
env.Poll = 10 * time.Millisecond
|
||||
h.cutMode.Store("observed-silent")
|
||||
code, _, errs := runStop(env, stopOpts{Volume: "vol-a", Timeout: 50 * time.Millisecond})
|
||||
if code == 0 || !strings.Contains(errs, "unknown") || h.posts.Load() != 1 || h.called("stop sw-blockvolume@vol-a.service") != 0 {
|
||||
t.Fatalf("stop over a silent cut: %d %s (posts %d), want an unknown outcome with the unit left running", code, errs, h.posts.Load())
|
||||
}
|
||||
}
|
||||
|
||||
// The stop stops the unit only on its own cut's success in the protocol it
|
||||
// speaks: another cut's success after this stop's cut was admitted, or an
|
||||
// answer in an unsupported cut API version, is an unknown outcome and the
|
||||
// unit keeps running.
|
||||
func TestVolumeStopAcceptsOnlyItsOwnCutInItsProtocol(t *testing.T) {
|
||||
for _, mode := range []string{"foreign-success", "bad-version-terminal", "bad-version-progress", "null-version", "unversioned-progress", "unversioned-with-id", "idless-refusal-after-progress", "unversioned-stalled-after-progress"} {
|
||||
t.Run(mode, func(t *testing.T) {
|
||||
h, env := startedHost(t, true)
|
||||
env.Poll = 5 * time.Millisecond
|
||||
h.cutMode.Store(mode)
|
||||
code, _, errs := runStop(env, stopOpts{Volume: "vol-a", Timeout: 100 * time.Millisecond})
|
||||
if code == 0 || !strings.Contains(errs, "outcome is unknown") || strings.Contains(errs, "was refused") || h.posts.Load() != 1 || h.called("stop sw-blockvolume@vol-a.service") != 0 {
|
||||
t.Fatalf("%s: %d %s (posts %d), want unknown with the unit left running", mode, code, errs, h.posts.Load())
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -315,6 +315,8 @@ func (p *DurableProvider) chunkSnapshotLoop(ctx context.Context, volumeID string
|
||||
err = &SnapshotSkip{Reason: SnapshotSkipRestoring}
|
||||
} else {
|
||||
passCtx, end := p.chunkCutContext(ctx)
|
||||
// A scheduled snapshot: a plain detach may preempt it (CutTime r7).
|
||||
passCtx = storage.WithScheduledCut(passCtx)
|
||||
err = boundedPass(passCtx, layer, current, 0, func(passCtx context.Context) error {
|
||||
return p.cfg.ChunkScheduledSnapshot(passCtx, volumeID, at, cut)
|
||||
})
|
||||
|
||||
@@ -35,6 +35,7 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend"
|
||||
@@ -381,7 +382,11 @@ type volHandle struct {
|
||||
chunkDetach bool
|
||||
// settling is the single automatic retry of an unknown stop outcome.
|
||||
// It is guarded by attachMu; no second stop may race its HEAD decision.
|
||||
settling bool
|
||||
settling bool
|
||||
// readBacks counts the settlement loop's completed read-backs of this
|
||||
// holder's HEAD (not a fenced one); a waiting detach handle reports
|
||||
// each as one step.
|
||||
readBacks atomic.Uint64
|
||||
chunkStop context.CancelFunc
|
||||
chunkDone chan struct{}
|
||||
// snapshots is the scheduled-snapshot state of the running loop, nil
|
||||
|
||||
@@ -1086,6 +1086,8 @@ func (p *DurableProvider) chunkLoop(ctx context.Context, volumeID string, layer
|
||||
continue
|
||||
}
|
||||
cutCtx, cancel := p.chunkCutContext(ctx)
|
||||
// A scheduled cut: a plain detach may preempt it (CutTime r7).
|
||||
cutCtx = storage.WithScheduledCut(cutCtx)
|
||||
if taker != nil && ticket == nil {
|
||||
dueAt := s.lastSuccess.Add(pol.interval)
|
||||
if !s.firstDue.IsZero() {
|
||||
@@ -2022,6 +2024,11 @@ func (p *DurableProvider) retryUnknownDetach(volumeID string, h *volHandle, laye
|
||||
how, _, err = layer.SettleDetach(ctx)
|
||||
}
|
||||
cancel()
|
||||
// A completed read-back of this holder's HEAD is one step; a foreign
|
||||
// HEAD (fenced) is terminal and renews nothing (CutTime r8c).
|
||||
if err == nil && how != storage.DetachFenced {
|
||||
h.readBacks.Add(1)
|
||||
}
|
||||
switch {
|
||||
case err == nil && how == storage.DetachApplied:
|
||||
log.Printf("durable: unknown stop of volume=%s resolved: detached", volumeID)
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
package durable
|
||||
|
||||
import "github.com/seaweedfs/seaweed-block/core/storage"
|
||||
|
||||
// PreemptScheduledCapture requests the cancellation of volumeID's scheduled
|
||||
// capture (a timer cut or a scheduled snapshot), if one holds its capture
|
||||
// lock, and reports whether it did; it never waits for the release (CutTime
|
||||
// r7: a plain detach preempts a scheduled cut, never a manual one). Its
|
||||
// completed uploads stay staged and the detach's final cut reuses them.
|
||||
func (p *DurableProvider) PreemptScheduledCapture(volumeID string) bool {
|
||||
layer, err := p.chunkLayer(volumeID)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
return storage.PreemptScheduledCapture(layer)
|
||||
}
|
||||
|
||||
// DetachReadBacks reports how many read-backs the settlement of volumeID's
|
||||
// unknown stop outcome has completed (CutTime r8b Settle). A plain detach
|
||||
// waiting on that settlement reports each new one as a completed step, so
|
||||
// one report both renews its window and raises its sequence.
|
||||
func (p *DurableProvider) DetachReadBacks(volumeID string) uint64 {
|
||||
p.mu.Lock()
|
||||
h, ok := p.volumes[volumeID]
|
||||
p.mu.Unlock()
|
||||
if !ok {
|
||||
return 0
|
||||
}
|
||||
return h.readBacks.Load()
|
||||
}
|
||||
@@ -99,7 +99,7 @@ func TestChunkControlUsesTheBoundLayoutIdentity(t *testing.T) {
|
||||
func TestChunkControlPassesRetentionFactsToTheNamedCommit(t *testing.T) {
|
||||
fp, ctl := adapterFixture(t)
|
||||
labels := map[string]string{"a": "1", "b": "2", "c": "3", "d": "4"}
|
||||
info, err := ctl.Snapshot(context.Background(), "v1", ChunkSnapshotRequest{Name: "daily", Class: layout.ClassPinned, ExpiresAtNs: 123, Labels: labels})
|
||||
info, err := snapshotNow(ctl, context.Background(), "v1", ChunkSnapshotRequest{Name: "daily", Class: layout.ClassPinned, ExpiresAtNs: 123, Labels: labels})
|
||||
if err != nil || fp.snapshotName != "daily" || fp.snapshotMeta.CreatedNs <= 0 || fp.snapshotMeta.Class != layout.ClassPinned || fp.snapshotMeta.ExpiresNs != 123 || len(fp.snapshotMeta.Labels) != 4 {
|
||||
t.Fatalf("capture lost retention facts: %+v %v", fp.snapshotMeta, err)
|
||||
}
|
||||
@@ -112,7 +112,7 @@ func TestChunkControlPassesRetentionFactsToTheNamedCommit(t *testing.T) {
|
||||
}
|
||||
labels["e"] = "5"
|
||||
before := fp.cuts
|
||||
if _, err := ctl.Snapshot(context.Background(), "v1", ChunkSnapshotRequest{Name: "five", Labels: labels}); chunkstore.CodeOf(err) != chunkstore.CodeInvalidLabel || fp.cuts != before {
|
||||
if _, err := snapshotNow(ctl, context.Background(), "v1", ChunkSnapshotRequest{Name: "five", Labels: labels}); chunkstore.CodeOf(err) != chunkstore.CodeInvalidLabel || fp.cuts != before {
|
||||
t.Fatalf("five labels admitted a capture: %v cuts=%d", err, fp.cuts)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,6 @@ type ChunkControl interface {
|
||||
// Cut takes one quiesced cut; with minLSN > 0 it fails unless the cut
|
||||
// reaches minLSN (MakeRemoteDurable's contract).
|
||||
Cut(ctx context.Context, volumeID string, minLSN uint64) (ChunkCutResponse, error)
|
||||
Snapshot(ctx context.Context, volumeID string, req ChunkSnapshotRequest) (chunkstore.SnapshotInfo, error)
|
||||
ListSnapshots(ctx context.Context, volumeID string, opts chunkstore.ListOptions) ([]chunkstore.SnapshotInfo, string, error)
|
||||
DeleteSnapshot(ctx context.Context, volumeID, name string) (string, error)
|
||||
Detach(ctx context.Context, volumeID string) (ChunkDetachResponse, error)
|
||||
@@ -197,20 +196,6 @@ type ChunkDetachResponse struct {
|
||||
LastWrittenLSN uint64 `json:"lastWrittenLSN"`
|
||||
}
|
||||
|
||||
// snapshotBody is POST /chunk/snapshot's success body, exactly §3.2's fields.
|
||||
type snapshotBody struct {
|
||||
VolumeID string `json:"volumeID"`
|
||||
Name string `json:"name"`
|
||||
HeadGen uint64 `json:"headGen"`
|
||||
HeadEpoch uint64 `json:"headEpoch"`
|
||||
CutLSN uint64 `json:"cutLSN"`
|
||||
CreatedNs int64 `json:"createdNs"`
|
||||
ManifestBytes *uint64 `json:"manifestBytes"` // null: unknown
|
||||
Consistency string `json:"consistency"`
|
||||
Labels map[string]string `json:"labels"`
|
||||
Replayed bool `json:"replayed"`
|
||||
}
|
||||
|
||||
type chunkFrozenRefusalBody struct {
|
||||
storage.FrozenBudget
|
||||
RemainingFreeze time.Duration `json:"remainingFreezeNs"`
|
||||
@@ -657,29 +642,27 @@ func (s *StatusServer) handleChunkSnapshot(w http.ResponseWriter, r *http.Reques
|
||||
if ctl == nil {
|
||||
return
|
||||
}
|
||||
// A snapshot is an operation: the client asks for it with Prefer:
|
||||
// respond-async and reads its handle. The synchronous snapshot answer
|
||||
// and its in-flight replay are gone.
|
||||
if !strings.EqualFold(strings.TrimSpace(r.Header.Get("Prefer")), "respond-async") {
|
||||
writeChunkErr(w, http.StatusBadRequest, codeBadRequest, false, "a snapshot is an operation: send Prefer: respond-async and read its handle")
|
||||
return
|
||||
}
|
||||
async, ok := ctl.(snapshotOperationExecutor)
|
||||
if !ok {
|
||||
writeChunkErr(w, http.StatusConflict, "snapshot_operations_unsupported", false, "snapshot operations unsupported")
|
||||
return
|
||||
}
|
||||
ctx, cancel := chunkContext(r, req.TimeoutMs)
|
||||
defer cancel()
|
||||
if strings.EqualFold(strings.TrimSpace(r.Header.Get("Prefer")), "respond-async") {
|
||||
if async, ok := ctl.(snapshotOperationExecutor); ok {
|
||||
op, err := async.startSnapshotOperation(ctx, req.VolumeID, ChunkSnapshotRequest{Name: req.Name, RequestID: req.RequestID, Labels: req.Labels, Consistency: req.Consistency, ExpiresAtNs: req.ExpiresAtNs, Class: req.Class})
|
||||
if err != nil {
|
||||
writeChunkFailure(w, err)
|
||||
return
|
||||
}
|
||||
w.Header().Set("Location", snapshotOperationLocation(req.VolumeID, op))
|
||||
writeChunkJSON(w, http.StatusAccepted, snapshotOperationPublicAnswer(req.VolumeID, op))
|
||||
return
|
||||
}
|
||||
}
|
||||
info, err := ctl.Snapshot(ctx, req.VolumeID, ChunkSnapshotRequest{Name: req.Name, RequestID: req.RequestID,
|
||||
Labels: req.Labels, Consistency: req.Consistency, ExpiresAtNs: req.ExpiresAtNs, Class: req.Class})
|
||||
op, err := async.startSnapshotOperation(ctx, req.VolumeID, ChunkSnapshotRequest{Name: req.Name, RequestID: req.RequestID, Labels: req.Labels, Consistency: req.Consistency, ExpiresAtNs: req.ExpiresAtNs, Class: req.Class})
|
||||
if err != nil {
|
||||
writeChunkFailure(w, err)
|
||||
return
|
||||
}
|
||||
writeChunkJSON(w, http.StatusOK, snapshotBody{VolumeID: info.VolumeID, Name: info.Name, HeadGen: info.HeadGen,
|
||||
HeadEpoch: info.HeadEpoch, CutLSN: info.CutLSN, CreatedNs: info.CreatedNs,
|
||||
ManifestBytes: info.ManifestBytes, Consistency: info.Consistency, Labels: info.Labels, Replayed: info.Replayed})
|
||||
w.Header().Set("Location", snapshotOperationLocation(req.VolumeID, op))
|
||||
writeChunkJSON(w, http.StatusAccepted, snapshotOperationPublicAnswer(req.VolumeID, op))
|
||||
}
|
||||
|
||||
func (s *StatusServer) handleChunkSnapshots(w http.ResponseWriter, r *http.Request) {
|
||||
@@ -775,6 +758,9 @@ func (s *StatusServer) handleChunkDetach(w http.ResponseWriter, r *http.Request)
|
||||
Frozen bool `json:"frozen,omitempty"`
|
||||
FreezeStartedAtNs int64 `json:"freezeStartedAtNs,omitempty"`
|
||||
AllowOverBudget bool `json:"allowOverBudget,omitempty"`
|
||||
// A plain detach answers within timeoutMs, else in_progress with its
|
||||
// handle's id to poll at /chunk/cut?cutID= (CutTime r7).
|
||||
DeadlineNs *int64 `json:"deadlineNs,omitempty"`
|
||||
}
|
||||
if !decodeChunkBody(w, r, &req) {
|
||||
return
|
||||
@@ -788,16 +774,52 @@ func (s *StatusServer) handleChunkDetach(w http.ResponseWriter, r *http.Request)
|
||||
writeChunkErr(w, http.StatusBadRequest, codeBadRequest, false, "plain detach requires positive timeoutMs")
|
||||
return
|
||||
}
|
||||
if req.Plain && req.TimeoutMs > int64(((1<<63-1)-int64(manualCutObservationSlack))/int64(time.Millisecond)) {
|
||||
writeChunkErr(w, http.StatusBadRequest, codeBadRequest, false, "plain detach window is too large")
|
||||
return
|
||||
}
|
||||
if req.Plain {
|
||||
// A plain detach runs on a cut handle: its answers speak the
|
||||
// versioned cut API, as its polls on /chunk/cut do.
|
||||
w = cutAPIResponseWriter{w}
|
||||
}
|
||||
ctl := s.chunkTarget(w, req.VolumeID)
|
||||
if ctl == nil {
|
||||
return
|
||||
}
|
||||
ctx, cancel := chunkContext(r, req.TimeoutMs)
|
||||
if req.Plain { // M5 PlainStop -> Quiesce: offline work is bounded by its caller.
|
||||
cancel()
|
||||
const maxTimeoutMs = int64((1<<63 - 1) / time.Millisecond)
|
||||
ctx, cancel = context.WithTimeout(r.Context(), time.Duration(min(req.TimeoutMs, maxTimeoutMs))*time.Millisecond)
|
||||
if executor, ok := ctl.(*chunkControl); ok && req.Plain {
|
||||
var deadline time.Time
|
||||
if req.DeadlineNs != nil {
|
||||
deadline = time.Unix(0, *req.DeadlineNs)
|
||||
if !time.Now().Before(deadline) {
|
||||
writeChunkErr(w, http.StatusBadRequest, codeBadRequest, false, "detach deadline has expired")
|
||||
return
|
||||
}
|
||||
}
|
||||
window := time.Duration(req.TimeoutMs) * time.Millisecond
|
||||
h, err := executor.startPlainDetach(req.VolumeID, window, deadline)
|
||||
if err != nil {
|
||||
writeChunkFailure(w, err)
|
||||
return
|
||||
}
|
||||
timer := time.NewTimer(window)
|
||||
defer timer.Stop()
|
||||
select {
|
||||
case <-h.done:
|
||||
case <-timer.C:
|
||||
case <-r.Context().Done():
|
||||
return
|
||||
}
|
||||
executor.writeManualCut(w, h)
|
||||
return
|
||||
}
|
||||
if req.Plain {
|
||||
// The plain detach handle (startPlainDetach) replaced the one-request
|
||||
// plain detach; a control without handles cannot run it.
|
||||
writeChunkErr(w, http.StatusConflict, "plain_detach_unsupported", false, "plain detach unsupported")
|
||||
return
|
||||
}
|
||||
ctx, cancel := chunkContext(r, req.TimeoutMs)
|
||||
defer cancel()
|
||||
var res ChunkDetachResponse
|
||||
var err error
|
||||
@@ -807,15 +829,6 @@ func (s *StatusServer) handleChunkDetach(w http.ResponseWriter, r *http.Request)
|
||||
// answering this typed refusal rather than an unknown-field 400.
|
||||
writeChunkErr(w, http.StatusConflict, "frozen_detach_unsupported", false, "frozen detach is not supported in this release; stop the guest and send a plain detach")
|
||||
return
|
||||
} else if req.Plain {
|
||||
plain, ok := ctl.(interface {
|
||||
DetachPlain(context.Context, string) (ChunkDetachResponse, error)
|
||||
})
|
||||
if !ok {
|
||||
writeChunkErr(w, http.StatusConflict, "plain_detach_unsupported", false, "plain detach unsupported")
|
||||
return
|
||||
}
|
||||
res, err = plain.DetachPlain(ctx, req.VolumeID)
|
||||
} else {
|
||||
res, err = ctl.Detach(ctx, req.VolumeID)
|
||||
}
|
||||
@@ -885,41 +898,6 @@ func (c *chunkControl) Cut(ctx context.Context, volumeID string, minLSN uint64)
|
||||
|
||||
// Snapshot belongs to the data path: its commit names the snapshot in HEAD.
|
||||
// The control never records a second catalog entry after an ordinary cut.
|
||||
func (c *chunkControl) Snapshot(ctx context.Context, volumeID string, req ChunkSnapshotRequest) (chunkstore.SnapshotInfo, error) {
|
||||
c.opMu.Lock()
|
||||
if c.opClosed {
|
||||
c.opMu.Unlock()
|
||||
return chunkstore.SnapshotInfo{}, storage.ErrChunkLayerClosed
|
||||
}
|
||||
_, duplicate := c.opJobs[req.RequestID]
|
||||
duplicate = duplicate && req.RequestID != ""
|
||||
if !duplicate && req.RequestID != "" {
|
||||
if len(c.opJobs)+c.opAdmissions >= snapshotOperationQueueLimit {
|
||||
c.opMu.Unlock()
|
||||
return chunkstore.SnapshotInfo{}, &chunkstore.CatalogError{Code: "operation_capacity", Message: "snapshot operation queue is full; retry the same request ID", Retryable: true}
|
||||
}
|
||||
c.opJobs[req.RequestID] = struct{}{}
|
||||
}
|
||||
c.opAdmissions++
|
||||
c.opMu.Unlock()
|
||||
ctx, cancel := context.WithCancel(ctx)
|
||||
stopRoot := context.AfterFunc(c.opCtx, cancel)
|
||||
defer func() {
|
||||
stopRoot()
|
||||
cancel()
|
||||
c.opMu.Lock()
|
||||
if !duplicate && req.RequestID != "" {
|
||||
delete(c.opJobs, req.RequestID)
|
||||
}
|
||||
c.opAdmissions--
|
||||
c.maybeJoinSnapshotOperationsLocked()
|
||||
c.opMu.Unlock()
|
||||
}()
|
||||
if duplicate {
|
||||
return c.snapshotOperationInFlight(ctx, volumeID, req)
|
||||
}
|
||||
return c.snapshotOperationAttempt(ctx, volumeID, req, nil)
|
||||
}
|
||||
func (c *chunkControl) snapshotOperationAttempt(ctx context.Context, volumeID string, req ChunkSnapshotRequest, expected *chunkstore.SnapshotOperation) (chunkstore.SnapshotInfo, error) {
|
||||
if _, err := c.catalogVolume(volumeID); err != nil {
|
||||
return chunkstore.SnapshotInfo{}, err
|
||||
@@ -1002,6 +980,14 @@ func (c *chunkControl) snapshotOperationAttempt(ctx context.Context, volumeID st
|
||||
if err != nil {
|
||||
return chunkstore.SnapshotInfo{}, err
|
||||
}
|
||||
} else if !named && len(h.Snapshots) >= layout.MaxSnapshots {
|
||||
// A HEAD already at the limit refuses a new name before any
|
||||
// provider work; a provider error after execution stays
|
||||
// resumable (stalled), never terminal.
|
||||
op, err = store.AdvanceSnapshotOperation(ctx, op, "refused", nil, "snapshot_limit", chunkstore.SnapshotOperationFailure{Status: http.StatusConflict, Message: fmt.Sprintf("at most %d snapshots per volume; delete a snapshot, or let retention prune", layout.MaxSnapshots)})
|
||||
if err != nil {
|
||||
return chunkstore.SnapshotInfo{}, err
|
||||
}
|
||||
}
|
||||
}
|
||||
if op.State == "succeeded" {
|
||||
|
||||
@@ -226,7 +226,7 @@ func TestChunkControl_NamedSnapshotUsesUrgentFallback(t *testing.T) {
|
||||
if _, err = ctl.Cut(context.Background(), "v1", 0); !errors.Is(err, hostlimit.ErrBusy) {
|
||||
t.Fatalf("ordinary cut bypassed missing pool: %v", err)
|
||||
}
|
||||
info, err := ctl.Snapshot(context.Background(), "v1", ChunkSnapshotRequest{Name: "named", RequestID: "named-r1"})
|
||||
info, err := snapshotNow(ctl, context.Background(), "v1", ChunkSnapshotRequest{Name: "named", RequestID: "named-r1"})
|
||||
if err != nil || info.Name != "named" {
|
||||
t.Fatalf("named seal did not use urgent fallback: %+v %v", info, err)
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
func TestChunkControl_InvalidClassRefusedBeforeCut(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
fp, ctl := adapterFixture(t)
|
||||
_, err := ctl.Snapshot(ctx, "v1", ChunkSnapshotRequest{Name: "s1", RequestID: "r1", Class: "golden"})
|
||||
_, err := snapshotNow(ctl, ctx, "v1", ChunkSnapshotRequest{Name: "s1", RequestID: "r1", Class: "golden"})
|
||||
if chunkstore.CodeOf(err) != chunkstore.CodeInvalidClass {
|
||||
t.Fatalf("invalid class: %v; want invalid_class", err)
|
||||
}
|
||||
|
||||
@@ -182,12 +182,21 @@ func TestStatusServer_ChunkSuccessBodiesUseSpecFields(t *testing.T) {
|
||||
// The chunk layer fills the cut statistics (§3.1), so the body carries them.
|
||||
wantKeys(t, "cut", jsonKeys(t, w.Body.Bytes()), "apiVersion", "cutID", "volumeID", "cutLSN", "headGen", "headEpoch", "holder", "noop", "fullHash", "stats")
|
||||
|
||||
w = serve(t, s, http.MethodPost, "/chunk/snapshot", `{"volumeID":"v1","name":"s1","requestID":"r","labels":{"agent.step":"x"},"consistency":"app","expiresAtNs":9}`, "")
|
||||
if w.Code != 200 || ctl.lastSnap.Name != "s1" || ctl.lastSnap.RequestID != "r" || ctl.lastSnap.Consistency != "app" || ctl.lastSnap.Labels["agent.step"] != "x" || ctl.lastSnap.ExpiresAtNs != 9 {
|
||||
t.Fatalf("snapshot: %d %s %+v", w.Code, w.Body, ctl.lastSnap)
|
||||
// A snapshot is an operation (its answer's fields: the snapshot
|
||||
// operation tests): without Prefer: respond-async it is refused, and a
|
||||
// control without operations refuses it as unsupported.
|
||||
w = serve(t, s, http.MethodPost, "/chunk/snapshot", `{"volumeID":"v1","name":"s1","requestID":"r"}`, "")
|
||||
if w.Code != http.StatusBadRequest || ctl.lastSnap.Name != "" {
|
||||
t.Fatalf("synchronous snapshot: %d %s, want 400 and no call", w.Code, w.Body)
|
||||
}
|
||||
req := httptest.NewRequest(http.MethodPost, "/chunk/snapshot", strings.NewReader(`{"volumeID":"v1","name":"s1","requestID":"r"}`))
|
||||
req.RemoteAddr = "127.0.0.1:5555"
|
||||
req.Header.Set("Prefer", "respond-async")
|
||||
w = httptest.NewRecorder()
|
||||
s.chunkMux().ServeHTTP(w, req)
|
||||
if w.Code != http.StatusConflict || !strings.Contains(w.Body.String(), "snapshot_operations_unsupported") || ctl.lastSnap.Name != "" {
|
||||
t.Fatalf("snapshot without operations: %d %s, want 409 snapshot_operations_unsupported", w.Code, w.Body)
|
||||
}
|
||||
wantKeys(t, "snapshot", jsonKeys(t, w.Body.Bytes()), "volumeID", "name", "headGen", "headEpoch", "cutLSN", "createdNs",
|
||||
"manifestBytes", "consistency", "labels", "replayed")
|
||||
|
||||
w = serve(t, s, http.MethodGet, "/chunk/snapshots?volume=v1&prefix=a&startAfter=b&limit=7&includeDeleting=true", "", "")
|
||||
if w.Code != 200 || ctl.lastOpts != (chunkstore.ListOptions{Prefix: "a", StartAfter: "b", Limit: 7, IncludeDeleting: true}) {
|
||||
|
||||
@@ -1,54 +1,11 @@
|
||||
package volume
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
type offlineSealControl struct {
|
||||
*plainDetachControl
|
||||
got context.Context
|
||||
}
|
||||
|
||||
func (c *offlineSealControl) DetachPlain(ctx context.Context, id string) (ChunkDetachResponse, error) {
|
||||
c.got = ctx
|
||||
return c.plainDetachControl.DetachPlain(ctx, id)
|
||||
}
|
||||
func TestChunkPlainDetachUsesCallerDeadline(t *testing.T) {
|
||||
for _, limited := range []bool{false, true} {
|
||||
c := &offlineSealControl{plainDetachControl: &plainDetachControl{fakeChunkControl: &fakeChunkControl{}}}
|
||||
s := chunkServer(t, c, true)
|
||||
ctx := context.Background()
|
||||
cancel := func() {}
|
||||
if limited {
|
||||
ctx, cancel = context.WithTimeout(ctx, 5*time.Minute)
|
||||
}
|
||||
req := httptest.NewRequest(http.MethodPost, "/chunk/detach", strings.NewReader(`{"volumeID":"v1","plain":true,"timeoutMs":3600000}`)).WithContext(ctx)
|
||||
req.RemoteAddr = "127.0.0.1:5555"
|
||||
w := httptest.NewRecorder()
|
||||
before := time.Now()
|
||||
s.chunkMux().ServeHTTP(w, req)
|
||||
after := time.Now()
|
||||
cancel()
|
||||
if w.Code != 200 || c.got == nil {
|
||||
t.Fatalf("plain dispatch failed: %d %s", w.Code, w.Body)
|
||||
}
|
||||
got, gok := c.got.Deadline()
|
||||
if want, ok := ctx.Deadline(); ok {
|
||||
if !gok || !got.Equal(want) {
|
||||
t.Errorf("offline HTTP ignored earlier caller: got=%v want=%v", got, want)
|
||||
}
|
||||
} else if !gok || got.Before(before.Add(time.Hour)) || got.After(after.Add(time.Hour)) {
|
||||
t.Errorf("offline HTTP inherited operation cap: got=%v want explicit one-hour bound", got)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestChunkPlainDetachRequiresExplicitBound(t *testing.T) {
|
||||
for _, suffix := range []string{"", `,"timeoutMs":0`, `,"timeoutMs":-1`} {
|
||||
c := &plainDetachControl{fakeChunkControl: &fakeChunkControl{}}
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
package volume
|
||||
|
||||
import (
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/chunkstore"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/chunkstore"
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/durable"
|
||||
"github.com/seaweedfs/seaweed-block/core/storage"
|
||||
"net/http"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
type plainDetachControl struct {
|
||||
@@ -29,9 +32,12 @@ func TestChunkDetachPlainFieldDispatch(t *testing.T) {
|
||||
t.Fatalf("ordinary request changed: %d %s plain=%d", w.Code, w.Body, c.plainCalls)
|
||||
}
|
||||
}
|
||||
// A plain detach runs on a handle (which replaced the one-request plain
|
||||
// detach): a control without handles refuses it as unsupported, before
|
||||
// any provider call.
|
||||
w := serve(t, s, http.MethodPost, "/chunk/detach", `{"volumeID":"v1","plain":true,"timeoutMs":60000}`, "")
|
||||
if w.Code != 200 || c.plainCalls != 1 {
|
||||
t.Fatalf("plain request not dispatched: %d %s plain=%d", w.Code, w.Body, c.plainCalls)
|
||||
if w.Code != http.StatusConflict || !strings.Contains(w.Body.String(), "plain_detach_unsupported") || c.plainCalls != 0 {
|
||||
t.Fatalf("observed plain request without handles: %d %s plain=%d, want 409 plain_detach_unsupported", w.Code, w.Body, c.plainCalls)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +61,10 @@ func TestChunkDetachPlainAdapterAndBusyResponse(t *testing.T) {
|
||||
if w.Code != 200 || p.plainCalls != 1 {
|
||||
t.Fatalf("plain adapter: %d %s calls=%d", w.Code, w.Body, p.plainCalls)
|
||||
}
|
||||
// A fresh control: the completed detach keeps its handle, and the one
|
||||
// detach slot, until its retention ends.
|
||||
p.err = errors.Join(durable.ErrPlainDetachBusy, errors.New("held I/O"))
|
||||
s = chunkServer(t, NewChunkControl(p, nil, chunkstore.VolumeRef{}), true)
|
||||
w = serve(t, s, http.MethodPost, "/chunk/detach", `{"volumeID":"v1","plain":true,"timeoutMs":60000}`, "")
|
||||
if w.Code != 409 {
|
||||
t.Fatalf("busy status: %d %s", w.Code, w.Body)
|
||||
@@ -68,3 +77,37 @@ func TestChunkDetachPlainAdapterAndBusyResponse(t *testing.T) {
|
||||
t.Fatalf("busy classification: %s %v", w.Body, err)
|
||||
}
|
||||
}
|
||||
|
||||
// A plain detach window past the representable range (with its observation
|
||||
// slack) is refused before any handle or provider call; the largest
|
||||
// representable one is admitted.
|
||||
func TestChunkPlainDetachWindowOutOfRangeIsRefusedBeforeWork(t *testing.T) {
|
||||
p := &plainDetachProvider{fakeChunkProvider: &fakeChunkProvider{detach: storage.ChunkCutResult{H: 9, Head: storage.ChunkHead{Gen: 3, Epoch: 2, State: storage.ChunkHeadDetached}}, last: 9}}
|
||||
c := NewChunkControl(p, nil, chunkstore.VolumeRef{}).(*chunkControl)
|
||||
s := chunkServer(t, c, true)
|
||||
largest := ((1<<63 - 1) - int64(manualCutObservationSlack)) / int64(time.Millisecond)
|
||||
w := serve(t, s, http.MethodPost, "/chunk/detach", fmt.Sprintf(`{"volumeID":"v1","plain":true,"timeoutMs":%d}`, largest+1), "")
|
||||
c.opMu.Lock()
|
||||
handles := len(c.cuts)
|
||||
c.opMu.Unlock()
|
||||
if w.Code != http.StatusBadRequest || p.plainCalls != 0 || handles != 0 {
|
||||
t.Fatalf("window past the range: %d %s, %d calls, %d handles; want 400 and nothing started", w.Code, w.Body, p.plainCalls, handles)
|
||||
}
|
||||
w = serve(t, s, http.MethodPost, "/chunk/detach", fmt.Sprintf(`{"volumeID":"v1","plain":true,"timeoutMs":%d}`, largest), "")
|
||||
if w.Code != http.StatusOK || p.plainCalls != 1 {
|
||||
t.Fatalf("largest window: %d %s, %d calls; want admitted", w.Code, w.Body, p.plainCalls)
|
||||
}
|
||||
}
|
||||
|
||||
// A plain detach answers in the versioned cut API, as its handle's polls do.
|
||||
func TestChunkPlainDetachAnswersCarryTheCutAPIVersion(t *testing.T) {
|
||||
p := &plainDetachProvider{fakeChunkProvider: &fakeChunkProvider{detach: storage.ChunkCutResult{H: 9, Head: storage.ChunkHead{Gen: 3, Epoch: 2, State: storage.ChunkHeadDetached}}, last: 9}}
|
||||
s := chunkServer(t, NewChunkControl(p, nil, chunkstore.VolumeRef{}), true)
|
||||
w := serve(t, s, http.MethodPost, "/chunk/detach", `{"volumeID":"v1","plain":true,"timeoutMs":60000}`, "")
|
||||
var body struct {
|
||||
Version *int `json:"apiVersion"`
|
||||
}
|
||||
if w.Code != http.StatusOK || json.Unmarshal(w.Body.Bytes(), &body) != nil || body.Version == nil || *body.Version != chunkstore.CutAPIVersion {
|
||||
t.Fatalf("plain detach answer: %d %s, want apiVersion %d", w.Code, w.Body, chunkstore.CutAPIVersion)
|
||||
}
|
||||
}
|
||||
@@ -24,7 +24,7 @@ func TestChunkBudgetAdmissionRefusalIsRetryable(t *testing.T) {
|
||||
func TestNamedSnapshotWindowAbortNeverSubstitutesPoint(t *testing.T) {
|
||||
fp, ctl := adapterFixture(t)
|
||||
fp.cutErr = storage.ErrCutCOWAborted
|
||||
info, err := ctl.Snapshot(context.Background(), "v1", ChunkSnapshotRequest{Name: "exact-point", RequestID: "attempt-1"})
|
||||
info, err := snapshotNow(ctl, context.Background(), "v1", ChunkSnapshotRequest{Name: "exact-point", RequestID: "attempt-1"})
|
||||
if !errors.Is(err, storage.ErrCutCOWAborted) || fp.cuts != 1 || info.HeadGen != 0 {
|
||||
t.Fatalf("snapshot=%+v cuts=%d err=%v", info, fp.cuts, err)
|
||||
}
|
||||
|
||||
@@ -7,7 +7,9 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"reflect"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -88,14 +90,16 @@ func committedBlock(t *testing.T, fixture *testutil.LayoutFixture, h layout.Head
|
||||
func TestChunkSnapshotPastTheLimitIsRefusedWithHEADUnchanged(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
dp, fixture, s, head := limitVolume(t)
|
||||
server := chunkServer(t, NewChunkControl(dp, fixture.Catalog, fixture.Ref), true)
|
||||
ctl := NewChunkControl(dp, fixture.Catalog, fixture.Ref)
|
||||
// snapshot runs one snapshot attempt, the operation worker's work: 200
|
||||
// when it took the snapshot, else the HTTP status and code its error maps
|
||||
// to.
|
||||
snapshot := func(name string) (int, string) {
|
||||
w := serve(t, server, http.MethodPost, "/chunk/snapshot", fmt.Sprintf(`{"volumeID":"v1","name":%q,"requestID":%q}`, name, "req-"+name), "")
|
||||
var body struct {
|
||||
Code string `json:"code"`
|
||||
if _, err := snapshotNow(ctl, ctx, "v1", ChunkSnapshotRequest{Name: name, RequestID: "req-" + name}); err != nil {
|
||||
status, code, _ := chunkErrorCode(err)
|
||||
return status, code
|
||||
}
|
||||
_ = json.Unmarshal(w.Body.Bytes(), &body)
|
||||
return w.Code, body.Code
|
||||
return http.StatusOK, ""
|
||||
}
|
||||
if _, err := s.Write(0, make([]byte, 4096)); err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -176,3 +180,48 @@ func TestScheduledSnapshotAtTheLimitStillPublishes(t *testing.T) {
|
||||
t.Fatalf("block 2 of the image the scheduled pass published: %q...; want the data written before it", got[:16])
|
||||
}
|
||||
}
|
||||
|
||||
// Through the HTTP route, the snapshot operation past the limit ends refused
|
||||
// with snapshot_limit (409) and writes nothing, not stalled.
|
||||
func TestChunkSnapshotOperationPastTheLimitIsRefusedTyped(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
dp, fixture, s, head := limitVolume(t)
|
||||
ctl := NewChunkControl(dp, fixture.Catalog, fixture.Ref)
|
||||
server := chunkServer(t, ctl, true)
|
||||
if _, err := s.Write(0, make([]byte, 4096)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
for i := 0; i < layout.MaxSnapshots; i++ {
|
||||
if _, err := snapshotNow(ctl, ctx, "v1", ChunkSnapshotRequest{Name: fmt.Sprintf("s%d", i), RequestID: fmt.Sprintf("req-s%d", i)}); err != nil {
|
||||
t.Fatalf("snapshot %d: %v", i+1, err)
|
||||
}
|
||||
}
|
||||
before := head()
|
||||
req := httptest.NewRequest(http.MethodPost, "/chunk/snapshot", strings.NewReader(`{"volumeID":"v1","name":"over","requestID":"req-over"}`))
|
||||
req.RemoteAddr = "127.0.0.1:5555"
|
||||
req.Header.Set("Prefer", "respond-async")
|
||||
w := httptest.NewRecorder()
|
||||
server.chunkMux().ServeHTTP(w, req)
|
||||
if w.Code != http.StatusAccepted {
|
||||
t.Fatalf("admission: %d %s", w.Code, w.Body)
|
||||
}
|
||||
var op struct {
|
||||
State string `json:"state"`
|
||||
Code string `json:"code"`
|
||||
Status int `json:"status"`
|
||||
}
|
||||
location := w.Header().Get("Location")
|
||||
for end := time.Now().Add(10 * time.Second); ; time.Sleep(time.Millisecond) {
|
||||
w = serve(t, server, http.MethodGet, location, "", "")
|
||||
op.State = ""
|
||||
if err := json.Unmarshal(w.Body.Bytes(), &op); err != nil || (op.State != "accepted" && op.State != "running") || time.Now().After(end) {
|
||||
break
|
||||
}
|
||||
}
|
||||
if op.State != "refused" || op.Code != chunkstore.CodeSnapshotLimit || op.Status != http.StatusConflict {
|
||||
t.Fatalf("operation past the limit: %+v (%s), want refused 409 %s", op, w.Body, chunkstore.CodeSnapshotLimit)
|
||||
}
|
||||
if after := head(); !reflect.DeepEqual(after, before) {
|
||||
t.Fatalf("the refused operation changed HEAD: before %+v, after %+v", before, after)
|
||||
}
|
||||
}
|
||||
@@ -14,12 +14,16 @@ const manualCutObservationSlack = 5 * time.Second
|
||||
|
||||
type manualCutHandle struct {
|
||||
id, volume string
|
||||
ctx context.Context
|
||||
done chan struct{}
|
||||
ended time.Time
|
||||
retention time.Duration
|
||||
result ChunkCutResponse
|
||||
err error
|
||||
// kind is "" for a manual cut, handleKindDetach for an observed plain
|
||||
// detach (one store, one status route; plain_detach_handle.go).
|
||||
kind string
|
||||
ctx context.Context
|
||||
done chan struct{}
|
||||
ended time.Time
|
||||
retention time.Duration
|
||||
result ChunkCutResponse
|
||||
detach ChunkDetachResponse
|
||||
err error
|
||||
}
|
||||
type manualCutExecutor interface {
|
||||
startManualCut(context.Context, string, uint64, time.Duration, time.Time) (*manualCutHandle, error)
|
||||
@@ -52,10 +56,19 @@ func (c *chunkControl) startManualCut(admission context.Context, volume string,
|
||||
return nil, storage.ErrChunkLayerClosed
|
||||
}
|
||||
c.retireManualCutsLocked(time.Now())
|
||||
if len(c.cuts) >= manualCutHandleLimit {
|
||||
if c.handlesOfKindLocked("") >= manualCutHandleLimit {
|
||||
c.opMu.Unlock()
|
||||
return nil, &storage.CutBusyError{Reason: "handles_full"}
|
||||
}
|
||||
// Detach priority (CutTime r8d): while a stop's handle is live, a new
|
||||
// manual cut is refused, retryably, naming the stop; the stop takes the
|
||||
// capture lock next, and no stream of manual cuts can postpone it.
|
||||
for _, d := range c.cuts {
|
||||
if d.kind == handleKindDetach && d.ended.IsZero() {
|
||||
c.opMu.Unlock()
|
||||
return nil, &storage.CutBusyError{CutID: d.id, Reason: "detach_in_progress"}
|
||||
}
|
||||
}
|
||||
if c.cuts == nil {
|
||||
c.cuts = make(map[string]*manualCutHandle)
|
||||
}
|
||||
@@ -112,7 +125,7 @@ func (*manualCutUnsupported) Error() string {
|
||||
|
||||
func (c *chunkControl) writeManualCut(w http.ResponseWriter, h *manualCutHandle) {
|
||||
c.opMu.Lock()
|
||||
result, err, ended, ctx := h.result, h.err, h.ended, h.ctx
|
||||
result, detach, err, ended, ctx := h.result, h.detach, h.err, h.ended, h.ctx
|
||||
c.opMu.Unlock()
|
||||
if ended.IsZero() {
|
||||
writeChunkJSON(w, http.StatusAccepted, struct {
|
||||
@@ -127,6 +140,13 @@ func (c *chunkControl) writeManualCut(w http.ResponseWriter, h *manualCutHandle)
|
||||
writeChunkJSON(w, status, chunkErrorBody{CutID: h.id, Code: code, Message: err.Error(), Retryable: retry})
|
||||
return
|
||||
}
|
||||
if h.kind == handleKindDetach {
|
||||
writeChunkJSON(w, http.StatusOK, struct {
|
||||
ChunkDetachResponse
|
||||
CutID string `json:"cutID"`
|
||||
}{detach, h.id})
|
||||
return
|
||||
}
|
||||
writeChunkJSON(w, http.StatusOK, result)
|
||||
}
|
||||
func (s *StatusServer) handleManualCutStatus(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
@@ -294,22 +294,23 @@ func TestManualCutServerCloseCancelsCaptureBeforeJoiningSnapshot(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
<-entered
|
||||
snapshotDone := make(chan error, 1)
|
||||
go func() {
|
||||
_, err := c.Snapshot(context.Background(), "v1", ChunkSnapshotRequest{Name: "queued"})
|
||||
snapshotDone <- err
|
||||
}()
|
||||
// The snapshot is an operation: its worker waits behind the capture.
|
||||
op, err := c.startSnapshotOperation(context.Background(), "v1", ChunkSnapshotRequest{Name: "queued", RequestID: "queued-r1"})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
synctest.Wait()
|
||||
select {
|
||||
case err := <-snapshotDone:
|
||||
t.Fatalf("snapshot did not wait behind capture: %v", err)
|
||||
default:
|
||||
snapshotQueued := func() bool {
|
||||
c.opMu.Lock()
|
||||
defer c.opMu.Unlock()
|
||||
_, queued := c.opJobs[op.ID]
|
||||
return queued
|
||||
}
|
||||
c.opMu.Lock()
|
||||
admissions := c.opAdmissions
|
||||
c.opMu.Unlock()
|
||||
if admissions != 2 {
|
||||
t.Fatalf("wanted cut and snapshot registered: %d", admissions)
|
||||
if admissions != 1 || !snapshotQueued() {
|
||||
t.Fatalf("wanted the cut admitted and the snapshot waiting behind it: admissions %d queued %v", admissions, snapshotQueued())
|
||||
}
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
|
||||
defer cancel()
|
||||
@@ -321,9 +322,7 @@ func TestManualCutServerCloseCancelsCaptureBeforeJoiningSnapshot(t *testing.T) {
|
||||
default:
|
||||
t.Fatal("Close left observed cut running")
|
||||
}
|
||||
select {
|
||||
case <-snapshotDone:
|
||||
default:
|
||||
if snapshotQueued() {
|
||||
t.Fatal("Close left snapshot worker running")
|
||||
}
|
||||
})
|
||||
|
||||
@@ -0,0 +1,216 @@
|
||||
package volume
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/rand"
|
||||
"time"
|
||||
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/chunkstore"
|
||||
"github.com/seaweedfs/seaweed-block/core/storage"
|
||||
)
|
||||
|
||||
// handleKindDetach marks an observed plain detach's handle (CutTime r7).
|
||||
const handleKindDetach = "detach"
|
||||
|
||||
// detachHandleLimit is the detach slot reserved outside the manual cut
|
||||
// handles, so handles_full never refuses a stop.
|
||||
const detachHandleLimit = 1
|
||||
|
||||
// mirrorPoll is how often a waiting detach looks for the window of a manual
|
||||
// cut still in its admission, to link to it.
|
||||
const mirrorPoll = 5 * time.Millisecond
|
||||
|
||||
type cutPreempter interface {
|
||||
PreemptScheduledCapture(volumeID string) bool
|
||||
}
|
||||
|
||||
// handlesOfKindLocked counts the live handles of kind ("" = manual cut).
|
||||
func (c *chunkControl) handlesOfKindLocked(kind string) int {
|
||||
n := 0
|
||||
for _, h := range c.cuts {
|
||||
if h.kind == kind {
|
||||
n++
|
||||
}
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// startPlainDetach admits an observed plain detach under a handle in the
|
||||
// reserved detach slot (CutTime r7). Its window starts at admission. A
|
||||
// running scheduled cut is preempted (its staged uploads are reused by the
|
||||
// detach's final cut); a running manual cut is never preempted: the detach
|
||||
// queues behind it, and its sequence rises with each of that cut's completed
|
||||
// steps and once at that cut's end, then with its own final cut's steps. The
|
||||
// detach runs in a worker the control owns, bounded only by deadline.
|
||||
func (c *chunkControl) startPlainDetach(volume string, window time.Duration, deadline time.Time) (*manualCutHandle, error) {
|
||||
c.opMu.Lock()
|
||||
if c.opClosed {
|
||||
c.opMu.Unlock()
|
||||
return nil, storage.ErrChunkLayerClosed
|
||||
}
|
||||
c.retireManualCutsLocked(time.Now())
|
||||
if c.handlesOfKindLocked(handleKindDetach) >= detachHandleLimit {
|
||||
c.opMu.Unlock()
|
||||
return nil, &storage.CutBusyError{Reason: "detach_in_progress"}
|
||||
}
|
||||
var blocker *manualCutHandle
|
||||
for _, h := range c.cuts {
|
||||
if h.kind == "" && h.ended.IsZero() {
|
||||
blocker = h
|
||||
}
|
||||
}
|
||||
if c.cuts == nil {
|
||||
c.cuts = make(map[string]*manualCutHandle)
|
||||
}
|
||||
h := &manualCutHandle{id: rand.Text(), volume: volume, kind: handleKindDetach, done: make(chan struct{}), retention: window + manualCutObservationSlack}
|
||||
c.cuts[h.id] = h
|
||||
c.opAdmissions++
|
||||
root := c.opCtx
|
||||
c.opMu.Unlock()
|
||||
stopDeadline := func() {}
|
||||
if !deadline.IsZero() {
|
||||
root, stopDeadline = context.WithDeadline(root, deadline)
|
||||
}
|
||||
ctx, stopWindow := storage.WithCutProgressWindow(root, window)
|
||||
// Queued behind a manual cut (CutTime DetachQ), the stop's own window
|
||||
// is held: the blocking cuts' steps raise its sequence, and its own
|
||||
// no-progress window starts at its actual capture admission
|
||||
// (storage.CutCaptureAdmitted), not at a blocker's end.
|
||||
if blocker != nil {
|
||||
storage.HoldCutProgressWindow(ctx)
|
||||
}
|
||||
c.opMu.Lock()
|
||||
h.ctx = ctx
|
||||
c.opMu.Unlock()
|
||||
if blocker == nil {
|
||||
if p, ok := c.p.(cutPreempter); ok {
|
||||
p.PreemptScheduledCapture(volume)
|
||||
}
|
||||
}
|
||||
// Link to a running blocker at admission, so every step it completes
|
||||
// after this admission renews the stop; mirrorBlockingCut links later
|
||||
// only if the blocker's context is not set yet.
|
||||
unlink, linked := func() {}, false
|
||||
if blocker != nil {
|
||||
c.opMu.Lock()
|
||||
bctx := blocker.ctx
|
||||
c.opMu.Unlock()
|
||||
if bctx != nil {
|
||||
unlink, linked = storage.LinkCutProgress(ctx, bctx), true
|
||||
}
|
||||
}
|
||||
mirrored := make(chan struct{})
|
||||
go func() {
|
||||
defer close(mirrored)
|
||||
if blocker != nil {
|
||||
c.mirrorBlockingCut(ctx, blocker, unlink, linked)
|
||||
}
|
||||
}()
|
||||
go func() {
|
||||
res, err := c.settlePlainDetach(ctx, volume, window)
|
||||
if !detachOutcomeUnknown(err) {
|
||||
err = storage.CutWindowError(ctx, err)
|
||||
}
|
||||
stopWindow()
|
||||
stopDeadline()
|
||||
<-mirrored
|
||||
c.opMu.Lock()
|
||||
h.detach, h.err, h.ended = res, err, time.Now()
|
||||
close(h.done)
|
||||
c.opAdmissions--
|
||||
c.maybeJoinSnapshotOperationsLocked()
|
||||
c.opMu.Unlock()
|
||||
}()
|
||||
return h, nil
|
||||
}
|
||||
|
||||
// detachReadBacker is the provider's count of completed settlement
|
||||
// read-backs of a volume's unknown stop outcome.
|
||||
type detachReadBacker interface {
|
||||
DetachReadBacks(volumeID string) uint64
|
||||
}
|
||||
|
||||
// settlePlainDetach runs the plain detach and, while its outcome is unknown
|
||||
// (a lost publish answer), settles it on the same handle by running it
|
||||
// again: the provider's seal replay or read-back, inside the detach's
|
||||
// no-progress window (CutTime r8b Settle/SettleStall). Each read-back the
|
||||
// provider completes is reported as one completed step, which both renews
|
||||
// the window and raises the handle's sequence; a read-back that does not
|
||||
// complete reports nothing. It answers outcome_unknown, typed, only when
|
||||
// that settlement makes no progress for the window.
|
||||
func (c *chunkControl) settlePlainDetach(ctx context.Context, volume string, window time.Duration) (ChunkDetachResponse, error) {
|
||||
rb, _ := c.p.(detachReadBacker)
|
||||
readBacks := func() uint64 {
|
||||
if rb == nil {
|
||||
return 0
|
||||
}
|
||||
return rb.DetachReadBacks(volume)
|
||||
}
|
||||
seen := readBacks()
|
||||
backoff, ceiling := 50*time.Millisecond, min(time.Second, max(window/4, 10*time.Millisecond))
|
||||
for {
|
||||
res, err := c.DetachPlain(ctx, volume)
|
||||
if !detachOutcomeUnknown(err) {
|
||||
return res, err
|
||||
}
|
||||
if n := readBacks(); n > seen {
|
||||
seen = n
|
||||
storage.MirrorCutStep(ctx)
|
||||
}
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return res, err
|
||||
case <-time.After(min(backoff, ceiling)):
|
||||
}
|
||||
if n := readBacks(); n > seen {
|
||||
seen = n
|
||||
storage.MirrorCutStep(ctx)
|
||||
}
|
||||
backoff = min(2*backoff, ceiling)
|
||||
}
|
||||
}
|
||||
|
||||
// detachOutcomeUnknown reports whether err leaves a detach's outcome unknown.
|
||||
func detachOutcomeUnknown(err error) bool {
|
||||
if err == nil {
|
||||
return false
|
||||
}
|
||||
_, code, _ := chunkErrorCode(err)
|
||||
return code == chunkstore.CodeOutcomeUnknown
|
||||
}
|
||||
|
||||
// mirrorBlockingCut links the detach's window to the manual cut it is
|
||||
// queued behind (the capture owner): each step that cut completes from now
|
||||
// on also renews the detach and raises its sequence; steps before the link
|
||||
// are not credited. At that cut's end, whichever outcome, the link is
|
||||
// removed and the end counts as one step. The detach's own cancellation
|
||||
// removes it too.
|
||||
// mirrorBlockingCut mirrors the manual cut a queued stop waits behind: its
|
||||
// steps after the link, plus one at its end, raise the stop's sequence.
|
||||
// No manual cut starts while the stop is live (detach priority, CutTime
|
||||
// r8d), so the stop is admitted next; its own window starts at that capture
|
||||
// admission (storage.CutCaptureAdmitted).
|
||||
func (c *chunkControl) mirrorBlockingCut(ctx context.Context, blocker *manualCutHandle, unlink func(), linked bool) {
|
||||
tick := time.NewTicker(mirrorPoll)
|
||||
defer tick.Stop()
|
||||
for {
|
||||
if !linked {
|
||||
c.opMu.Lock()
|
||||
bctx := blocker.ctx
|
||||
c.opMu.Unlock()
|
||||
if bctx != nil {
|
||||
unlink, linked = storage.LinkCutProgress(ctx, bctx), true
|
||||
}
|
||||
}
|
||||
select {
|
||||
case <-blocker.done:
|
||||
unlink()
|
||||
storage.MirrorCutStep(ctx) // the blocking cut's end, whichever outcome
|
||||
return
|
||||
case <-ctx.Done():
|
||||
unlink()
|
||||
return
|
||||
case <-tick.C:
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,509 @@
|
||||
package volume
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/chunkstore"
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/durable"
|
||||
"github.com/seaweedfs/seaweed-block/core/storage"
|
||||
)
|
||||
|
||||
// detachHandleProvider is a provider whose manual cuts and plain detach run
|
||||
// until released. Its plain detach first waits for gate (the capture lock a
|
||||
// running manual cut holds), then reports each value on step as one of its
|
||||
// own final cut's steps, and ends on release. It counts preemptions.
|
||||
type detachHandleProvider struct {
|
||||
handleCutProvider
|
||||
gate chan struct{}
|
||||
step chan struct{}
|
||||
release chan struct{}
|
||||
preempted atomic.Int32
|
||||
}
|
||||
|
||||
func (p *detachHandleProvider) DetachVolumePlain(ctx context.Context, volumeID string) (storage.ChunkCutResult, uint64, error) {
|
||||
select {
|
||||
case <-p.gate:
|
||||
case <-ctx.Done():
|
||||
return storage.ChunkCutResult{}, 0, ctx.Err()
|
||||
}
|
||||
storage.CutCaptureAdmitted(ctx) // the capture lock is this detach's
|
||||
for {
|
||||
select {
|
||||
case <-p.step:
|
||||
storage.ReportCutObjectVerified(ctx)
|
||||
case <-p.release:
|
||||
return storage.ChunkCutResult{H: 21}, 21, nil
|
||||
case <-ctx.Done():
|
||||
return storage.ChunkCutResult{}, 0, ctx.Err()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (p *detachHandleProvider) PreemptScheduledCapture(string) bool {
|
||||
p.preempted.Add(1)
|
||||
return true
|
||||
}
|
||||
|
||||
func newDetachHandleProvider() *detachHandleProvider {
|
||||
return &detachHandleProvider{gate: make(chan struct{}), step: make(chan struct{}), release: make(chan struct{})}
|
||||
}
|
||||
|
||||
func detachControl(p *detachHandleProvider) *chunkControl {
|
||||
return NewChunkControl(p, nil, chunkstore.VolumeRef{}).(*chunkControl)
|
||||
}
|
||||
|
||||
func handleSequence(c *chunkControl, h *manualCutHandle) uint64 {
|
||||
c.opMu.Lock()
|
||||
ctx := h.ctx
|
||||
c.opMu.Unlock()
|
||||
return storage.CutProgressSequence(ctx)
|
||||
}
|
||||
|
||||
func waitUntil(t *testing.T, what string, cond func() bool) {
|
||||
t.Helper()
|
||||
for end := time.Now().Add(5 * time.Second); !cond(); time.Sleep(time.Millisecond) {
|
||||
if time.Now().After(end) {
|
||||
t.Fatal(what)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The detach slot is reserved outside the manual cut handles: with all four
|
||||
// manual cut handles live, a stop (an observed plain detach) is still
|
||||
// admitted and completes.
|
||||
func TestAStopWithFourLiveManualCutHandlesSucceeds(t *testing.T) {
|
||||
p := newDetachHandleProvider()
|
||||
p.work = func(context.Context) (storage.ChunkCutResult, error) { return storage.ChunkCutResult{H: 7}, nil }
|
||||
c := detachControl(p)
|
||||
defer c.closeSnapshotOperations(context.Background())
|
||||
for i := 0; i < manualCutHandleLimit; i++ {
|
||||
h, err := c.startManualCut(context.Background(), "v1", 0, time.Minute, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
<-h.done
|
||||
}
|
||||
if _, err := c.startManualCut(context.Background(), "v1", 0, time.Minute, time.Time{}); err == nil {
|
||||
t.Fatal("setup: a fifth manual cut was admitted")
|
||||
}
|
||||
close(p.gate)
|
||||
h, err := c.startPlainDetach("v1", time.Minute, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatalf("a stop with four live manual cut handles: %v, want admitted (the reserved detach slot)", err)
|
||||
}
|
||||
close(p.release)
|
||||
<-h.done
|
||||
if h.err != nil || h.detach.CutLSN != 21 {
|
||||
t.Fatalf("the stop: %+v %v, want completed", h.detach, h.err)
|
||||
}
|
||||
}
|
||||
|
||||
// A stop during a running manual cut never preempts it: it waits behind it,
|
||||
// and its sequence rises with each of that cut's completed steps and once at
|
||||
// that cut's end, then with its own final cut's steps; it completes after.
|
||||
func TestAStopDuringARunningManualCutWaitsAndKeepsRising(t *testing.T) {
|
||||
p := newDetachHandleProvider()
|
||||
manualStep, manualRelease := make(chan struct{}), make(chan struct{})
|
||||
p.work = func(ctx context.Context) (storage.ChunkCutResult, error) {
|
||||
for {
|
||||
select {
|
||||
case <-manualStep:
|
||||
storage.ReportCutObjectVerified(ctx)
|
||||
case <-manualRelease:
|
||||
return storage.ChunkCutResult{H: 9}, nil
|
||||
case <-ctx.Done():
|
||||
return storage.ChunkCutResult{}, ctx.Err()
|
||||
}
|
||||
}
|
||||
}
|
||||
c := detachControl(p)
|
||||
defer c.closeSnapshotOperations(context.Background())
|
||||
manual, err := c.startManualCut(context.Background(), "v1", 0, time.Minute, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
stop, err := c.startPlainDetach("v1", time.Minute, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
for want := uint64(1); want <= 2; want++ {
|
||||
manualStep <- struct{}{}
|
||||
waitUntil(t, "the waiting stop's sequence follows the manual cut's steps", func() bool { return handleSequence(c, stop) == want })
|
||||
}
|
||||
close(manualRelease)
|
||||
<-manual.done
|
||||
waitUntil(t, "the waiting stop's sequence rises at the manual cut's end", func() bool { return handleSequence(c, stop) == 3 })
|
||||
close(p.gate) // the manual cut released the capture lock
|
||||
p.step <- struct{}{}
|
||||
waitUntil(t, "the stop's own final cut raises its sequence", func() bool { return handleSequence(c, stop) == 4 })
|
||||
close(p.release)
|
||||
<-stop.done
|
||||
if stop.err != nil {
|
||||
t.Fatalf("the stop after the manual cut: %v", stop.err)
|
||||
}
|
||||
if n := p.preempted.Load(); n != 0 {
|
||||
t.Fatalf("the stop preempted %d time(s) while a manual cut ran, want never", n)
|
||||
}
|
||||
}
|
||||
|
||||
// With no manual cut running, a stop preempts the running scheduled cut (the
|
||||
// provider cancels it; its staged uploads are reused by the stop's final cut).
|
||||
func TestAStopPreemptsARunningScheduledCut(t *testing.T) {
|
||||
p := newDetachHandleProvider()
|
||||
c := detachControl(p)
|
||||
defer c.closeSnapshotOperations(context.Background())
|
||||
close(p.gate)
|
||||
stop, err := c.startPlainDetach("v1", time.Minute, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if n := p.preempted.Load(); n != 1 {
|
||||
t.Fatalf("preemptions at the stop's admission: %d, want 1", n)
|
||||
}
|
||||
close(p.release)
|
||||
<-stop.done
|
||||
}
|
||||
|
||||
// Over HTTP a progressing observed plain detach answers in_progress with its
|
||||
// id once its window passes without an answer, and the shared status route answers the detach's terminal body
|
||||
// with that id. A second concurrent stop is refused retryably.
|
||||
func TestAnObservedPlainDetachIsPolledOnTheCutStatusRoute(t *testing.T) {
|
||||
p := newDetachHandleProvider()
|
||||
c := detachControl(p)
|
||||
defer c.closeSnapshotOperations(context.Background())
|
||||
s := chunkServer(t, c, true)
|
||||
close(p.gate)
|
||||
feeding := make(chan struct{})
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
case p.step <- struct{}{}:
|
||||
time.Sleep(50 * time.Millisecond)
|
||||
case <-feeding:
|
||||
return
|
||||
}
|
||||
}
|
||||
}()
|
||||
w := serve(t, s, http.MethodPost, "/chunk/detach", `{"volumeID":"v1","plain":true,"timeoutMs":1000}`, "")
|
||||
var a struct {
|
||||
Code string `json:"code"`
|
||||
CutID string `json:"cutID"`
|
||||
CutLSN uint64 `json:"cutLSN"`
|
||||
}
|
||||
if err := json.Unmarshal(w.Body.Bytes(), &a); err != nil || w.Code != http.StatusAccepted || a.Code != "in_progress" || a.CutID == "" {
|
||||
t.Fatalf("an observed plain detach: %d %s, want 202 in_progress with an id", w.Code, w.Body)
|
||||
}
|
||||
if w2 := serve(t, s, http.MethodPost, "/chunk/detach", `{"volumeID":"v1","plain":true,"timeoutMs":1000}`, ""); w2.Code == http.StatusOK || w2.Code == http.StatusAccepted {
|
||||
t.Fatalf("a second concurrent stop: %d %s, want refused", w2.Code, w2.Body)
|
||||
}
|
||||
close(feeding)
|
||||
close(p.release)
|
||||
var mu sync.Mutex
|
||||
waitUntil(t, "the detach's terminal answer", func() bool {
|
||||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
w := serve(t, s, http.MethodGet, "/chunk/cut?volumeID=v1&cutID="+a.CutID, "", "")
|
||||
return w.Code == http.StatusOK && json.Unmarshal(w.Body.Bytes(), &a) == nil && a.CutLSN == 21
|
||||
})
|
||||
}
|
||||
|
||||
// scriptedDetachProvider answers each plain detach from its script, in order,
|
||||
// repeating the last answer.
|
||||
type scriptedDetachProvider struct {
|
||||
handleCutProvider
|
||||
mu sync.Mutex
|
||||
script []error
|
||||
calls int
|
||||
readBacks bool // each unknown answer follows a completed read-back
|
||||
}
|
||||
|
||||
func (p *scriptedDetachProvider) DetachReadBacks(string) uint64 {
|
||||
p.mu.Lock()
|
||||
defer p.mu.Unlock()
|
||||
if !p.readBacks {
|
||||
return 0
|
||||
}
|
||||
return uint64(p.calls)
|
||||
}
|
||||
|
||||
func (p *scriptedDetachProvider) DetachVolumePlain(ctx context.Context, volumeID string) (storage.ChunkCutResult, uint64, error) {
|
||||
p.mu.Lock()
|
||||
i := min(p.calls, len(p.script)-1)
|
||||
p.calls++
|
||||
err := p.script[i]
|
||||
p.mu.Unlock()
|
||||
if err != nil {
|
||||
return storage.ChunkCutResult{}, 0, err
|
||||
}
|
||||
return storage.ChunkCutResult{H: 33}, 33, nil
|
||||
}
|
||||
|
||||
// A stop whose publish answer was lost (outcome unknown) is settled by the
|
||||
// holder on the same handle: the detach runs again (its seal replay) and the
|
||||
// handle ends with that definite outcome; no second handle.
|
||||
func TestAStopWithALostPublishAnswerSettlesOnTheSameHandle(t *testing.T) {
|
||||
p := &scriptedDetachProvider{script: []error{durable.ErrDetachOutcomeUnknown, nil}}
|
||||
c := NewChunkControl(p, nil, chunkstore.VolumeRef{}).(*chunkControl)
|
||||
defer c.closeSnapshotOperations(context.Background())
|
||||
h, err := c.startPlainDetach("v1", time.Minute, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
<-h.done
|
||||
p.mu.Lock()
|
||||
calls := p.calls
|
||||
p.mu.Unlock()
|
||||
if h.err != nil || h.detach.CutLSN != 33 || calls != 2 {
|
||||
t.Fatalf("a stop with a lost publish answer: %+v %v after %d run(s), want settled to its outcome on the second", h.detach, h.err, calls)
|
||||
}
|
||||
c.opMu.Lock()
|
||||
n := c.handlesOfKindLocked(handleKindDetach)
|
||||
c.opMu.Unlock()
|
||||
if n != 1 {
|
||||
t.Fatalf("detach handles: %d, want the one handle", n)
|
||||
}
|
||||
}
|
||||
|
||||
// A settlement that makes no progress for the window ends the handle with
|
||||
// outcome_unknown, typed (not cut_stalled).
|
||||
func TestAStopWhoseSettlementMakesNoProgressEndsTypedUnknown(t *testing.T) {
|
||||
p := &scriptedDetachProvider{script: []error{durable.ErrDetachOutcomeUnknown}}
|
||||
c := NewChunkControl(p, nil, chunkstore.VolumeRef{}).(*chunkControl)
|
||||
defer c.closeSnapshotOperations(context.Background())
|
||||
h, err := c.startPlainDetach("v1", 80*time.Millisecond, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
select {
|
||||
case <-h.done:
|
||||
case <-time.After(5 * time.Second):
|
||||
t.Fatal("the unsettled stop never ended")
|
||||
}
|
||||
if _, code, _ := chunkErrorCode(h.err); code != chunkstore.CodeOutcomeUnknown {
|
||||
t.Fatalf("an unsettled stop: %v (code %q), want %s", h.err, code, chunkstore.CodeOutcomeUnknown)
|
||||
}
|
||||
}
|
||||
|
||||
// A settlement whose read-backs complete (each finds the stop not published,
|
||||
// and the retried publish's answer is lost again) outlives the window: each
|
||||
// completed read-back is one step, renewing the window and raising the
|
||||
// handle's sequence, until the outcome is decided (CutTime r8b Settle).
|
||||
func TestAStopWhoseSettlementReadBacksCompleteOutlivesItsWindow(t *testing.T) {
|
||||
unknown := durable.ErrDetachOutcomeUnknown
|
||||
p := &scriptedDetachProvider{script: []error{unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, nil}, readBacks: true}
|
||||
c := NewChunkControl(p, nil, chunkstore.VolumeRef{}).(*chunkControl)
|
||||
defer c.closeSnapshotOperations(context.Background())
|
||||
const window = 80 * time.Millisecond
|
||||
start := time.Now()
|
||||
h, err := c.startPlainDetach("v1", window, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
select {
|
||||
case <-h.done:
|
||||
case <-time.After(5 * time.Second):
|
||||
t.Fatal("the settling stop never ended")
|
||||
}
|
||||
elapsed := time.Since(start)
|
||||
if h.err != nil || h.detach.CutLSN != 33 || elapsed <= window {
|
||||
t.Fatalf("a settlement with completed read-backs: %+v %v after %s, want decided past the %s window", h.detach, h.err, elapsed, window)
|
||||
}
|
||||
if seq := storage.CutProgressSequence(h.ctx); seq < 8 {
|
||||
t.Fatalf("handle sequence %d after 8 completed read-backs, want each to raise it", seq)
|
||||
}
|
||||
}
|
||||
|
||||
// A stop queued behind a manual cut does not stall on its own window while it
|
||||
// waits (CutTime DetachQ, NoQueuedStall): behind a manual cut whose legal
|
||||
// silence outlasts the stop's window, the stop is admitted at that cut's end
|
||||
// and completes.
|
||||
func TestAStopQueuedBehindASilentManualCutDoesNotStall(t *testing.T) {
|
||||
p := newDetachHandleProvider()
|
||||
manualRelease := make(chan struct{})
|
||||
p.work = func(ctx context.Context) (storage.ChunkCutResult, error) {
|
||||
select {
|
||||
case <-manualRelease:
|
||||
return storage.ChunkCutResult{H: 9}, nil
|
||||
case <-ctx.Done():
|
||||
return storage.ChunkCutResult{}, ctx.Err()
|
||||
}
|
||||
}
|
||||
c := detachControl(p)
|
||||
defer c.closeSnapshotOperations(context.Background())
|
||||
manual, err := c.startManualCut(context.Background(), "v1", 0, 10*time.Second, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
const stopWindow = 80 * time.Millisecond
|
||||
stop, err := c.startPlainDetach("v1", stopWindow, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
time.Sleep(4 * stopWindow) // the manual cut is silent, within its own window
|
||||
select {
|
||||
case <-stop.done:
|
||||
t.Fatalf("the queued stop ended while the manual cut was still valid: %v", stop.err)
|
||||
default:
|
||||
}
|
||||
close(manualRelease)
|
||||
<-manual.done
|
||||
close(p.gate)
|
||||
close(p.release)
|
||||
<-stop.done
|
||||
if stop.err != nil || stop.detach.CutLSN != 21 {
|
||||
t.Fatalf("the stop admitted after the manual cut: %+v %v, want completed", stop.detach, stop.err)
|
||||
}
|
||||
}
|
||||
|
||||
// Detach priority (CutTime r8d): while a stop's handle is live, a manual
|
||||
// cut is refused cut_busy naming the stop, both behind a running manual cut
|
||||
// (at that cut's end, before the stop takes the lock) and with no blocker
|
||||
// (between the handle's creation and its capture admission); the stop then
|
||||
// completes.
|
||||
func TestAManualCutIsRefusedWhileAStopIsLive(t *testing.T) {
|
||||
for _, queued := range []bool{true, false} {
|
||||
name := map[bool]string{true: "behind a manual cut", false: "no blocker"}[queued]
|
||||
t.Run(name, func(t *testing.T) {
|
||||
p := newDetachHandleProvider()
|
||||
release := make(chan struct{})
|
||||
p.work = func(ctx context.Context) (storage.ChunkCutResult, error) {
|
||||
select {
|
||||
case <-release:
|
||||
return storage.ChunkCutResult{H: 9}, nil
|
||||
case <-ctx.Done():
|
||||
return storage.ChunkCutResult{}, ctx.Err()
|
||||
}
|
||||
}
|
||||
c := detachControl(p)
|
||||
defer c.closeSnapshotOperations(context.Background())
|
||||
var m1 *manualCutHandle
|
||||
if queued {
|
||||
var err error
|
||||
if m1, err = c.startManualCut(context.Background(), "v1", 0, 10*time.Second, time.Time{}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
stop, err := c.startPlainDetach("v1", 80*time.Millisecond, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if queued {
|
||||
close(release)
|
||||
<-m1.done
|
||||
}
|
||||
_, err = c.startManualCut(context.Background(), "v1", 0, 10*time.Second, time.Time{})
|
||||
var busy *storage.CutBusyError
|
||||
if !errors.As(err, &busy) || busy.Reason != "detach_in_progress" || busy.CutID != stop.id {
|
||||
t.Fatalf("a manual cut while the stop is live: %v, want cut_busy detach_in_progress naming %s", err, stop.id)
|
||||
}
|
||||
close(p.gate)
|
||||
close(p.release)
|
||||
<-stop.done
|
||||
if stop.err != nil || stop.detach.CutLSN != 21 {
|
||||
t.Fatalf("the stop: %+v %v, want completed", stop.detach, stop.err)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Through the real provider: a stop queued behind a manual cut, whose own
|
||||
// final cut then gets no store answers, ends cut_stalled within its window
|
||||
// plus slack. Its hold ends at its capture admission inside the detach
|
||||
// (NoSilentStall), not never.
|
||||
func TestAStopQueuedBehindAManualCutStallsOnASilentFinalCut(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
dp, fixture, st, _ := limitVolume(t)
|
||||
var silent atomic.Bool
|
||||
entered, release := make(chan struct{}), make(chan struct{})
|
||||
var once sync.Once
|
||||
fixture.Blobs.PutHook = func(ctx context.Context) error {
|
||||
if !silent.Load() {
|
||||
once.Do(func() { close(entered) })
|
||||
select {
|
||||
case <-release:
|
||||
return nil
|
||||
case <-ctx.Done():
|
||||
return ctx.Err()
|
||||
}
|
||||
}
|
||||
<-ctx.Done() // the store does not answer the stop's final cut
|
||||
return ctx.Err()
|
||||
}
|
||||
if _, err := st.Write(0, make([]byte, 4096)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
c := NewChunkControl(dp, fixture.Catalog, fixture.Ref).(*chunkControl)
|
||||
defer c.closeSnapshotOperations(ctx)
|
||||
m1, err := c.startManualCut(ctx, "v1", 0, 10*time.Second, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := awaitUploadOrEnd(entered, m1, 10*time.Second); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err := st.Write(32, bytes.Repeat([]byte{9}, 4096)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
const stopWindow = 300 * time.Millisecond
|
||||
stop, err := c.startPlainDetach("v1", stopWindow, time.Time{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
silent.Store(true)
|
||||
close(release)
|
||||
select {
|
||||
case <-m1.done:
|
||||
case <-time.After(10 * time.Second):
|
||||
t.Fatal("the manual cut never ended after its uploads were answered")
|
||||
}
|
||||
select {
|
||||
case <-stop.done:
|
||||
case <-time.After(10 * time.Second):
|
||||
t.Fatal("the stop never ended over a silent final cut: its window stayed held")
|
||||
}
|
||||
if _, code, _ := chunkErrorCode(stop.err); code != "cut_stalled" {
|
||||
t.Fatalf("the stop over a silent final cut: %v (code %q), want cut_stalled", stop.err, code)
|
||||
}
|
||||
}
|
||||
|
||||
// awaitUploadOrEnd waits until the manual cut h reaches its upload (entered)
|
||||
// and reports an error, never a hang, when h ends first or limit passes.
|
||||
func awaitUploadOrEnd(entered <-chan struct{}, h *manualCutHandle, limit time.Duration) error {
|
||||
select {
|
||||
case <-entered:
|
||||
return nil
|
||||
case <-h.done:
|
||||
return fmt.Errorf("the manual cut ended before its upload: %+v %v", h.result, h.err)
|
||||
case <-time.After(limit):
|
||||
return fmt.Errorf("the manual cut did not reach its upload within %s", limit)
|
||||
}
|
||||
}
|
||||
|
||||
// The real-provider witness's setup wait ends with a report, not a hang,
|
||||
// when the manual cut ends before its upload or never reaches it.
|
||||
func TestAwaitUploadOrEndReportsAnEarlyEnd(t *testing.T) {
|
||||
ended := &manualCutHandle{done: make(chan struct{}), err: errors.New("expired before upload")}
|
||||
close(ended.done)
|
||||
if err := awaitUploadOrEnd(make(chan struct{}), ended, 5*time.Second); err == nil || !strings.Contains(err.Error(), "ended before its upload") {
|
||||
t.Fatalf("a manual cut that ended first: %v, want an early-end report", err)
|
||||
}
|
||||
running := &manualCutHandle{done: make(chan struct{})}
|
||||
if err := awaitUploadOrEnd(make(chan struct{}), running, 20*time.Millisecond); err == nil || !strings.Contains(err.Error(), "did not reach") {
|
||||
t.Fatalf("a manual cut that never uploads: %v, want a bounded report", err)
|
||||
}
|
||||
entered := make(chan struct{})
|
||||
close(entered)
|
||||
if err := awaitUploadOrEnd(entered, running, time.Second); err != nil {
|
||||
t.Fatalf("a manual cut that reached its upload: %v", err)
|
||||
}
|
||||
}
|
||||
@@ -4,8 +4,11 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/durable"
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/durable/testutil"
|
||||
@@ -38,20 +41,49 @@ func TestSnapshotAfter200MiBWritesOmitsUncomputedChunkCount(t *testing.T) {
|
||||
t.Fatalf("write %d: %v", lba, err)
|
||||
}
|
||||
}
|
||||
server := chunkServer(t, NewChunkControl(dp, f.Catalog, f.Ref), true)
|
||||
ctl := NewChunkControl(dp, f.Catalog, f.Ref)
|
||||
c := ctl.(*chunkControl)
|
||||
// Registered after the provider's Close, so it runs first on every path:
|
||||
// it cancels the operation worker and joins it, bounded, before storage
|
||||
// closes. A worker still alive after the bound exits the test binary at
|
||||
// once (a panic would still run the later cleanups), so no storage
|
||||
// close, TempDir cleanup or later test runs beside it.
|
||||
t.Cleanup(func() {
|
||||
jctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
|
||||
defer cancel()
|
||||
if err := c.closeSnapshotOperations(jctx); err != nil {
|
||||
fmt.Fprintln(os.Stderr, "FAIL: snapshot operation worker still running after its 30 s join bound ("+err.Error()+"); exiting the test binary rather than closing storage under it")
|
||||
os.Exit(1)
|
||||
}
|
||||
})
|
||||
server := chunkServer(t, ctl, true)
|
||||
// A snapshot is an operation: its succeeded result is the public answer.
|
||||
request := ChunkSnapshotRequest{Name: "daily", RequestID: "count-regression"}
|
||||
for _, label := range []string{"create", "replay"} {
|
||||
w := serve(t, server, http.MethodPost, "/chunk/snapshot", `{"volumeID":"v1","name":"daily","requestID":"count-regression"}`, "")
|
||||
if w.Code != http.StatusOK {
|
||||
t.Fatalf("%s: %d %s", label, w.Code, w.Body)
|
||||
admitted, err := c.startSnapshotOperation(ctx, "v1", request)
|
||||
if err != nil {
|
||||
t.Fatalf("%s: %v", label, err)
|
||||
}
|
||||
result := admitted.Result
|
||||
bound := time.Now().Add(30 * time.Second)
|
||||
for admitted.State != "succeeded" {
|
||||
if admitted.State == "refused" || admitted.State == "stalled" || time.Now().After(bound) {
|
||||
t.Fatalf("%s did not succeed: %+v", label, admitted)
|
||||
}
|
||||
time.Sleep(time.Millisecond)
|
||||
if admitted, err = c.readSnapshotOperation(ctx, "v1", request.RequestID, "create", admitted.VolumeID.String()); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
result = admitted.Result
|
||||
}
|
||||
var answer struct {
|
||||
Name string `json:"name"`
|
||||
CutLSN uint64 `json:"cutLSN"`
|
||||
}
|
||||
if err := json.Unmarshal(w.Body.Bytes(), &answer); err != nil || answer.Name != "daily" || answer.CutLSN != blocks {
|
||||
t.Fatalf("%s did not snapshot all 200 MiB of writes: %v %s", label, err, w.Body)
|
||||
if err := json.Unmarshal(result, &answer); err != nil || answer.Name != "daily" || answer.CutLSN != blocks {
|
||||
t.Fatalf("%s did not snapshot all 200 MiB of writes: %v %s", label, err, result)
|
||||
}
|
||||
assertNoSnapshotChunkCount(t, w.Body.Bytes())
|
||||
assertNoSnapshotChunkCount(t, result)
|
||||
}
|
||||
w := serve(t, server, http.MethodGet, "/chunk/snapshots?volume=v1", "", "")
|
||||
if w.Code != http.StatusOK {
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
package volume
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/chunkstore"
|
||||
)
|
||||
|
||||
// snapshotNow runs one snapshot attempt to its end, the work a snapshot
|
||||
// operation's worker does. The tests drive snapshot semantics with it; the
|
||||
// HTTP route answers only with an operation handle.
|
||||
func snapshotNow(ctl ChunkControl, ctx context.Context, volume string, req ChunkSnapshotRequest) (chunkstore.SnapshotInfo, error) {
|
||||
c, ok := ctl.(*chunkControl)
|
||||
if !ok {
|
||||
return chunkstore.SnapshotInfo{}, fmt.Errorf("snapshotNow: %T runs no snapshot attempts", ctl)
|
||||
}
|
||||
return c.snapshotOperationAttempt(ctx, volume, req, nil)
|
||||
}
|
||||
@@ -28,37 +28,6 @@ func snapshotOperationTerminalAnswer(op chunkstore.SnapshotOperation) (chunkstor
|
||||
return result, err, true
|
||||
}
|
||||
|
||||
// Legacy synchronous observation of an in-flight ID never starts another cut.
|
||||
// Changed intent still refuses deterministically; a settled result can replay
|
||||
// before the original worker removes its process-local queue entry.
|
||||
func (c *chunkControl) snapshotOperationInFlight(ctx context.Context, volume string, req ChunkSnapshotRequest) (chunkstore.SnapshotInfo, error) {
|
||||
if _, err := c.catalogVolume(volume); err != nil {
|
||||
return chunkstore.SnapshotInfo{}, err
|
||||
}
|
||||
st, err := c.cat.Store(c.volume)
|
||||
if err != nil {
|
||||
return chunkstore.SnapshotInfo{}, err
|
||||
}
|
||||
op, found, err := st.ReadSnapshotOperation(ctx, req.RequestID, "create")
|
||||
if err != nil {
|
||||
return chunkstore.SnapshotInfo{}, err
|
||||
}
|
||||
if !found {
|
||||
return chunkstore.SnapshotInfo{}, chunkstore.ErrSnapshotOperationOwner
|
||||
}
|
||||
fingerprint, err := snapshotOperationFingerprint(req)
|
||||
if err != nil {
|
||||
return chunkstore.SnapshotInfo{}, err
|
||||
}
|
||||
if op.Name != req.Name || op.Fingerprint != fingerprint {
|
||||
return chunkstore.SnapshotInfo{}, chunkstore.ErrSnapshotOperationIntent
|
||||
}
|
||||
if result, terminalErr, terminal := snapshotOperationTerminalAnswer(op); terminal {
|
||||
return result, terminalErr
|
||||
}
|
||||
return chunkstore.SnapshotInfo{}, chunkstore.ErrSnapshotOperationOwner
|
||||
}
|
||||
|
||||
type snapshotOperationJob struct {
|
||||
volume string
|
||||
request ChunkSnapshotRequest
|
||||
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"fmt"
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/chunkstore"
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/chunkstore/layout"
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/durable"
|
||||
"github.com/seaweedfs/seaweed-block/core/storage"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
@@ -18,74 +17,11 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type snapshotOperationSingleWorkerProvider struct {
|
||||
*durable.DurableProvider
|
||||
calls atomic.Int32
|
||||
}
|
||||
|
||||
func (p *snapshotOperationSingleWorkerProvider) SnapshotVolume(ctx context.Context, volume, name string, meta layout.SnapshotMeta) (layout.Head, error) {
|
||||
if p.calls.Add(1) != 1 {
|
||||
return layout.Head{}, errors.New("second worker entered snapshot provider")
|
||||
}
|
||||
return p.DurableProvider.SnapshotVolume(ctx, volume, name, meta)
|
||||
}
|
||||
|
||||
func TestSnapshotOperationSynchronousRetryDoesNotDuplicateAsyncWorker(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
dp, f, s, head := limitVolume(t)
|
||||
if _, err := s.Write(0, bytes.Repeat([]byte{'A'}, 4096)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
entered := make(chan struct{}, 1)
|
||||
f.Blobs.PutHook = func(ctx context.Context) error { entered <- struct{}{}; <-ctx.Done(); return ctx.Err() }
|
||||
p := &snapshotOperationSingleWorkerProvider{DurableProvider: dp}
|
||||
ctl := NewChunkControl(p, f.Catalog, f.Ref).(*chunkControl)
|
||||
t.Cleanup(func() {
|
||||
closing, cancel := context.WithTimeout(ctx, 3*time.Second)
|
||||
defer cancel()
|
||||
if err := ctl.closeSnapshotOperations(closing); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
})
|
||||
req := ChunkSnapshotRequest{Name: "daily", RequestID: "single-worker"}
|
||||
if _, err := ctl.startSnapshotOperation(ctx, "v1", req); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
select {
|
||||
case <-entered:
|
||||
case <-time.After(time.Second):
|
||||
t.Fatal("async worker did not enter upload")
|
||||
}
|
||||
st, _ := f.Catalog.Store(f.Ref)
|
||||
before, found, err := st.ReadSnapshotOperation(ctx, req.RequestID, "create")
|
||||
if err != nil || !found {
|
||||
t.Fatal(err)
|
||||
}
|
||||
h := head()
|
||||
_, err = ctl.Snapshot(ctx, "v1", req)
|
||||
if !errors.Is(err, chunkstore.ErrSnapshotOperationOwner) {
|
||||
t.Fatalf("in-flight synchronous retry did not refuse typed/retryably: %v", err)
|
||||
}
|
||||
_, _, retryable := chunkErrorCode(err)
|
||||
if !retryable {
|
||||
t.Fatal("in-flight refusal is terminal")
|
||||
}
|
||||
changed := req
|
||||
changed.Name = "other"
|
||||
if _, err = ctl.Snapshot(ctx, "v1", changed); !errors.Is(err, chunkstore.ErrSnapshotOperationIntent) {
|
||||
t.Fatalf("in-flight changed intent lost conflict: %v", err)
|
||||
}
|
||||
after, _, err := st.ReadSnapshotOperation(ctx, req.RequestID, "create")
|
||||
if err != nil || !reflect.DeepEqual(before, after) || !reflect.DeepEqual(h, head()) || p.calls.Load() != 1 {
|
||||
t.Fatalf("retry changed receipt/HEAD or ran duplicate worker: calls=%d err=%v", p.calls.Load(), err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSnapshotOperationChangedIntentHTTPConflictBeforeWrite(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
dp, f, _, head := limitVolume(t)
|
||||
ctl := NewChunkControl(dp, f.Catalog, f.Ref)
|
||||
if _, err := ctl.Snapshot(ctx, "v1", ChunkSnapshotRequest{Name: "daily", RequestID: "http-conflict"}); err != nil {
|
||||
if _, err := snapshotNow(ctl, ctx, "v1", ChunkSnapshotRequest{Name: "daily", RequestID: "http-conflict"}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
server := chunkServer(t, ctl, true)
|
||||
@@ -274,7 +210,7 @@ func TestSnapshotOperationAsyncQueueCapacityRefusesBeforeIntent(t *testing.T) {
|
||||
ctl := NewChunkControl(dp, f.Catalog, f.Ref).(*chunkControl)
|
||||
defer ctl.closeSnapshotOperations(ctx)
|
||||
terminalRequest := ChunkSnapshotRequest{Name: "finished", RequestID: "terminal-replay"}
|
||||
if _, err := ctl.Snapshot(ctx, "v1", terminalRequest); err != nil {
|
||||
if _, err := snapshotNow(ctl, ctx, "v1", terminalRequest); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
terminalStore, err := f.Catalog.Store(f.Ref)
|
||||
@@ -392,50 +328,3 @@ func TestSnapshotOperationControlReplacementJoinsAndCannotReopenStoppedOwner(t *
|
||||
t.Fatalf("stopped process admitted an intent: found=%v err=%v", found, err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSnapshotOperationCloseAlsoJoinsLegacySynchronousRequest(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
dp, f, s, _ := limitVolume(t)
|
||||
if _, err := s.Write(0, bytes.Repeat([]byte{'A'}, 4096)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
entered := make(chan struct{}, 1)
|
||||
f.Blobs.PutHook = func(ctx context.Context) error { entered <- struct{}{}; <-ctx.Done(); return ctx.Err() }
|
||||
ctl := NewChunkControl(dp, f.Catalog, f.Ref).(*chunkControl)
|
||||
caller, cancel := context.WithCancel(ctx)
|
||||
done := make(chan error, 1)
|
||||
go func() {
|
||||
_, err := ctl.Snapshot(caller, "v1", ChunkSnapshotRequest{Name: "daily", RequestID: "legacy-borrow"})
|
||||
done <- err
|
||||
}()
|
||||
joined := false
|
||||
defer func() {
|
||||
cancel()
|
||||
if !joined {
|
||||
select {
|
||||
case <-done:
|
||||
case <-time.After(3 * time.Second):
|
||||
t.Error("legacy caller did not join")
|
||||
}
|
||||
}
|
||||
}()
|
||||
select {
|
||||
case <-entered:
|
||||
case <-time.After(time.Second):
|
||||
t.Fatal("legacy request never borrowed storage")
|
||||
}
|
||||
closing, stop := context.WithTimeout(ctx, 3*time.Second)
|
||||
defer stop()
|
||||
if err := ctl.closeSnapshotOperations(closing); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
select {
|
||||
case err := <-done:
|
||||
joined = true
|
||||
if err == nil {
|
||||
t.Fatal("canceled legacy attempt answered success")
|
||||
}
|
||||
case <-time.After(time.Second):
|
||||
t.Fatal("close returned while a synchronous request still borrowed storage")
|
||||
}
|
||||
}
|
||||
@@ -82,11 +82,11 @@ func TestSnapshotOperationDelayedFailureCannotAnswerReusedID(t *testing.T) {
|
||||
}
|
||||
fresh := ChunkSnapshotRequest{Name: "replacement", RequestID: req.RequestID}
|
||||
if outcome == "refusal" {
|
||||
if _, err := NewChunkControl(dp, f.Catalog, f.Ref).Snapshot(ctx, "v1", ChunkSnapshotRequest{Name: fresh.Name}); err != nil {
|
||||
if _, err := snapshotNow(NewChunkControl(dp, f.Catalog, f.Ref), ctx, "v1", ChunkSnapshotRequest{Name: fresh.Name}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
_, freshErr := NewChunkControl(dp, f.Catalog, f.Ref).Snapshot(ctx, "v1", fresh)
|
||||
_, freshErr := snapshotNow(NewChunkControl(dp, f.Catalog, f.Ref), ctx, "v1", fresh)
|
||||
if (freshErr != nil) != (outcome == "refusal") {
|
||||
t.Fatalf("replacement setup: %v", freshErr)
|
||||
}
|
||||
@@ -105,7 +105,7 @@ func TestSnapshotOperationDelayedFailureCannotAnswerReusedID(t *testing.T) {
|
||||
}
|
||||
return errors.Join(storage.ErrChunkCASOutcomeUnknown, storage.ErrChunkLayerDetached)
|
||||
}
|
||||
got, err := NewChunkControl(p, cat, f.Ref).Snapshot(ctx, "v1", req)
|
||||
got, err := snapshotNow(NewChunkControl(p, cat, f.Ref), ctx, "v1", req)
|
||||
if !errors.Is(err, chunkstore.ErrSnapshotOperationRetired) {
|
||||
t.Fatalf("old request answered another incarnation: got=%+v err=%v", got, err)
|
||||
}
|
||||
@@ -133,7 +133,7 @@ func TestSnapshotOperationRetiredQueuedJobCannotReadmit(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err := NewChunkControl(dp, f.Catalog, f.Ref).Snapshot(ctx, "v1", req); err != nil {
|
||||
if _, err := snapshotNow(NewChunkControl(dp, f.Catalog, f.Ref), ctx, "v1", req); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
last := fillSnapshotOperationIndex(t, st, fp)
|
||||
|
||||
@@ -56,7 +56,7 @@ func TestSnapshotOperationAppliedAnswerFailureNeverBecomesRefused(t *testing.T)
|
||||
}
|
||||
req := ChunkSnapshotRequest{Name: "daily", RequestID: "applied-confirmation-lost"}
|
||||
ctl := NewChunkControl(p, f.Catalog, f.Ref)
|
||||
got, err := ctl.Snapshot(ctx, "v1", req)
|
||||
got, err := snapshotNow(ctl, ctx, "v1", req)
|
||||
op, found, readErr := st.ReadSnapshotOperation(ctx, req.RequestID, "create")
|
||||
if readErr != nil || !found || op.State == "refused" {
|
||||
t.Fatalf("applied write became final refusal: %+v found=%v err=%v", op, found, readErr)
|
||||
@@ -65,7 +65,7 @@ func TestSnapshotOperationAppliedAnswerFailureNeverBecomesRefused(t *testing.T)
|
||||
t.Fatalf("lost receipt race ignored stored success: %+v %v", got, err)
|
||||
}
|
||||
before := head()
|
||||
again, err := NewChunkControl(dp, f.Catalog, f.Ref).Snapshot(ctx, "v1", req)
|
||||
again, err := snapshotNow(NewChunkControl(dp, f.Catalog, f.Ref), ctx, "v1", req)
|
||||
if err != nil || again.Name != "daily" || !reflect.DeepEqual(before, head()) {
|
||||
t.Fatalf("retry failed original result or republished: %+v %v", again, err)
|
||||
}
|
||||
@@ -81,7 +81,7 @@ func TestSnapshotOperationFailureBeforePublicationRemainsNonterminal(t *testing.
|
||||
dp, f, _, head := limitVolume(t)
|
||||
p := &snapshotOperationAnswerFault{DurableProvider: dp, before: storage.ErrChunkLayerDetached}
|
||||
req := ChunkSnapshotRequest{Name: "daily", RequestID: "pre-publication-failure"}
|
||||
_, err := NewChunkControl(p, f.Catalog, f.Ref).Snapshot(ctx, "v1", req)
|
||||
_, err := snapshotNow(NewChunkControl(p, f.Catalog, f.Ref), ctx, "v1", req)
|
||||
if err == nil {
|
||||
t.Fatal("fault returned success")
|
||||
}
|
||||
@@ -90,11 +90,11 @@ func TestSnapshotOperationFailureBeforePublicationRemainsNonterminal(t *testing.
|
||||
if err != nil || !found || op.State != "stalled" {
|
||||
t.Fatalf("uncertain work became terminal: %+v found=%v err=%v", op, found, err)
|
||||
}
|
||||
if _, err = NewChunkControl(dp, f.Catalog, f.Ref).Snapshot(ctx, "v1", req); err != nil {
|
||||
if _, err = snapshotNow(NewChunkControl(dp, f.Catalog, f.Ref), ctx, "v1", req); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
before := head()
|
||||
if _, err = NewChunkControl(dp, f.Catalog, f.Ref).Snapshot(ctx, "v1", req); err != nil || !reflect.DeepEqual(before, head()) {
|
||||
if _, err = snapshotNow(NewChunkControl(dp, f.Catalog, f.Ref), ctx, "v1", req); err != nil || !reflect.DeepEqual(before, head()) {
|
||||
t.Fatalf("replay republished: %v", err)
|
||||
}
|
||||
}
|
||||
@@ -111,7 +111,7 @@ func TestSnapshotOperationFencedFailurePreservesPublishedBinding(t *testing.T) {
|
||||
return errors.Join(storage.ErrChunkCASOutcomeUnknown, storage.ErrChunkLayerFenced)
|
||||
}}
|
||||
req := ChunkSnapshotRequest{Name: "daily", RequestID: "fenced-confirmation"}
|
||||
if _, err := NewChunkControl(p, f.Catalog, f.Ref).Snapshot(ctx, "v1", req); !errors.Is(err, storage.ErrChunkLayerFenced) {
|
||||
if _, err := snapshotNow(NewChunkControl(p, f.Catalog, f.Ref), ctx, "v1", req); !errors.Is(err, storage.ErrChunkLayerFenced) {
|
||||
t.Fatalf("fencing evidence lost: %v", err)
|
||||
}
|
||||
st, _ := f.Catalog.Store(f.Ref)
|
||||
@@ -130,7 +130,7 @@ func TestSnapshotOperationFencedFailurePreservesPublishedBinding(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
before := head()
|
||||
got, err := NewChunkControl(dp, f.Catalog, f.Ref).Snapshot(ctx, "v1", req)
|
||||
got, err := snapshotNow(NewChunkControl(dp, f.Catalog, f.Ref), ctx, "v1", req)
|
||||
if err != nil || !sameSnapshotOutcome(original, got) || !reflect.DeepEqual(before, head()) {
|
||||
t.Fatalf("removed fenced publication lost original outcome: %+v %v", got, err)
|
||||
}
|
||||
@@ -156,7 +156,7 @@ func TestSnapshotOperationRetryAfterRemovalKeepsOriginalOutcome(t *testing.T) {
|
||||
if _, err := s.Write(0, bytes.Repeat([]byte{'A'}, 4096)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
original, err := ctl.Snapshot(ctx, "v1", req)
|
||||
original, err := snapshotNow(ctl, ctx, "v1", req)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -183,7 +183,7 @@ func TestSnapshotOperationRetryAfterRemovalKeepsOriginalOutcome(t *testing.T) {
|
||||
// Reconstruct the control over the same persisted catalog. No map in
|
||||
// this test remembers the original answer for the production code.
|
||||
ctl = NewChunkControl(dp, f.Catalog, f.Ref)
|
||||
again, err := ctl.Snapshot(ctx, "v1", req)
|
||||
again, err := snapshotNow(ctl, ctx, "v1", req)
|
||||
after := head()
|
||||
if err != nil || !sameSnapshotOutcome(original, again) || !reflect.DeepEqual(before, after) {
|
||||
t.Fatalf("retained operation was executed again: err=%v original=%+v retry=%+v HEAD gen %d -> %d snapshots=%v", err, original, again, before.Gen, after.Gen, after.Snapshots)
|
||||
@@ -200,7 +200,7 @@ func TestSnapshotOperationOldIDDoesNotAliasReusedName(t *testing.T) {
|
||||
if _, err := s.Write(0, bytes.Repeat([]byte{'A'}, 4096)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
original, err := ctl.Snapshot(ctx, "v1", old)
|
||||
original, err := snapshotNow(ctl, ctx, "v1", old)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -212,7 +212,7 @@ func TestSnapshotOperationOldIDDoesNotAliasReusedName(t *testing.T) {
|
||||
}
|
||||
newReq := old
|
||||
newReq.RequestID = "new-operation"
|
||||
newOutcome, err := ctl.Snapshot(ctx, "v1", newReq)
|
||||
newOutcome, err := snapshotNow(ctl, ctx, "v1", newReq)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -220,7 +220,7 @@ func TestSnapshotOperationOldIDDoesNotAliasReusedName(t *testing.T) {
|
||||
t.Fatal("fixture did not produce distinct snapshot instances")
|
||||
}
|
||||
before := head()
|
||||
again, err := NewChunkControl(dp, f.Catalog, f.Ref).Snapshot(ctx, "v1", old)
|
||||
again, err := snapshotNow(NewChunkControl(dp, f.Catalog, f.Ref), ctx, "v1", old)
|
||||
if err != nil || !sameSnapshotOutcome(original, again) || !reflect.DeepEqual(before, head()) {
|
||||
t.Fatalf("old request answered with a reused name: original=%+v new=%+v retry=%+v err=%v", original, newOutcome, again, err)
|
||||
}
|
||||
@@ -231,12 +231,12 @@ func TestSnapshotOperationSameIDChangedIntentRefusesBeforeWrite(t *testing.T) {
|
||||
dp, f, _, head := limitVolume(t)
|
||||
ctl := NewChunkControl(dp, f.Catalog, f.Ref)
|
||||
req := ChunkSnapshotRequest{Name: "first", RequestID: "one-operation"}
|
||||
if _, err := ctl.Snapshot(ctx, "v1", req); err != nil {
|
||||
if _, err := snapshotNow(ctl, ctx, "v1", req); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
before := head()
|
||||
req.Name = "different"
|
||||
_, err := ctl.Snapshot(ctx, "v1", req)
|
||||
_, err := snapshotNow(ctl, ctx, "v1", req)
|
||||
if err == nil || !reflect.DeepEqual(before, head()) {
|
||||
t.Fatalf("same ID with changed intent was not refused without writes: err=%v HEAD gen %d -> %d", err, before.Gen, head().Gen)
|
||||
}
|
||||
@@ -332,7 +332,7 @@ func testSnapshotLostPublicationRemoval(t *testing.T, door string, readmit bool)
|
||||
fault.mu.Lock()
|
||||
fault.cancel = cancel
|
||||
fault.mu.Unlock()
|
||||
_, firstErr := ctl.Snapshot(firstCtx, "v1", req)
|
||||
_, firstErr := snapshotNow(ctl, firstCtx, "v1", req)
|
||||
fault.mu.Lock()
|
||||
published := fault.published
|
||||
fault.mu.Unlock()
|
||||
@@ -350,7 +350,7 @@ func testSnapshotLostPublicationRemoval(t *testing.T, door string, readmit bool)
|
||||
original := chunkstore.SnapshotInfoFromHead("v1", "daily", *published)
|
||||
if readmit {
|
||||
// This separate control settles via a successful re-admission first.
|
||||
resumed, err := NewChunkControl(dp, cat, f.Ref).Snapshot(ctx, "v1", req)
|
||||
resumed, err := snapshotNow(NewChunkControl(dp, cat, f.Ref), ctx, "v1", req)
|
||||
if err != nil || !sameSnapshotOutcome(original, resumed) {
|
||||
t.Fatalf("readmit did not reconcile original publication: %+v %v", resumed, err)
|
||||
}
|
||||
@@ -384,7 +384,7 @@ func testSnapshotLostPublicationRemoval(t *testing.T, door string, readmit bool)
|
||||
if err != nil || !found {
|
||||
t.Fatal(err)
|
||||
}
|
||||
again, err := NewChunkControl(dp, cat, f.Ref).Snapshot(ctx, "v1", req)
|
||||
again, err := snapshotNow(NewChunkControl(dp, cat, f.Ref), ctx, "v1", req)
|
||||
after, found, readErr := cat.ReadHead(ctx, f.Ref)
|
||||
if err != nil || readErr != nil || !found || !sameSnapshotOutcome(original, again) || !reflect.DeepEqual(before, after) {
|
||||
t.Fatalf("published/readmitted/removed operation ran another cut or lost its outcome: original=%+v retry=%+v err=%v readErr=%v HEAD gen %d -> %d", original, again, err, readErr, before.Gen, after.Gen)
|
||||
@@ -397,7 +397,7 @@ func TestSnapshotOperationMissingHeadRefusesBeforeIntent(t *testing.T) {
|
||||
if err := f.Filer.DeleteEntry(ctx, "/provider-test/"+f.Ref.Dir(), layout.HeadName, nil); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
_, err := NewChunkControl(dp, f.Catalog, f.Ref).Snapshot(ctx, "v1", ChunkSnapshotRequest{Name: "daily", RequestID: "missing-head"})
|
||||
_, err := snapshotNow(NewChunkControl(dp, f.Catalog, f.Ref), ctx, "v1", ChunkSnapshotRequest{Name: "daily", RequestID: "missing-head"})
|
||||
if !errors.Is(err, layout.ErrHeadAbsent) {
|
||||
t.Fatalf("absent HEAD must refuse: %v", err)
|
||||
}
|
||||
@@ -415,14 +415,14 @@ func TestSnapshotOperationEquivalentEmptyLabelsReplayOriginal(t *testing.T) {
|
||||
dp, f, _, head := limitVolume(t)
|
||||
ctl := NewChunkControl(dp, f.Catalog, f.Ref)
|
||||
req := ChunkSnapshotRequest{Name: "daily", RequestID: "canonical-intent"}
|
||||
original, err := ctl.Snapshot(ctx, "v1", req)
|
||||
original, err := snapshotNow(ctl, ctx, "v1", req)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
before := head()
|
||||
req.Labels = map[string]string{}
|
||||
req.Consistency = "crash"
|
||||
again, err := ctl.Snapshot(ctx, "v1", req)
|
||||
again, err := snapshotNow(ctl, ctx, "v1", req)
|
||||
if err != nil || !sameSnapshotOutcome(original, again) || !reflect.DeepEqual(before, head()) {
|
||||
t.Fatalf("equivalent default intent changed identity: err=%v original=%+v replay=%+v", err, original, again)
|
||||
}
|
||||
@@ -433,12 +433,12 @@ func TestSnapshotOperationNameConflictRemainsRefusedAfterRemoval(t *testing.T) {
|
||||
dp, f, _, head := limitVolume(t)
|
||||
ctl := NewChunkControl(dp, f.Catalog, f.Ref)
|
||||
first := ChunkSnapshotRequest{Name: "daily", RequestID: "first-owner"}
|
||||
if _, err := ctl.Snapshot(ctx, "v1", first); err != nil {
|
||||
if _, err := snapshotNow(ctl, ctx, "v1", first); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
conflicting := first
|
||||
conflicting.RequestID = "other-operation"
|
||||
_, err := ctl.Snapshot(ctx, "v1", conflicting)
|
||||
_, err := snapshotNow(ctl, ctx, "v1", conflicting)
|
||||
if err == nil {
|
||||
t.Fatal("new operation was answered by another operation's live name")
|
||||
}
|
||||
@@ -451,7 +451,7 @@ func TestSnapshotOperationNameConflictRemainsRefusedAfterRemoval(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
before := head()
|
||||
_, err = NewChunkControl(dp, f.Catalog, f.Ref).Snapshot(ctx, "v1", conflicting)
|
||||
_, err = snapshotNow(NewChunkControl(dp, f.Catalog, f.Ref), ctx, "v1", conflicting)
|
||||
if err == nil {
|
||||
t.Fatal("terminal refusal became a new create after removal")
|
||||
}
|
||||
@@ -477,7 +477,7 @@ func TestSnapshotOperationUnknownAuthorityLossKeepsReceiptForReadmission(t *test
|
||||
dp, f, _, _ := limitVolume(t)
|
||||
p := &snapshotOperationAnswerFault{DurableProvider: dp, before: errors.Join(storage.ErrChunkCASOutcomeUnknown, tc.cause)}
|
||||
req := ChunkSnapshotRequest{Name: "daily", RequestID: "authority-lost-before-publication"}
|
||||
_, err := NewChunkControl(p, f.Catalog, f.Ref).Snapshot(ctx, "v1", req)
|
||||
_, err := snapshotNow(NewChunkControl(p, f.Catalog, f.Ref), ctx, "v1", req)
|
||||
if !errors.Is(err, tc.cause) || !errors.Is(err, storage.ErrChunkCASOutcomeUnknown) {
|
||||
t.Fatalf("lost typed causes: %v", err)
|
||||
}
|
||||
@@ -489,7 +489,7 @@ func TestSnapshotOperationUnknownAuthorityLossKeepsReceiptForReadmission(t *test
|
||||
if err != nil || !found || op.State != "running" {
|
||||
t.Fatalf("displaced worker mutated receipt: %+v found=%v err=%v", op, found, err)
|
||||
}
|
||||
if _, err := NewChunkControl(dp, f.Catalog, f.Ref).Snapshot(ctx, "v1", req); err != nil {
|
||||
if _, err := snapshotNow(NewChunkControl(dp, f.Catalog, f.Ref), ctx, "v1", req); err != nil {
|
||||
t.Fatalf("readmission failed: %v", err)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -107,7 +107,7 @@ func TestSnapshotOperationTerminalWriterEnumeration(t *testing.T) {
|
||||
}
|
||||
case "core/host/volume/chunk_control.go:snapshotOperationAttempt:refused":
|
||||
code, ok := call.Args[4].(*ast.BasicLit)
|
||||
if !ok || code.Value != `"snapshot_exists"` || execution == token.NoPos || call.Pos() >= execution {
|
||||
if !ok || (code.Value != `"snapshot_exists"` && code.Value != `"snapshot_limit"`) || execution == token.NoPos || call.Pos() >= execution {
|
||||
t.Errorf("%s: refusal must precede provider execution and name the observed HEAD conflict", fset.Position(call.Pos()))
|
||||
}
|
||||
default:
|
||||
@@ -128,8 +128,11 @@ func TestSnapshotOperationTerminalWriterEnumeration(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
for _, key := range []string{"core/frontend/chunkstore/catalog_snapshot_delete_intent.go:snapshotDeleteLogicalStep:succeeded", "core/frontend/chunkstore/snapshot_operation_guard.go:SettleSnapshotOperationFromHead:succeeded", "core/host/volume/chunk_control.go:snapshotOperationAttempt:refused", "core/frontend/chunkstore/snapshot_delete_operation.go:refuseInitiallyAbsentDelete:refused"} {
|
||||
if seen[key] != 1 {
|
||||
// The attempt refuses two HEAD-observed conflicts before execution: the
|
||||
// name taken by another operation, and a HEAD already at the limit.
|
||||
want := map[string]int{"core/frontend/chunkstore/catalog_snapshot_delete_intent.go:snapshotDeleteLogicalStep:succeeded": 1, "core/frontend/chunkstore/snapshot_operation_guard.go:SettleSnapshotOperationFromHead:succeeded": 1, "core/host/volume/chunk_control.go:snapshotOperationAttempt:refused": 2, "core/frontend/chunkstore/snapshot_delete_operation.go:refuseInitiallyAbsentDelete:refused": 1}
|
||||
for key, n := range want {
|
||||
if seen[key] != n {
|
||||
t.Fatalf("terminal writer census changed: %s count=%d", key, seen[key])
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
package volume
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/chunkstore"
|
||||
@@ -36,14 +39,37 @@ func TestStatusServer_StatusChunkUsage(t *testing.T) {
|
||||
}
|
||||
|
||||
// The snapshot route carries the retention class through.
|
||||
// classOperationControl records the request a snapshot operation is
|
||||
// admitted with.
|
||||
type classOperationControl struct {
|
||||
*fakeChunkControl
|
||||
got ChunkSnapshotRequest
|
||||
}
|
||||
|
||||
func (c *classOperationControl) startSnapshotOperation(_ context.Context, _ string, req ChunkSnapshotRequest) (chunkstore.SnapshotOperation, error) {
|
||||
c.got = req
|
||||
return chunkstore.SnapshotOperation{ID: req.RequestID, Verb: "create", State: "accepted"}, nil
|
||||
}
|
||||
|
||||
func (c *classOperationControl) readSnapshotOperation(context.Context, string, string, string, string, ...string) (chunkstore.SnapshotOperation, error) {
|
||||
return chunkstore.SnapshotOperation{}, errors.New("not read in this test")
|
||||
}
|
||||
|
||||
func (c *classOperationControl) closeSnapshotOperations(context.Context) error { return nil }
|
||||
|
||||
func TestStatusServer_ChunkSnapshotCarriesClass(t *testing.T) {
|
||||
fake := &fakeChunkControl{snap: chunkstore.SnapshotInfo{VolumeID: "v1", Name: "s1"}}
|
||||
s := chunkServer(t, fake, true)
|
||||
if w := serve(t, s, http.MethodPost, "/chunk/snapshot", `{"volumeID":"v1","name":"s1","requestID":"r","class":"pinned"}`, ""); w.Code != http.StatusOK {
|
||||
ctl := &classOperationControl{fakeChunkControl: &fakeChunkControl{}}
|
||||
s := chunkServer(t, ctl, true)
|
||||
req := httptest.NewRequest(http.MethodPost, "/chunk/snapshot", strings.NewReader(`{"volumeID":"v1","name":"s1","requestID":"r","class":"pinned"}`))
|
||||
req.RemoteAddr = "127.0.0.1:5555"
|
||||
req.Header.Set("Prefer", "respond-async")
|
||||
w := httptest.NewRecorder()
|
||||
s.chunkMux().ServeHTTP(w, req)
|
||||
if w.Code != http.StatusAccepted {
|
||||
t.Fatalf("snapshot: %d %s", w.Code, w.Body)
|
||||
}
|
||||
if fake.lastSnap.Class != layout.ClassPinned {
|
||||
t.Fatalf("class not passed through: %+v", fake.lastSnap)
|
||||
if ctl.got.Class != layout.ClassPinned || ctl.got.Name != "s1" || ctl.got.RequestID != "r" {
|
||||
t.Fatalf("class not passed through: %+v", ctl.got)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1383,6 +1383,8 @@ func (l *chunkLayerImpl) admit() (err error) {
|
||||
func (l *chunkLayerImpl) Cut(ctx context.Context) (chunkCutResult, error) {
|
||||
ctx, stop := WithCutProgressWindow(ctx, DefaultCutProgressWindow)
|
||||
defer stop()
|
||||
ctx, endPreempt := preemptibleCapture(ctx)
|
||||
defer endPreempt()
|
||||
if err := l.lockPrecopy(ctx); err != nil {
|
||||
return chunkCutResult{}, CutWindowError(ctx, err)
|
||||
}
|
||||
@@ -1402,6 +1404,8 @@ func (l *chunkLayerImpl) Capture(ctx context.Context) (uint64, error) {
|
||||
func (l *chunkLayerImpl) MakeRemoteDurable(ctx context.Context, t uint64) error {
|
||||
ctx, stop := WithCutProgressWindow(ctx, DefaultCutProgressWindow)
|
||||
defer stop()
|
||||
ctx, endPreempt := preemptibleCapture(ctx)
|
||||
defer endPreempt()
|
||||
if err := l.lockPrecopy(ctx); err != nil {
|
||||
return CutWindowError(ctx, err)
|
||||
}
|
||||
@@ -2318,6 +2322,7 @@ func (l *chunkLayerImpl) captureInvocationLocked(ctx context.Context, detach boo
|
||||
|
||||
func (l *chunkLayerImpl) Detach(ctx context.Context) (chunkCutResult, error) {
|
||||
l.capMu.Lock()
|
||||
CutCaptureAdmitted(ctx) // a held (queued) owner's window starts at its admission
|
||||
defer l.unlockCap()
|
||||
if r, ok := l.storedDetach(); ok {
|
||||
return r, nil
|
||||
@@ -2339,6 +2344,7 @@ func (l *chunkLayerImpl) Detach(ctx context.Context) (chunkCutResult, error) {
|
||||
// successful cancel. resolvePending would re-propose the detach instead.
|
||||
func (l *chunkLayerImpl) SettleDetach(ctx context.Context) (settled detachSettlement, result chunkCutResult, err error) {
|
||||
l.capMu.Lock()
|
||||
CutCaptureAdmitted(ctx) // a held (queued) owner's window starts at its admission
|
||||
defer l.unlockCap()
|
||||
defer func() { err = l.latchIdentityMoved(err) }()
|
||||
if r, ok := l.storedDetach(); ok {
|
||||
|
||||
@@ -29,6 +29,9 @@ type captureMutex struct {
|
||||
changed *sync.Cond
|
||||
held bool
|
||||
id string
|
||||
// preempt cancels the holder when it is a scheduled cut (CutTime r7: a
|
||||
// plain detach preempts it); nil for any other holder. Cleared on unlock.
|
||||
preempt context.CancelCauseFunc
|
||||
}
|
||||
|
||||
func (m *captureMutex) Lock() {
|
||||
@@ -65,6 +68,7 @@ func (m *captureMutex) Unlock() {
|
||||
}
|
||||
m.held = false
|
||||
m.id = ""
|
||||
m.preempt = nil
|
||||
if m.changed != nil {
|
||||
m.changed.Broadcast()
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ type OwnProgress struct {
|
||||
// call picks again from the current HEAD.
|
||||
func (l *chunkLayerImpl) OwnBatch(ctx context.Context, n int, foreign func(key string) bool) (OwnProgress, error) {
|
||||
l.capMu.Lock()
|
||||
CutCaptureAdmitted(ctx) // a held (queued) owner's window starts at its admission
|
||||
defer l.capMu.Unlock()
|
||||
l.stMu.Lock()
|
||||
var picked []uint64
|
||||
|
||||
@@ -493,7 +493,9 @@ func (l *chunkLayerImpl) lockPrecopy(ctx context.Context) error {
|
||||
if err := ctx.Err(); err != nil {
|
||||
return err
|
||||
}
|
||||
if l.capMu.TryLock() {
|
||||
preempt := capturePreempt(ctx)
|
||||
if l.capMu.tryLockPreemptible(preempt) {
|
||||
CutCaptureAdmitted(ctx)
|
||||
return nil
|
||||
}
|
||||
tick := time.NewTicker(10 * time.Millisecond)
|
||||
@@ -503,7 +505,8 @@ func (l *chunkLayerImpl) lockPrecopy(ctx context.Context) error {
|
||||
case <-ctx.Done():
|
||||
return ctx.Err()
|
||||
case <-tick.C:
|
||||
if l.capMu.TryLock() {
|
||||
if l.capMu.tryLockPreemptible(preempt) {
|
||||
CutCaptureAdmitted(ctx)
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/rand"
|
||||
"errors"
|
||||
"sync"
|
||||
)
|
||||
|
||||
// ErrCutPreempted ends a scheduled cut that a plain detach preempted. Its
|
||||
// completed uploads stay staged; the detach's final cut reuses them.
|
||||
var ErrCutPreempted = errors.New("storage: cut_preempted")
|
||||
|
||||
type scheduledCutKey struct{}
|
||||
type capturePreemptKey struct{}
|
||||
|
||||
// WithScheduledCut marks the capture ctx runs (a timer cut, a scheduled
|
||||
// snapshot) as scheduled: while it holds the capture lock, a plain detach
|
||||
// may preempt it (CutTime r7). A manual cut is never marked, never preempted.
|
||||
func WithScheduledCut(ctx context.Context) context.Context {
|
||||
return context.WithValue(ctx, scheduledCutKey{}, true)
|
||||
}
|
||||
|
||||
// preemptibleCapture gives a scheduled capture attempt its own cancel, which
|
||||
// the capture lock records together with ownership (lockPrecopy). Any other
|
||||
// capture gets ctx back.
|
||||
func preemptibleCapture(ctx context.Context) (context.Context, func()) {
|
||||
if scheduled, _ := ctx.Value(scheduledCutKey{}).(bool); !scheduled {
|
||||
return ctx, func() {}
|
||||
}
|
||||
c, cancel := context.WithCancelCause(ctx)
|
||||
return context.WithValue(c, capturePreemptKey{}, cancel), func() { cancel(context.Canceled) }
|
||||
}
|
||||
|
||||
// capturePreempt is the attempt's preempt cancel, or nil.
|
||||
func capturePreempt(ctx context.Context) context.CancelCauseFunc {
|
||||
cancel, _ := ctx.Value(capturePreemptKey{}).(context.CancelCauseFunc)
|
||||
return cancel
|
||||
}
|
||||
|
||||
// tryLockPreemptible takes the capture lock without waiting, recording the
|
||||
// holder's preempt cancel (nil: not preemptible) atomically with ownership.
|
||||
func (m *captureMutex) tryLockPreemptible(preempt context.CancelCauseFunc) bool {
|
||||
m.mu.Lock()
|
||||
defer m.mu.Unlock()
|
||||
if m.held {
|
||||
return false
|
||||
}
|
||||
m.held, m.id, m.preempt = true, rand.Text(), preempt
|
||||
return true
|
||||
}
|
||||
|
||||
// PreemptScheduledCapture requests the cancellation of layer's scheduled
|
||||
// capture, if one holds the capture lock, and reports whether it did. It
|
||||
// never waits for the lock's release. Manual and unmarked holders are never
|
||||
// cancelled. The cancel is copied under the lock and invoked outside it.
|
||||
func PreemptScheduledCapture(layer ChunkLayer) bool {
|
||||
l, ok := layer.(*chunkLayerImpl)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
l.capMu.mu.Lock()
|
||||
cancel := l.capMu.preempt
|
||||
l.capMu.preempt = nil
|
||||
l.capMu.mu.Unlock()
|
||||
if cancel == nil {
|
||||
return false
|
||||
}
|
||||
cancel(ErrCutPreempted)
|
||||
return true
|
||||
}
|
||||
|
||||
// cutProgressLinks are windows that a window's completed steps also renew.
|
||||
type cutProgressLinks struct {
|
||||
mu sync.Mutex
|
||||
dst map[*cutProgressWindow]struct{}
|
||||
}
|
||||
|
||||
// LinkCutProgress makes each completed step of src's cut, from now on, also
|
||||
// a step of dst's window: it renews dst and raises dst's sequence (a plain
|
||||
// detach queued behind a manual cut, CutTime r7). Steps src completed before
|
||||
// the link are not credited. It returns an idempotent unlink. A context
|
||||
// without a window links nothing.
|
||||
func LinkCutProgress(dst, src context.Context) func() {
|
||||
if dst == nil || src == nil {
|
||||
return func() {}
|
||||
}
|
||||
d, _ := dst.Value(cutWindowKey{}).(*cutProgressWindow)
|
||||
s, _ := src.Value(cutWindowKey{}).(*cutProgressWindow)
|
||||
if d == nil || s == nil || d == s {
|
||||
return func() {}
|
||||
}
|
||||
if cutLinkAttemptHook != nil {
|
||||
cutLinkAttemptHook()
|
||||
}
|
||||
s.links.mu.Lock()
|
||||
if s.links.dst == nil {
|
||||
s.links.dst = map[*cutProgressWindow]struct{}{}
|
||||
}
|
||||
s.links.dst[d] = struct{}{}
|
||||
s.links.mu.Unlock()
|
||||
var once sync.Once
|
||||
return func() {
|
||||
once.Do(func() {
|
||||
s.links.mu.Lock()
|
||||
delete(s.links.dst, d)
|
||||
s.links.mu.Unlock()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// cutLinkAttemptHook runs as a link is about to take the source's link set
|
||||
// (tests only; nil in production).
|
||||
var cutLinkAttemptHook func()
|
||||
|
||||
// MirrorCutStep reports one step onto ctx's window: the end of the cut a
|
||||
// waiting detach is queued behind (CutTime r7 counts it once).
|
||||
func MirrorCutStep(ctx context.Context) {
|
||||
reportCompletedCutStep(ctx)
|
||||
}
|
||||
|
||||
// linkedWindowsLocked returns the windows w's steps also renew; the caller
|
||||
// holds w.links.mu.
|
||||
func (w *cutProgressWindow) linkedWindowsLocked() []*cutProgressWindow {
|
||||
out := make([]*cutProgressWindow, 0, len(w.links.dst))
|
||||
for d := range w.links.dst {
|
||||
out = append(out, d)
|
||||
}
|
||||
return out
|
||||
}
|
||||
@@ -0,0 +1,235 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
// A scheduled capture records its preempt cancel together with ownership of
|
||||
// the capture lock: a preemption cancels it with ErrCutPreempted, and only
|
||||
// once. An unmarked holder (a manual cut, a detach) is never cancelled, and
|
||||
// the cancel is cleared when the lock is released.
|
||||
func TestPreemptCancelsOnlyAScheduledCaptureHolder(t *testing.T) {
|
||||
l := &chunkLayerImpl{}
|
||||
scheduled, end := preemptibleCapture(WithScheduledCut(context.Background()))
|
||||
defer end()
|
||||
if !l.capMu.tryLockPreemptible(capturePreempt(scheduled)) {
|
||||
t.Fatal("setup: the capture lock is held")
|
||||
}
|
||||
if !PreemptScheduledCapture(l) {
|
||||
t.Fatal("a scheduled holder was not preempted")
|
||||
}
|
||||
if !errors.Is(context.Cause(scheduled), ErrCutPreempted) {
|
||||
t.Fatalf("the preempted capture's cause: %v, want %v", context.Cause(scheduled), ErrCutPreempted)
|
||||
}
|
||||
if PreemptScheduledCapture(l) {
|
||||
t.Fatal("a second preemption of the same holder was requested")
|
||||
}
|
||||
l.capMu.Unlock()
|
||||
|
||||
manual, endManual := preemptibleCapture(context.Background())
|
||||
defer endManual()
|
||||
if !l.capMu.tryLockPreemptible(capturePreempt(manual)) {
|
||||
t.Fatal("setup: the capture lock is held")
|
||||
}
|
||||
if PreemptScheduledCapture(l) || manual.Err() != nil {
|
||||
t.Fatal("an unmarked holder was preempted")
|
||||
}
|
||||
l.capMu.Unlock()
|
||||
|
||||
again, endAgain := preemptibleCapture(WithScheduledCut(context.Background()))
|
||||
defer endAgain()
|
||||
if !l.capMu.tryLockPreemptible(capturePreempt(again)) {
|
||||
t.Fatal("setup: the capture lock is held")
|
||||
}
|
||||
l.capMu.Unlock()
|
||||
if PreemptScheduledCapture(l) || again.Err() != nil {
|
||||
t.Fatal("a released scheduled holder was still preemptible")
|
||||
}
|
||||
}
|
||||
|
||||
// LinkCutProgress credits dst only with the steps src completes after the
|
||||
// link: each renews dst and raises its sequence. Its unlink is idempotent
|
||||
// and stops the credit.
|
||||
func TestLinkedCutProgressCreditsOnlyStepsAfterTheLink(t *testing.T) {
|
||||
src, stopSrc := WithCutProgressWindow(context.Background(), time.Minute)
|
||||
defer stopSrc()
|
||||
dst, stopDst := WithCutProgressWindow(context.Background(), time.Minute)
|
||||
defer stopDst()
|
||||
reportCompletedCutStep(src)
|
||||
reportCompletedCutStep(src)
|
||||
unlink := LinkCutProgress(dst, src)
|
||||
if got := CutProgressSequence(dst); got != 0 {
|
||||
t.Fatalf("dst at the link: %d, want 0 (steps before the link are not credited)", got)
|
||||
}
|
||||
reportCompletedCutStep(src)
|
||||
if got := CutProgressSequence(dst); got != 1 {
|
||||
t.Fatalf("dst after one linked step: %d, want 1", got)
|
||||
}
|
||||
unlink()
|
||||
unlink()
|
||||
reportCompletedCutStep(src)
|
||||
if got, s := CutProgressSequence(dst), CutProgressSequence(src); got != 1 || s != 4 {
|
||||
t.Fatalf("after the unlink: dst %d, src %d; want 1 and 4", got, s)
|
||||
}
|
||||
}
|
||||
|
||||
// A linked step renews the waiting window: without it, dst would stall in
|
||||
// its window while src progresses.
|
||||
func TestALinkedStepRenewsTheWaitingWindow(t *testing.T) {
|
||||
src, stopSrc := WithCutProgressWindow(context.Background(), time.Hour)
|
||||
defer stopSrc()
|
||||
dst, stopDst := WithCutProgressWindow(context.Background(), 60*time.Millisecond)
|
||||
defer stopDst()
|
||||
defer LinkCutProgress(dst, src)()
|
||||
for i := 0; i < 6; i++ {
|
||||
time.Sleep(25 * time.Millisecond)
|
||||
reportCompletedCutStep(src)
|
||||
}
|
||||
if err := dst.Err(); err != nil {
|
||||
t.Fatalf("the linked window after 150 ms of linked steps: %v (cause %v), want live", err, context.Cause(dst))
|
||||
}
|
||||
}
|
||||
|
||||
// A link made while a step is being delivered is not credited with that step:
|
||||
// the step and the snapshot of its links are one critical section, so the
|
||||
// link lands after it. Its next step is credited.
|
||||
func TestALinkMadeDuringAStepIsNotCreditedWithIt(t *testing.T) {
|
||||
src, stopSrc := WithCutProgressWindow(context.Background(), time.Minute)
|
||||
defer stopSrc()
|
||||
dst, stopDst := WithCutProgressWindow(context.Background(), time.Minute)
|
||||
defer stopDst()
|
||||
attempted, linked, workerDone := make(chan struct{}), make(chan func(), 1), make(chan struct{})
|
||||
var once sync.Once
|
||||
var started atomic.Bool
|
||||
// Registered before the hooks are installed: on any exit the competing
|
||||
// worker is joined (bounded) and only then are the hooks restored.
|
||||
t.Cleanup(func() {
|
||||
if started.Load() {
|
||||
select {
|
||||
case <-workerDone:
|
||||
case <-time.After(5 * time.Second):
|
||||
t.Error("the competing link worker did not finish")
|
||||
}
|
||||
}
|
||||
cutStepDeliveryHook, cutLinkAttemptHook = nil, nil
|
||||
})
|
||||
cutLinkAttemptHook = func() { once.Do(func() { close(attempted) }) }
|
||||
cutStepDeliveryHook = func() {
|
||||
started.Store(true)
|
||||
go func() {
|
||||
defer close(workerDone)
|
||||
linked <- LinkCutProgress(dst, src)
|
||||
}()
|
||||
// The link has reached the link set before delivery continues; an
|
||||
// unlinearized link would complete here and be credited.
|
||||
select {
|
||||
case <-attempted:
|
||||
case <-time.After(5 * time.Second):
|
||||
t.Error("the competing link never reached the link set")
|
||||
}
|
||||
select {
|
||||
case u := <-linked:
|
||||
linked <- u
|
||||
case <-time.After(50 * time.Millisecond):
|
||||
}
|
||||
}
|
||||
reportCompletedCutStep(src)
|
||||
var unlink func()
|
||||
select {
|
||||
case unlink = <-linked:
|
||||
case <-time.After(5 * time.Second):
|
||||
t.Fatal("the competing link never completed")
|
||||
}
|
||||
<-workerDone
|
||||
cutStepDeliveryHook, cutLinkAttemptHook = nil, nil
|
||||
defer unlink()
|
||||
if got := CutProgressSequence(dst); got != 0 {
|
||||
t.Fatalf("the link made during the step was credited with it: sequence %d, want 0", got)
|
||||
}
|
||||
reportCompletedCutStep(src)
|
||||
if got := CutProgressSequence(dst); got != 1 {
|
||||
t.Fatalf("the step after the link: sequence %d, want 1", got)
|
||||
}
|
||||
}
|
||||
|
||||
// A scheduled holder is preemptible from the moment it owns the capture
|
||||
// lock: ownership and its preempt cancel are published together, so no
|
||||
// observer of the lock sees a scheduled holder without its cancel.
|
||||
func TestAScheduledHolderIsPreemptibleTheMomentItOwnsTheLock(t *testing.T) {
|
||||
var m captureMutex
|
||||
stop, done := make(chan struct{}), make(chan struct{})
|
||||
var seen atomic.Bool
|
||||
go func() {
|
||||
defer close(done)
|
||||
for {
|
||||
select {
|
||||
case <-stop:
|
||||
return
|
||||
default:
|
||||
}
|
||||
m.mu.Lock()
|
||||
if m.held && m.preempt == nil {
|
||||
seen.Store(true)
|
||||
}
|
||||
m.mu.Unlock()
|
||||
}
|
||||
}()
|
||||
for i := 0; i < 20000 && !seen.Load(); i++ {
|
||||
_, cancel := context.WithCancelCause(context.Background())
|
||||
if m.tryLockPreemptible(cancel) {
|
||||
m.Unlock()
|
||||
}
|
||||
cancel(nil)
|
||||
}
|
||||
close(stop)
|
||||
<-done
|
||||
if seen.Load() {
|
||||
t.Fatal("a scheduled holder owned the capture lock without its preempt cancel")
|
||||
}
|
||||
}
|
||||
|
||||
// A stop queued behind a manual cut keeps its own window held until it
|
||||
// actually acquires the capture lock: it outlives its own window while
|
||||
// queued, and its window starts only at its acquisition.
|
||||
func TestAQueuedStopsWindowStartsAtItsCaptureAdmission(t *testing.T) {
|
||||
l := &chunkLayerImpl{}
|
||||
const window = 50 * time.Millisecond
|
||||
ctx, stop := WithCutProgressWindow(context.Background(), window)
|
||||
defer stop()
|
||||
HoldCutProgressWindow(ctx)
|
||||
if ok, _ := l.capMu.tryManual("m1"); !ok {
|
||||
t.Fatal("setup: the capture lock is held")
|
||||
}
|
||||
acquired := make(chan error, 1)
|
||||
go func() { acquired <- l.lockPrecopy(ctx) }()
|
||||
time.Sleep(4 * window)
|
||||
if ctx.Err() != nil || !CutWindowHeld(ctx) {
|
||||
t.Fatalf("the queued stop stalled behind the manual cut: %v (held %v)", context.Cause(ctx), CutWindowHeld(ctx))
|
||||
}
|
||||
l.capMu.Unlock()
|
||||
select {
|
||||
case err := <-acquired:
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
case <-time.After(5 * time.Second):
|
||||
t.Fatal("the stop never acquired the capture lock")
|
||||
}
|
||||
defer l.capMu.Unlock()
|
||||
if CutWindowHeld(ctx) {
|
||||
t.Fatal("the stop's window is still held after its capture admission")
|
||||
}
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
if !errors.Is(context.Cause(ctx), ErrCutStalled) {
|
||||
t.Fatalf("after admission: %v, want its own window to run out (%v)", context.Cause(ctx), ErrCutStalled)
|
||||
}
|
||||
case <-time.After(5 * time.Second):
|
||||
t.Fatal("the stop's own window never ran after its admission")
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,8 @@ type cutProgressWindow struct {
|
||||
stopped bool
|
||||
sequence uint64
|
||||
changed chan struct{}
|
||||
links cutProgressLinks // windows this window's steps also renew (LinkCutProgress)
|
||||
held bool // a queued owner holds its own stall timer (HoldCutProgressWindow)
|
||||
}
|
||||
|
||||
// WithCutProgressWindow bounds silence, never total cut duration. Nested
|
||||
@@ -48,7 +50,7 @@ func WithCutProgressWindow(ctx context.Context, window time.Duration) (context.C
|
||||
}
|
||||
func (w *cutProgressWindow) expire() {
|
||||
w.mu.Lock()
|
||||
if w.stopped {
|
||||
if w.stopped || w.held {
|
||||
w.mu.Unlock()
|
||||
return
|
||||
}
|
||||
@@ -78,18 +80,111 @@ func reportCompletedCutStep(ctx context.Context) {
|
||||
if w == nil {
|
||||
return
|
||||
}
|
||||
// The step and the snapshot of its links are one critical section on
|
||||
// the link set: a link made concurrently either precedes the step (and
|
||||
// is credited) or follows it (and is not), never a pre-link step.
|
||||
w.links.mu.Lock()
|
||||
var dsts []*cutProgressWindow
|
||||
if w.step() {
|
||||
if cutStepDeliveryHook != nil {
|
||||
cutStepDeliveryHook()
|
||||
}
|
||||
dsts = w.linkedWindowsLocked()
|
||||
}
|
||||
w.links.mu.Unlock()
|
||||
for _, d := range dsts {
|
||||
d.step()
|
||||
}
|
||||
}
|
||||
|
||||
// cutStepDeliveryHook runs between a step and the delivery to its links
|
||||
// (tests only; nil in production).
|
||||
var cutStepDeliveryHook func()
|
||||
|
||||
// CutCaptureAdmitted marks ctx's owner as admitted to the capture lock: a
|
||||
// window held while it was queued (HoldCutProgressWindow) starts now. The
|
||||
// capture paths call it right after acquiring the lock.
|
||||
func CutCaptureAdmitted(ctx context.Context) {
|
||||
w, _ := ctx.Value(cutWindowKey{}).(*cutProgressWindow)
|
||||
if w == nil {
|
||||
return
|
||||
}
|
||||
w.mu.Lock()
|
||||
if w.held && !w.stopped {
|
||||
w.held = false
|
||||
w.last = time.Now()
|
||||
w.timer.Reset(w.window)
|
||||
}
|
||||
w.mu.Unlock()
|
||||
}
|
||||
|
||||
// CutWindowHeld reports whether ctx's window is still held (its owner is
|
||||
// still queued for the capture lock).
|
||||
func CutWindowHeld(ctx context.Context) bool {
|
||||
w, _ := ctx.Value(cutWindowKey{}).(*cutProgressWindow)
|
||||
if w == nil {
|
||||
return false
|
||||
}
|
||||
w.mu.Lock()
|
||||
defer w.mu.Unlock()
|
||||
return w.held && !w.stopped
|
||||
}
|
||||
|
||||
// HoldCutProgressWindow keeps ctx's window from running out while its owner
|
||||
// is queued (a plain detach behind a manual cut, CutTime DetachQ): steps
|
||||
// still raise its sequence, but its own no-progress window starts only at
|
||||
// its capture admission (CutCaptureAdmitted) or the returned release.
|
||||
// Release is idempotent; a context without a window holds nothing.
|
||||
func HoldCutProgressWindow(ctx context.Context) func() {
|
||||
w, _ := ctx.Value(cutWindowKey{}).(*cutProgressWindow)
|
||||
if w == nil {
|
||||
return func() {}
|
||||
}
|
||||
w.mu.Lock()
|
||||
if !w.stopped {
|
||||
w.held = true
|
||||
w.timer.Stop()
|
||||
}
|
||||
w.mu.Unlock()
|
||||
var once sync.Once
|
||||
return func() {
|
||||
once.Do(func() {
|
||||
w.mu.Lock()
|
||||
if w.held && !w.stopped {
|
||||
w.held = false
|
||||
w.last = time.Now()
|
||||
w.timer.Reset(w.window)
|
||||
}
|
||||
w.mu.Unlock()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// step records one completed step on w, renewing it, and reports whether w
|
||||
// was still live.
|
||||
func (w *cutProgressWindow) step() bool {
|
||||
w.mu.Lock()
|
||||
if w.stopped {
|
||||
w.mu.Unlock()
|
||||
return
|
||||
return false
|
||||
}
|
||||
now := time.Now()
|
||||
if w.held {
|
||||
// Queued: the step raises the sequence only; the window is not armed.
|
||||
w.sequence++
|
||||
select {
|
||||
case w.changed <- struct{}{}:
|
||||
default:
|
||||
}
|
||||
w.mu.Unlock()
|
||||
return true
|
||||
}
|
||||
if now.Sub(w.last) >= w.window {
|
||||
w.stopped = true
|
||||
w.timer.Stop()
|
||||
w.mu.Unlock()
|
||||
w.cancel(ErrCutStalled)
|
||||
return
|
||||
return false
|
||||
}
|
||||
w.last = now
|
||||
w.sequence++
|
||||
@@ -99,6 +194,7 @@ func reportCompletedCutStep(ctx context.Context) {
|
||||
}
|
||||
w.timer.Reset(w.window)
|
||||
w.mu.Unlock()
|
||||
return true
|
||||
}
|
||||
|
||||
// CutWindowError preserves the typed silence cause through storage adapters
|
||||
|
||||
@@ -5,3 +5,5 @@ CLI cut time O(C) completed per-object steps; default --timeout60s is inactivity
|
||||
cut memory at most4 manual handles per served volume, each holding a fixed response/context and referenced error; independent of C manualCutHandleLimit=4; terminal retirement only after its own Wc from end; lazy scan of4 slots cut_busy reason handles_full; no eviction, no scheduled handles in-memory cut ID, no persisted receipt; restart loses ID; fixed Stats response retained, not merely an ID CutTime r6 Retire/ReplyLost; handle capacity and lost-reply controls; actual heap bytes not measured
|
||||
cut settlement time O(completed HEAD reads and same-proposal retries); no total cap same W and per-call HEAD bound; failed reads wait the existing100ms retry timer without renewal unanswered settlement at W yields outcome_unknown, never cut_stalled own-proposal read renews only with authority; foreign HEAD terminal without renewal; completed inherited settlement renews once before own barrier; invocation tag binds result CutTime r8c Settle/SettleStall/SettleInherited/NoFalseFailure/OwnResult/NoRetryAfterFence; landed/unapplied/unanswered/inherited/fenced controls; O(1) pending invocation tag; native qualification owed
|
||||
cut API version encoding memory O(B) temporary JSON bytes and raw fields for the existing B-byte cut answer; no object traversal existing response body, no new persistent state or time bound encoding failure yields versioned internal refusal integer version1 stamping at the cut boundary; no client negotiation; newer CLI accepts own/N-1 holders, older CLI refuses newer holders; or legacy synchronous200; unsupported_api_version otherwise (always exit3; HTTP status cannot prove non-admission); integer tokens preserved CutTime r8b response metadata only; wire tests cover progress/terminal/refusal/status and frontier above2^53; allocation bytes not measured
|
||||
plain detach time O(C) completed own steps, or a running manual cut's steps after the link plus one at its end; no total time bound W_detach inactivity (--timeout); optional absolute --deadline; settlement of a lost publish answer runs inside the same window cut_stalled when its own cut is silent; outcome_unknown typed only when settlement completes no read-back for the window (CLI exit 3) own completed steps; linked manual-cut steps after the link; completed settlement read-backs; never scheduled or unrelated progress CutTime r7 Preempt/DetachQ/OtherStep; r8b PublishLost/Settle/SettleStall
|
||||
plain detach memory one reserved handle per served volume beside the four manual handles; independent of C detachHandleLimit=1; same retirement after its own Wc as manual handles cut_busy reason detach_in_progress while a detach handle is live or retained; four manual handles never refuse it in-memory handle id on the cut status route; restart loses it (CLI unknown) TestAStopWithFourLiveManualCutHandlesSucceeds; heap bytes not measured
|
||||
|
@@ -1107,7 +1107,7 @@ Notes:
|
||||
|---|---|---|---|---|---|---|
|
||||
| `INV-CUT-COW-OWNER-001` | Before any read-visible native mutation, a pending candidate has one saving owner; copying/saving collisions wait. The immutable cut buffer is exactly the image at H. | M5 OpenWindow → Copy | `chunk_cut_cow.go` `claim`, `beforeCOWMutation`; Write/WriteBatch/applyEntryV3 pre-publication hooks | `TestCutCOWV3_MutationCompletesWhileEarlierChunkCopyIsHeld`, `TestCutCOWV3_CopyingChunkWaitsButPendingChunkSaves`, `TestCutCOWV3_TwoWritersOneSaveAndCloseJoinsSavedReader`, `TestCutCOWV3_OverlappingRealBatchesPreserveCut` | CutCOW2 BufFrozen/HeadImage; writer/batch multiplicity tested, not modelled | ACTIVE |
|
||||
| `INV-CUT-COW-DRAIN-001` | Terminal invalidation forbids new references; aborting owners release themselves before join. Side cleanup and destructive transitions wait for actual I/O references. Store Close cannot miss first attachment; every Close waits for full shutdown. | M5 Closed/Aborted → Drain; M1 Close/Recover | `chunk_cut_cow.go` `abort`, `join`, `holdChunkDestructive`; `WALStore.Close`; attach capture admission | `TestCutCOWV3_RecoveryAndCloseDrainSavingOwner`, `TestCutCOWV3_CloseJoinsHeldLiveCopy`, `TestCutCOWV3_CloseSnapshotRejectsFirstAttachAndSharesCompletion`, `TestCutCOWV3_DestructiveSnapshotRetriesFirstAttachment`, `TestCutCOWV3_SpillIsEphemeralAndCleanupIsPrefixScoped`, `TestCutCOWV3_ProcessCrashDropsSideAndRestoresSyncedImage` | CutCOW2 SideOnlyInCut, abortNoJoin RED; real lifecycle races tested separately | ACTIVE |
|
||||
| `INV-CUT-PLAIN-DETACH-001` | Plain detach excludes entering/admitted I/O, then seals under the caller context, including a closed idle frontend, with a settle reserve inside that bound. Publication and unknown/fenced settlement remain enforced. Closed frontend handles never reopen; absent/false preserves live policy. | M5 Admit -> PlainStop -> Quiesce | `core/frontend/durable/provider_chunk.go` `detachVolume`; `storage_adapter.go` `stopPlainDetachIfIdle`; `core/host/volume/chunk_control.go` | `TestPlainDetachAfterPrecopyRefusalRequiresIdleFrontend`, `TestPlainDetachSkipsPrecopyCostAdmission`, `TestChunkDetachPlainFieldDispatch`, `TestChunkDetachPlainAdapterAndBusyResponse` ; `TestOfflineSealUsesCallerDeadline`, `TestOfflineSealCallerCancelCanRetry` (`core/frontend/durable/provider_offline_seal_test.go`); `TestChunkPlainDetachUsesCallerDeadline`, `TestChunkPlainDetachRequiresExplicitBound` (`core/host/volume/chunk_offline_seal_test.go`); `TestLayoutPlainDetachThatOutlastsItsBoundAnswersAborted`; also in `core/frontend/durable/provider_plain_detach_test.go`, `core/host/volume/chunk_plain_detach_test.go`, `core/frontend/durable/provider_layout_plain_settle_budget_test.go` | `PlainDetach` `IdleAtStop`; physical byte and HEAD controls remain native | ACTIVE |
|
||||
| `INV-CUT-PLAIN-DETACH-001` | Plain detach excludes entering/admitted I/O, then seals within its handle's window, including a closed idle frontend, with a settle reserve inside that bound. Publication and unknown/fenced settlement remain enforced. Closed frontend handles never reopen; absent/false preserves live policy. | M5 Admit -> PlainStop -> Quiesce | `core/frontend/durable/provider_chunk.go` `detachVolume`; `storage_adapter.go` `stopPlainDetachIfIdle`; `core/host/volume/chunk_control.go` | `TestPlainDetachAfterPrecopyRefusalRequiresIdleFrontend`, `TestPlainDetachSkipsPrecopyCostAdmission`, `TestChunkDetachPlainFieldDispatch`, `TestChunkDetachPlainAdapterAndBusyResponse` ; `TestOfflineSealUsesCallerDeadline`, `TestOfflineSealCallerCancelCanRetry` (`core/frontend/durable/provider_offline_seal_test.go`); `TestChunkPlainDetachRequiresExplicitBound` (`core/host/volume/chunk_offline_seal_test.go`); `TestLayoutPlainDetachThatOutlastsItsBoundAnswersAborted`; also in `core/frontend/durable/provider_plain_detach_test.go`, `core/host/volume/chunk_plain_detach_test.go`, `core/frontend/durable/provider_layout_plain_settle_budget_test.go` | `PlainDetach` `IdleAtStop`; physical byte and HEAD controls remain native | ACTIVE |
|
||||
| `INV-STOP-FLIP-CUTOFF-001` | A detach logs 'admission closed at' = the backend's flip, recorded under its mu just after operational goes false: an I/O whose gate ran before it is admitted and drained by StopIO; every gate after it refuses. Logged only on a successful stop. | M5 detach (StopIO / plain stop / pre-copy TryStopIO) | `core/frontend/durable/storage_adapter.go` `setOperationalLocked`, `TryStopIO`, `StopFlipAt`; `provider_chunk.go` detach log | `TestStopFlipIsTheAdmissionCutoff`, `TestLiveDetachLogsWhenAdmissionClosed` (`core/frontend/durable/stopio_began_log_test.go`) | — (no state machine change; the cutoff test is the proof form) | ACTIVE |
|
||||
| `INV-WS-FREEZE-ACCOUNTING-001` | Frozen detach validates its origin and rechecks elapsed + known estimate against 5 s; override is explicit. Storage reports its admission estimate and quiesce slack using same-host monotonic durations. Stale advice is rechecked before upload; override and actual elapsed remain visible. | G frozen detach (M5) | `core/storage/chunk_frozen_budget.go` `WithFrozenDetach`, `admitFrozenAt`; `core/frontend/durable/provider_chunk.go` `DetachVolumeFrozen` | `TestFrozenBudgetInputValidation`, `TestFrozenBarrierConsumesElapsedWithoutNewAllowance`, `TestFrozenFinalOverrideIsVisibleEvenWhenEstimateFits`, `TestFrozenValidationPrecedesAnyProviderAccess`; `TestCandidateTailReportsCompleteFrozenBudget`, `TestFrozenRefusalRetainsUnknownCompleteEstimate`, `TestChunkFrozenRequestRefusalCarriesNoBudget`, `TestFrozenDrainObservationPreservesKnownBeforeReasonMutation`, `TestFrozenSaturatedTailRemainsKnownButNonActionable` | `FrozenDetachBudget` `BudgetAtAdmission`, `OverrideVisible`, `ReportSlackSound` | ACTIVE |
|
||||
| `INV-WS-FREEZE-REFUSAL-001` | HTTP 400 `invalid_freeze_budget`, retryable=false, is returned only by frozen-detach request validation, before any provider admission or mutation. | M5 frozen detach admission: [*] → Refused (invalid frozen request) | `core/host/volume/chunk_control.go` `handleChunkDetach`, `chunkErrorCode`; `core/storage/chunk_frozen_budget.go` `WithFrozenDetach`; `core/frontend/durable/provider_chunk.go` `DetachVolumeFrozen` | `TestChunkFrozenValidationHasDistinctPreMutationCode` (`core/host/volume/chunk_frozen_budget_test.go`); `TestFrozenValidationPrecedesAnyProviderAccess` (`core/frontend/durable/frozen_validation_before_access_test.go`) | — (wire classification; validation/admission guards unchanged) | ACTIVE |
|
||||
@@ -1184,14 +1184,21 @@ Notes:
|
||||
| `INV-CUT-PUBLISH-SETTLE-001` | Pending proposals carry invocation tags. Inherited settlement renews W and sequence once before the own barrier, never supplying its result. Own read-back progress renews; a foreign HEAD terminates without renewal. Settlement silence is unknown, never cut_stalled. | M5 PublishLost/Settle/SettleStall | `chunk_manual_cut.go` `captureManualCut`; `chunk_layer.go` `resolvePendingWithProgress`; `chunkObserveCut` | `TestManualCutSettlesLostPublicationWithoutUploadingAgain`, `TestManualCutUnansweredSettlementIsUnknownNeverStalled`, `TestManualCutForeignHeadFenceTerminatesSettlement`, `TestManualCutInheritedPublicationCannotReplaceItsOwnBarrier`, `TestManualCutPendingProposalsHaveDistinctInvocationTags`, `TestManualCutInheritedSettlementRenewsBeforeOwnWorkExceedsTheWindow`, `TestCutCLISettlementUnknownEndsWithoutRepostingOrWaitingAnotherWindow` | CutTime r8c NoFalseFailure, OwnResult, NoRetryAfterFence, SettleInherited; supplied BFS 46/46 | STUB |
|
||||
| `INV-CUT-PROGRESS-WINDOW-001` | A cut has no total cap. Only completed own-plan upload/verification/adoption steps renew W; failed, conflicted or timed-out calls do not. Each call has a deadline. Silence before uncertain publication yields cut_stalled and retains work. Uncertain publication follows INV-CUT-PUBLISH-SETTLE-001. | M5 Copy/Upload/Verify/Publish | `core/storage/cut_progress_window.go`; `core/storage/chunk_upload.go`; `core/frontend/chunkstore/cut_verification_window.go`; `layout.allOwnedBySession`; `DurableProvider.chunkCutContext`; `StatusServer.handleChunkCut` | `TestManualCutProgressingBeyondFiveMinutesFinishesWithOneAdmission`, `TestManualCutCallTimeoutRetriesWithoutEndingTheWindow`, `TestManualCutSilenceReturnsTypedStallAtItsWindow`, `TestManualCutStallRetryKeepsProgressAndReportsAttemptCounters`, `TestManualCutTimedOutCallsDoNotRenewProgress` (`core/host/volume/cut_progress_window_test.go`); `TestCutVerification262144ObjectsAfterUploadRenewsTheWindow`, `TestCutVerificationConflictedAdoptionsDoNotRenewTheWindow`, `TestCutVerificationTimeoutRetriesTheIndividualLookup`, `TestCutVerificationRetriesTheProductionGRPCDeadline` (`core/frontend/chunkstore/cut_verification_window_test.go`); `TestCutSilenceWindowIncludesUploadWithBackgroundCaller`; `TestCutWindowErrorPreservesCallerDeadlineAfterWorkerCancellation` | CutWindow r1 Complete/CallTimeout/Fail/Tick/Retry/Publish; CutTime r6 Complete, own per-object set; supplied 30/30 | ACTIVE |
|
||||
| `INV-CLI-CUT-PROGRESS-WINDOW-001` | The CLI POSTs once, then polls its in-memory cut ID. Only a strictly rising own sequence renews Wc. Silence, restart or the absolute deadline returns unknown; cut_stalled returns failure. Admission cut_busy is retryable. No re-POST or persisted cut receipt. | Cut CLI Admission/Busy/Polling/Success/Failed/Unknown | `cmd/sw-block/cut_progress_poll.go` | `TestCutCLIStartsOnceThenOnlyPollsTheReturnedID`, `TestCutCLIProgressingFor46MinutesPollsOneCutID`, `TestCutCLIRestartLosesTheHandleWithoutClaimingFailure`, `TestCutCLIBusyIsDistinctAndDoesNotStartAnotherCut`, `TestCutCLIUnchangedSequenceCannotRenewItsWindow`, `TestCutCLIAbsoluteDeadlineEndsAProgressingCut`, `TestCutCLIUnansweredRequestEndsUnknownWithinItsOwnWindow`, `TestCutCLIForeignSequenceCannotRenewItsWindow`, `TestCutCLIStalledAnswerIsAFailure` (`cmd/sw-block/cut_progress_poll_test.go`); `TestOpsChunk_OversizedResponseIsRefused`, `TestOpsChunk_LostResultFailsTheCommand`, `TestOpsChunk_HTTPCommandsSendSpecRequests`, `TestOpsChunk_HTTPFailureIsTyped`, `TestOpsChunk_ErrorsAreJSONOnStdout` (`cmd/sw-block/chunk_output_test.go`, `cmd/sw-block/chunk_test.go`) | CutTime r6 458-467 Poll/InProgress/CliSilent/CliGiveUp/HolderRestart/Retire/ReplyLost; supplied BFS 30/30 in docs/spec/cuttime | STUB |
|
||||
| `INV-CUT-DETACH-HANDLE-001` | An observed plain detach takes one reserved handle beside the four manual ones, so four live manual handles never refuse it. While it is live, a new manual cut is refused cut_busy. | M5 plain detach admission / handle | `core/host/volume/plain_detach_handle.go` `startPlainDetach`, `settlePlainDetach`; `core/frontend/durable/provider_chunk.go` `retryUnknownDetach`; `cmd/sw-block/cut_progress_poll.go` `chunkObserveHandle`; `core/storage/chunk_preempt.go` `PreemptScheduledCapture`, `LinkCutProgress`; `core/frontend/durable/provider_preempt.go` | `TestAStopWithFourLiveManualCutHandlesSucceeds`, `TestAStopDuringARunningManualCutWaitsAndKeepsRising`, `TestAStopPreemptsARunningScheduledCut`, `TestAnObservedPlainDetachIsPolledOnTheCutStatusRoute`, `TestAStopWithALostPublishAnswerSettlesOnTheSameHandle`, `TestAStopWhoseSettlementMakesNoProgressEndsTypedUnknown`, `TestAStopWhoseSettlementReadBacksCompleteOutlivesItsWindow`, `TestAStopQueuedBehindASilentManualCutDoesNotStall`, `TestAManualCutIsRefusedWhileAStopIsLive`, `TestAStopQueuedBehindAManualCutStallsOnASilentFinalCut` (`core/host/volume/plain_detach_handle_test.go`); `TestChunkPlainDetachWindowOutOfRangeIsRefusedBeforeWork`, `TestChunkPlainDetachAnswersCarryTheCutAPIVersion` (`core/host/volume/chunk_plain_detach_test.go`); `TestOpsChunkPlainDetachHandleEndedUnknownIsReportedAtOnce` (`cmd/sw-block/chunk_plain_test.go`); `TestPreemptCancelsOnlyAScheduledCaptureHolder`, `TestLinkedCutProgressCreditsOnlyStepsAfterTheLink`, `TestALinkedStepRenewsTheWaitingWindow`, `TestALinkMadeDuringAStepIsNotCreditedWithIt`, `TestAScheduledHolderIsPreemptibleTheMomentItOwnsTheLock`, `TestAQueuedStopsWindowStartsAtItsCaptureAdmission` (`core/storage/chunk_preempt_test.go`); `TestOpsChunkPlainDetachFirstAnswerUnknownWithItsIDIsUnknown` (`cmd/sw-block/chunk_plain_test.go`) | CutTime r7 Preempt/DetachQ/OtherStep/OtherEnd, NoManualPreempt, ProgressKept; CutTime r8b PublishLost/Settle/SettleStall, NoFalseFailure, CliUnknownOnlySilent; r8d detach priority (NoQueuedStall, mutant manual_overtakes; BFS 48/48) | ACTIVE |
|
||||
| `INV-CUT-DETACH-PREEMPT-001` | With no manual cut running, an observed plain detach preempts a scheduled capture (whose staged uploads are reused) and never a manual one. | M5 plain detach admission / handle | `core/host/volume/plain_detach_handle.go` `startPlainDetach`, `settlePlainDetach`; `core/frontend/durable/provider_chunk.go` `retryUnknownDetach`; `cmd/sw-block/cut_progress_poll.go` `chunkObserveHandle`; `core/storage/chunk_preempt.go` `PreemptScheduledCapture`, `LinkCutProgress`; `core/frontend/durable/provider_preempt.go` | `TestAStopWithFourLiveManualCutHandlesSucceeds`, `TestAStopDuringARunningManualCutWaitsAndKeepsRising`, `TestAStopPreemptsARunningScheduledCut`, `TestAnObservedPlainDetachIsPolledOnTheCutStatusRoute`, `TestAStopWithALostPublishAnswerSettlesOnTheSameHandle`, `TestAStopWhoseSettlementMakesNoProgressEndsTypedUnknown`, `TestAStopWhoseSettlementReadBacksCompleteOutlivesItsWindow`, `TestAStopQueuedBehindASilentManualCutDoesNotStall`, `TestAManualCutIsRefusedWhileAStopIsLive`, `TestAStopQueuedBehindAManualCutStallsOnASilentFinalCut` (`core/host/volume/plain_detach_handle_test.go`); `TestChunkPlainDetachWindowOutOfRangeIsRefusedBeforeWork`, `TestChunkPlainDetachAnswersCarryTheCutAPIVersion` (`core/host/volume/chunk_plain_detach_test.go`); `TestOpsChunkPlainDetachHandleEndedUnknownIsReportedAtOnce` (`cmd/sw-block/chunk_plain_test.go`); `TestPreemptCancelsOnlyAScheduledCaptureHolder`, `TestLinkedCutProgressCreditsOnlyStepsAfterTheLink`, `TestALinkedStepRenewsTheWaitingWindow`, `TestALinkMadeDuringAStepIsNotCreditedWithIt`, `TestAScheduledHolderIsPreemptibleTheMomentItOwnsTheLock`, `TestAQueuedStopsWindowStartsAtItsCaptureAdmission` (`core/storage/chunk_preempt_test.go`); `TestOpsChunkPlainDetachFirstAnswerUnknownWithItsIDIsUnknown` (`cmd/sw-block/chunk_plain_test.go`) | CutTime r7 Preempt/DetachQ/OtherStep/OtherEnd, NoManualPreempt, ProgressKept; CutTime r8b PublishLost/Settle/SettleStall, NoFalseFailure, CliUnknownOnlySilent; r8d detach priority (NoQueuedStall, mutant manual_overtakes; BFS 48/48) | ACTIVE |
|
||||
| `INV-CUT-DETACH-QUEUE-001` | Behind a running manual cut, the detach waits with its own window held: only that cut's steps after the link, plus one at its end, raise its sequence, and its own window starts at its capture admission. | M5 plain detach admission / handle | `core/host/volume/plain_detach_handle.go` `startPlainDetach`, `settlePlainDetach`; `core/frontend/durable/provider_chunk.go` `retryUnknownDetach`; `cmd/sw-block/cut_progress_poll.go` `chunkObserveHandle`; `core/storage/chunk_preempt.go` `PreemptScheduledCapture`, `LinkCutProgress`; `core/frontend/durable/provider_preempt.go` | `TestAStopWithFourLiveManualCutHandlesSucceeds`, `TestAStopDuringARunningManualCutWaitsAndKeepsRising`, `TestAStopPreemptsARunningScheduledCut`, `TestAnObservedPlainDetachIsPolledOnTheCutStatusRoute`, `TestAStopWithALostPublishAnswerSettlesOnTheSameHandle`, `TestAStopWhoseSettlementMakesNoProgressEndsTypedUnknown`, `TestAStopWhoseSettlementReadBacksCompleteOutlivesItsWindow`, `TestAStopQueuedBehindASilentManualCutDoesNotStall`, `TestAManualCutIsRefusedWhileAStopIsLive`, `TestAStopQueuedBehindAManualCutStallsOnASilentFinalCut` (`core/host/volume/plain_detach_handle_test.go`); `TestChunkPlainDetachWindowOutOfRangeIsRefusedBeforeWork`, `TestChunkPlainDetachAnswersCarryTheCutAPIVersion` (`core/host/volume/chunk_plain_detach_test.go`); `TestOpsChunkPlainDetachHandleEndedUnknownIsReportedAtOnce` (`cmd/sw-block/chunk_plain_test.go`); `TestPreemptCancelsOnlyAScheduledCaptureHolder`, `TestLinkedCutProgressCreditsOnlyStepsAfterTheLink`, `TestALinkedStepRenewsTheWaitingWindow`, `TestALinkMadeDuringAStepIsNotCreditedWithIt`, `TestAScheduledHolderIsPreemptibleTheMomentItOwnsTheLock`, `TestAQueuedStopsWindowStartsAtItsCaptureAdmission` (`core/storage/chunk_preempt_test.go`); `TestOpsChunkPlainDetachFirstAnswerUnknownWithItsIDIsUnknown` (`cmd/sw-block/chunk_plain_test.go`) | CutTime r7 Preempt/DetachQ/OtherStep/OtherEnd, NoManualPreempt, ProgressKept; CutTime r8b PublishLost/Settle/SettleStall, NoFalseFailure, CliUnknownOnlySilent; r8d detach priority (NoQueuedStall, mutant manual_overtakes; BFS 48/48) | ACTIVE |
|
||||
| `INV-CUT-DETACH-SETTLE-001` | A lost publish answer is settled on the same handle inside its window: each completed read-back renews the window and raises the sequence; a settlement without a completed read-back for the window ends outcome_unknown, which the CLI reports at once. | M5 plain detach admission / handle | `core/host/volume/plain_detach_handle.go` `startPlainDetach`, `settlePlainDetach`; `core/frontend/durable/provider_chunk.go` `retryUnknownDetach`; `cmd/sw-block/cut_progress_poll.go` `chunkObserveHandle`; `core/storage/chunk_preempt.go` `PreemptScheduledCapture`, `LinkCutProgress`; `core/frontend/durable/provider_preempt.go` | `TestAStopWithFourLiveManualCutHandlesSucceeds`, `TestAStopDuringARunningManualCutWaitsAndKeepsRising`, `TestAStopPreemptsARunningScheduledCut`, `TestAnObservedPlainDetachIsPolledOnTheCutStatusRoute`, `TestAStopWithALostPublishAnswerSettlesOnTheSameHandle`, `TestAStopWhoseSettlementMakesNoProgressEndsTypedUnknown`, `TestAStopWhoseSettlementReadBacksCompleteOutlivesItsWindow`, `TestAStopQueuedBehindASilentManualCutDoesNotStall`, `TestAManualCutIsRefusedWhileAStopIsLive`, `TestAStopQueuedBehindAManualCutStallsOnASilentFinalCut` (`core/host/volume/plain_detach_handle_test.go`); `TestChunkPlainDetachWindowOutOfRangeIsRefusedBeforeWork`, `TestChunkPlainDetachAnswersCarryTheCutAPIVersion` (`core/host/volume/chunk_plain_detach_test.go`); `TestOpsChunkPlainDetachHandleEndedUnknownIsReportedAtOnce` (`cmd/sw-block/chunk_plain_test.go`); `TestPreemptCancelsOnlyAScheduledCaptureHolder`, `TestLinkedCutProgressCreditsOnlyStepsAfterTheLink`, `TestALinkedStepRenewsTheWaitingWindow`, `TestALinkMadeDuringAStepIsNotCreditedWithIt`, `TestAScheduledHolderIsPreemptibleTheMomentItOwnsTheLock`, `TestAQueuedStopsWindowStartsAtItsCaptureAdmission` (`core/storage/chunk_preempt_test.go`); `TestOpsChunkPlainDetachFirstAnswerUnknownWithItsIDIsUnknown` (`cmd/sw-block/chunk_plain_test.go`) | CutTime r7 Preempt/DetachQ/OtherStep/OtherEnd, NoManualPreempt, ProgressKept; CutTime r8b PublishLost/Settle/SettleStall, NoFalseFailure, CliUnknownOnlySilent; r8d detach priority (NoQueuedStall, mutant manual_overtakes; BFS 48/48) | ACTIVE |
|
||||
| `INV-CLI-VOLUME-OBSERVED-001` | `sw-block volume stop` observes its cut and `sw-block volume backup` its snapshot operation: one admission, then reads of the same handle. A terminal answer counts only for its own cut or operation, in a supported cut API version. | Cut CLI Admission/Polling/Unknown (volume verbs) | `cmd/sw-block/volume_verbs.go` `volumeCut`; `cmd/sw-block/volume_backup.go` `volumeSnapshot`, `observeSnapshotOperation` | `TestVolumeStopObservesALongCutByItsID`, `TestVolumeStopGivesUpUnknownWhenItsCutStopsProgressing`, `TestVolumeStopAcceptsOnlyItsOwnCutInItsProtocol` (`cmd/sw-block/volume_verbs_test.go`); `TestVolumeBackupWaitsOnTheSnapshotOperation`, `TestVolumeBackupStalledOperationIsUnknown`, `TestVolumeBackupSynchronousHolderIsUnsupported`, `TestVolumeBackupOperationHandleLostSilentOrForeignIsUnknown` (`cmd/sw-block/volume_backup_test.go`); `TestChunkSnapshotSynchronousHolderIsUnsupported` (`cmd/sw-block/chunk_request_loop_test.go`) | CutTime r7 Poll/InProgress/CliSilent/CliGiveUp | ACTIVE |
|
||||
| `INV-CLI-VOLUME-WAIT-001` | For the stop only a rise of its cut's sequence renews --timeout (plus slack); the backup bounds each read and its operation ends itself (stalled). Silence, an unknown handle or --deadline is an unknown outcome; the stop then leaves the unit running. | Cut CLI Admission/Polling/Unknown (volume verbs) | `cmd/sw-block/volume_verbs.go` `volumeCut`; `cmd/sw-block/volume_backup.go` `volumeSnapshot`, `observeSnapshotOperation` | `TestVolumeStopObservesALongCutByItsID`, `TestVolumeStopGivesUpUnknownWhenItsCutStopsProgressing`, `TestVolumeStopAcceptsOnlyItsOwnCutInItsProtocol` (`cmd/sw-block/volume_verbs_test.go`); `TestVolumeBackupWaitsOnTheSnapshotOperation`, `TestVolumeBackupStalledOperationIsUnknown`, `TestVolumeBackupSynchronousHolderIsUnsupported`, `TestVolumeBackupOperationHandleLostSilentOrForeignIsUnknown` (`cmd/sw-block/volume_backup_test.go`); `TestChunkSnapshotSynchronousHolderIsUnsupported` (`cmd/sw-block/chunk_request_loop_test.go`) | CutTime r7 Poll/InProgress/CliSilent/CliGiveUp | ACTIVE |
|
||||
| `INV-CLI-VOLUME-SYNC-001` | The stop accepts an older holder's valid initial unversioned synchronous answer for its own volume (`INV-CUT-API-VERSION-001`); the backup reports a synchronous answer as an unsupported holder, naming the upgrade. | Cut CLI Admission/Polling/Unknown (volume verbs) | `cmd/sw-block/volume_verbs.go` `volumeCut`; `cmd/sw-block/volume_backup.go` `volumeSnapshot`, `observeSnapshotOperation` | `TestVolumeStopObservesALongCutByItsID`, `TestVolumeStopGivesUpUnknownWhenItsCutStopsProgressing`, `TestVolumeStopAcceptsOnlyItsOwnCutInItsProtocol` (`cmd/sw-block/volume_verbs_test.go`); `TestVolumeBackupWaitsOnTheSnapshotOperation`, `TestVolumeBackupStalledOperationIsUnknown`, `TestVolumeBackupSynchronousHolderIsUnsupported`, `TestVolumeBackupOperationHandleLostSilentOrForeignIsUnknown` (`cmd/sw-block/volume_backup_test.go`); `TestChunkSnapshotSynchronousHolderIsUnsupported` (`cmd/sw-block/chunk_request_loop_test.go`) | CutTime r7 Poll/InProgress/CliSilent/CliGiveUp | ACTIVE |
|
||||
| `INV-CUT-TIMER-RESTART-001` | A successful cut of any kind restarts the periodic timer, which runs on in-process monotonic time (a restart starts a fresh schedule; wall-clock steps move nothing). | M5 periodic trigger (before Admit) | `core/frontend/durable/provider_chunk.go` `chunkLoop` | `TestWALStoreChunk_ExplicitCutRestartsTheTimer`, `TestWALStoreChunk_ExplicitCutOverlappingTheTimerRestartsIt` (`core/frontend/durable/provider_chunk_sched_test.go`); `TestCutPolicy_TimerRunsOnObservationTime`, `TestCutPolicy_StaggerPreservesExplicitTimerReset` (`core/frontend/durable/cut_policy_test.go`) | — | ACTIVE |
|
||||
| `INV-CUT-TIMER-SKIP-001` | A periodic cut decided from an older last cut is skipped under the capture lock: no automatic cut follows another within the interval. | M5 periodic trigger (before Admit) | `core/storage/chunk_periodic_cut.go` `CutUnlessCutSince`; `core/frontend/durable/provider_chunk.go` `chunkLoop` | `TestChunkPeriodicCut_SkipsAfterANewerCut`, `TestChunkPeriodicCut_SkipsANewerCutWithAnOlderStamp` (`core/storage/chunk_periodic_cut_test.go`); `TestWALStoreChunk_ExplicitCutOverlappingTheTimerRestartsIt` (`core/frontend/durable/provider_chunk_sched_test.go`) | — | ACTIVE |
|
||||
| `INV-CUT-TIMER-SLOT-WAIT-001` | A periodic cut refused for held host slots, pending urgent work or an earlier ticket is a wait, not a failure: no backoff or minimum spacing; it retries at the next poll in ticket order, and status reports the wait until any later cut succeeds. Other errors keep the backoff. | M5 periodic trigger (before Admit) | `core/frontend/durable/provider_chunk.go` `cutPolicy.after`, `chunkLoop`; `core/hostlimit/limiter.go` `ErrSlotsHeld` | `TestCutPolicy_HostSlotBusyIsAWaitNotAFailure`, `TestCutPolicy_SuccessDuringSlotWaitEndsTheWait`, `TestCutWaitSlot_StatusEndsTheWaitAfterALaterCut`, `TestCutPolicy_TicketOrderWaitBound` (`core/frontend/durable/cut_policy_test.go`); `TestTimerCutRunsSoonAfterHostSlotFrees`, `TestSlotWaitEndsWithASuccessfulDetachSeal` (`core/frontend/durable/host_slot_wait_test.go`); `TestAdmitClosedDuringPoolAcquisitionIsRevoked` (`core/hostlimit/limiter_test.go`) | — | ACTIVE |
|
||||
| `INV-SNAPSHOT-ANSWER-COUNT-001` | Newly produced snapshot creation and listing answers omit the uncomputed chunk count; no manifest scan is added to answer a snapshot. | M9 snapshot answer projection (no transition change) | `core/frontend/chunkstore/control_types.go`, `api.go`; `core/host/volume/chunk_control.go` | `TestSnapshotAfter200MiBWritesOmitsUncomputedChunkCount` (`core/host/volume/snapshot_chunk_count_test.go`) | NONE (pure projection of the published snapshot; no authority or persisted format change) | STUB |
|
||||
| `INV-CLI-CATALOG-ERROR-001` | The chunk CLI reports filer/master transport failures as retryable remote_unavailable (exit 1), including census, dial, resolve and read failures; configuration refusals stay distinct. An absent v1.1 delete reports snapshot_not_found; its not_found receipt stays unchanged. | M9 client error projection; M4 census refusal, no transition change | `cmd/sw-block/chunk_transport.go` `chunkTransportFailure`; `cmd/sw-block/chunk.go` `chunkResult`; `cmd/sw-block/catalog_snapshot_operation.go` `catalogSnapshotDeleteRefusal`; `core/frontend/chunkstore/single_filer.go` `CheckSingleFiler`; `core/frontend/chunkstore/layout/delete.go` `RunMarkDeleting` | `TestOpsChunkTransportFailureMatrix`, `TestOpsChunkVerifyUnreachableCensusPreservesTransport`, `TestCheckSingleFilerKeepsTransportCause`; `TestOpsChunkCatalogUnavailableIsTyped`, `TestCatalogTransportClassificationKeepsDefiniteAnswers`, `TestSnapshotDeleteAbsentCLIUsesContractCodeAndKeepsReceipt` | SnapOps.Poll; r2.972 | STUB |
|
||||
| `INV-CLI-CHUNK-LOOP-001` | Above the per-request bound, sw-block ops chunk snapshot\|detach repeats the SAME request (same name and request id) only after a retryable or outcome_unknown answer. Manual cut uses the separate one-POST/read-only-poll contract. | client (no state machine): the CLI side of M5 requests | `cmd/sw-block/chunk_loop.go` `chunkPostLoop`; `cmd/sw-block/chunk.go` `chunkPostUntil` | `TestChunkSnapshotRepeatsTimedOutRequestsWithTheSameBody`, `TestChunkSnapshotLoopReusesTheGeneratedRequestID`, `TestChunkLoopRepeatsAnOutcomeUnknownNotMarkedRetryable` (`cmd/sw-block`) | — | ACTIVE |
|
||||
| `INV-CLI-CHUNK-LOOP-001` | Above the per-request bound, sw-block ops chunk snapshot\|detach repeats the SAME request (same name and request id) only after a retryable or outcome_unknown answer. Manual cut and plain detach use the separate one-POST/read-only-poll contract. | client (no state machine): the CLI side of M5 requests | `cmd/sw-block/chunk_loop.go` `chunkPostLoop`; `cmd/sw-block/chunk.go` `chunkPostUntil` | `TestChunkSnapshotRepeatsTimedOutRequestsWithTheSameBody`, `TestChunkSnapshotLoopReusesTheGeneratedRequestID`, `TestChunkLoopRepeatsAnOutcomeUnknownNotMarkedRetryable` (`cmd/sw-block`) | — | ACTIVE |
|
||||
| `INV-CLI-CHUNK-LOOP-002` | Above the per-request bound, sw-block ops chunk snapshot\|detach stops at the first definite answer (success or non-retryable refusal). | client (no state machine): the CLI side of M5 cut requests | `cmd/sw-block/chunk_loop.go` `chunkPostLoop` | `TestChunkLoopStopsOnANonRetryableRefusal`, `TestChunkDetachOutcomeUnknownSettles` (`cmd/sw-block`) | — | ACTIVE |
|
||||
| `INV-CLI-CHUNK-LOOP-003` | Detach and synchronous snapshot admission obey a positive total --timeout. Async snapshot observation keeps the same ID with bounded calls and no total deadline. Manual cut uses the separate inactivity-window contract. | client (no state machine): the CLI side of M5 cut requests | `cmd/sw-block/chunk_loop.go` `chunkPostLoop`; `cmd/sw-block/chunk.go` `chunkPostUntil` | `TestChunkLoopEndsAtTheTimeout`, `TestChunkLoopHeldProgressReadSendsNoRequestAfterTheTimeout`, `TestChunkLoopSlowAnswersAreBoundedByTheTimeout`, `TestChunkNonPositiveTimeoutIsRefused` (`cmd/sw-block`) | — | ACTIVE |
|
||||
| `INV-CLI-CHUNK-LOOP-003` | Non-plain detach and snapshot admission obey a positive total --timeout. Snapshot observation keeps the same ID with bounded calls and no total deadline. Manual cut and plain detach use the separate inactivity-window contract. | client (no state machine): the CLI side of M5 cut requests | `cmd/sw-block/chunk_loop.go` `chunkPostLoop`; `cmd/sw-block/chunk.go` `chunkPostUntil` | `TestChunkLoopEndsAtTheTimeout`, `TestChunkLoopHeldProgressReadSendsNoRequestAfterTheTimeout`, `TestChunkLoopSlowAnswersAreBoundedByTheTimeout`, `TestChunkNonPositiveTimeoutIsRefused` (`cmd/sw-block`) | — | ACTIVE |
|
||||
| `INV-CLI-CHUNK-LOOP-004` | Above the per-request bound, a sw-block ops chunk snapshot\|detach request that ended before its own deadline is repeated only after a backoff (no hot loop). | client (no state machine): the CLI side of M5 cut requests | `cmd/sw-block/chunk_loop.go` `chunkPostLoop` | `TestChunkLoopPauseDoublesToItsCap`, `TestChunkLoopEndsAtTheTimeout` (`cmd/sw-block`) | — | ACTIVE |
|
||||
Cut-window wording is split between the short ledger statement and the detailed transition/grid rows: own-plan completion is counted once per object per attempt. This does not weaken conflict nonrenewal or cancellation, fencing and admission authority. The legacy CLI total-timeout rows exclude manual cut because it now has its own observation contract.
|
||||
|
||||
@@ -1410,7 +1417,7 @@ Notes:
|
||||
| `INV-SNAPK-SNAP-DELETE-001` | A named snapshot leaves HEAD by one conditional update, refused while it has dependents; the automatic delete (retention) also refuses a snapshot pinned at its time. | M9 idle → idle | `core/frontend/chunkstore/layout` `snapshots.go` `Head.DeleteSnapshot`, `Head.RetireSnapshot` | `TestDeleteSnapshot_Closure`, `TestRetireSnapshot_Closure`, `TestRunRetireSnapshot_InterruptAtEveryStep` | — (the snapshot kernel model is not in this repository) | ACTIVE |
|
||||
| `INV-SNAP-OP-RECEIPT-001` | A snapshot operation receipt survives reopening its volume store; changed intent is refused, terminal outcomes are immutable, and a stale owner or revision cannot advance the receipt. | M9 operation receipt | `LayoutStore.CreateSnapshotOperation`, `AdvanceSnapshotOperation` (create coupling, process-owned executor and compact index wired; native qualification pending) | `TestSnapshotOperationReceiptSurvivesReopenAndRejectsChangedIntent`, `TestSnapshotOperationStallReadmissionFencesOldOwner`, `TestSnapshotOperationSplitPublishReadmissionSettlesOneBinding` | SnapOps rows 211–219 and index-first rows 231–240; native qualification pending | STUB |
|
||||
| `INV-SNAP-OP-TERMINAL-WRITERS-001` | Create success settles a HEAD binding; create refusal is a pre-provider HEAD conflict. An initial-absence delete records not_found and can never execute. Provider failures never create terminal refusal. | M9 operation terminal outcome | `LayoutStore.SettleSnapshotOperationFromHead`, `chunkControl.snapshotOperationAttempt`, `refuseInitiallyAbsentDelete` | `TestSnapshotOperationTerminalWriterEnumeration`, `TestSnapshotOperationAppliedAnswerFailureNeverBecomesRefused`, `TestSnapshotOperationFencedFailurePreservesPublishedBinding`, `TestSnapshotOperationUnknownAuthorityLossKeepsReceiptForReadmission`, `TestSnapshotDeleteInitiallyAbsentIsImmutableRefusal` | SnapDelete.Admit; SnapOps row 218 and index-first rows 231–240 | STUB |
|
||||
| `INV-SNAP-OP-WORKER-001` | A synchronous retry of an in-flight operation reads its receipt and replays a terminal outcome or refuses retryably, without starting another provider attempt. Changed intent still refuses before work. | M9 operation executor | `chunkControl.Snapshot`, `snapshotOperationInFlight`, process-local `opJobs` | `TestSnapshotOperationSynchronousRetryDoesNotDuplicateAsyncWorker` | SnapOps.Start; complete executor qualification pending | STUB |
|
||||
| `INV-SNAP-OP-WORKER-001` | Retired with the synchronous snapshot answer: a snapshot is admitted only as an operation and read on its handle, so no synchronous retry replays an in-flight one. | M9 operation executor | — | — | — | ARCHIVED |
|
||||
| `INV-SNAP-OP-CAPACITY-001` | At 4096 nonterminal receipts, new snapshot-operation admission refuses retryably without a record; retained accepted and stalled operations still replay after reopening. | M9 operation admission | `LayoutStore.CreateSnapshotOperation`, compact index CAS | `TestSnapshotOperationRetirementFullPendingRefusesWithoutLosingReceipt` | SnapOps index-first rows 231–240; native qualification pending | STUB |
|
||||
| `INV-SNAP-OP-CONCURRENT-CAPACITY-001` | Concurrent admissions through independent volume stores share the durable 4096-record limit; with 4095 pending receipts, only one new request is admitted. | M9 operation admission | `LayoutStore.CreateSnapshotOperation`, `writeOperationIndex` | `TestSnapshotOperationRetirementConcurrentAdmissionsShareLastSlot` | SnapOps index-first rows 231–240 | STUB |
|
||||
| `INV-SNAP-OP-TORN-INTENT-001` | An admission interrupted before its receipt file persists retains the original intent across reopening; a changed retry refuses and the same intent can repair its receipt without executing work. | M9 operation admission | `LayoutStore.CreateSnapshotOperation`, `repairOperationFromBinding` | `TestSnapshotOperationTornAdmissionKeepsOriginalIntent`, `TestSnapshotOperationTornAdmissionWithAbsentHEADRefuses`, `TestSnapshotOperationUnknownIndexAnswerDoesNotAllocateTwice` | SnapOps.TornAdmit/Send; rows 231–240 | STUB |
|
||||
@@ -1435,7 +1442,7 @@ Notes:
|
||||
| `INV-LIST-STAGE-RT-001` | Each list staging attempt gives its Stat, HEAD check and object write one 30 s deadline established before reading HEAD. An earlier caller deadline wins; a renewed attempt requires a fresh HEAD check. | VolDelSweep r3 Stage / Land, RT = 30 s | `layout/list_chain.go` `StageListPage`; `layout/delete_intent.go` `StageSnapshotDeletePage`, `adoptDeleteIntentPage` | `TestListStagingWriteDeadlineStartsAtItsOwnHeadCheck`, `TestListStagingHonorsEarlierParentDeadline`, `TestListStagingAdoptionRetryGetsFreshCheckAndDeadline`, `TestListStagingBoundsStatBeforeAnyWrite` | Client waiting only: an already queued server apply may still land late; delete rerun collects it. VolDelSweep r3 11/11 on az1 per model owner. Native controls pass; Linux qualification pending. | STUB |
|
||||
| `INV-SNAP-OP-CRASH-001` | A durable snapshot intent survives holder SIGKILL before publication and completes once after restart; after publication, restart settles its original receipt without another cut. | M9 operation recovery (planned) | Process-owned create executor; native crash qualification pending | `TestSnapshotOperationIntentAndPublicationCrashBoundaries`, `TestSnapshotOperationKillReceiptRejectsOrdinaryExit` (`cmd/blockvolume/snapshot_operation_crash_integration_test.go`) | SnapOps.Start/Publish/Settle; rows 211–219 (native red receipt owed) | STUB |
|
||||
| `INV-SNAPK-RETAIN-META-001` | Reachability, removal and the volume delete never read a snapshot's retention facts (source guard); the policy entry beside VOLUME changes by one conditional update and is read only by retain. | M9 snap → idle | `core/frontend/chunkstore/layout` `head.go` `SnapshotMeta`; `core/frontend/chunkstore` `retain_b.go` | `TestSnapshotMeta_WrittenOnceByTheCommit`, `TestGuard_SafetyIgnoresSnapshotMeta`, `TestBCatalog_RetainKeepsTheOldBehaviour`, `TestBCatalog_RetentionPolicyIsConditional` | — (the snapshot kernel model is not in this repository) | ACTIVE |
|
||||
| `INV-SNAPK-HEAD-BOUND-001` | HEAD stays inline: at most 10 snapshots, names at most 64 bytes, 4 labels, 4 dependents per snapshot and 16 per HEAD, refused where they enter with the cure; Encode refuses a HEAD above 64 KiB. A snapshot past 10 is refused before its cut: nothing is written. | M9 every transition | `core/frontend/chunkstore/layout` `head.go` `check`, `Encode`; `snapshots.go` `AddDependent`; `commit.go` `Commit`; `core/frontend/durable/provider_layout_snapshot.go` `SnapshotVolume`; `core/host/volume/chunk_control.go` `chunkErrorCode`; `core/host/volume/chunk_scheduled_snapshot.go` `ScheduledSnapshot` | `TestHead_SizeAtTheSnapshotCap`, `TestHead_BoundsRefused`, `TestChunkSnapshotPastTheLimitIsRefusedWithHEADUnchanged`, `TestScheduledSnapshotAtTheLimitStillPublishes`, `TestChunkSnapshotRefusalsAreTyped`, `TestLayoutProviderSnapshotVolume` | — (the snapshot kernel model is not in this repository) | ACTIVE |
|
||||
| `INV-SNAPK-HEAD-BOUND-001` | HEAD stays inline: at most 10 snapshots, names at most 64 bytes, 4 labels, 4 dependents per snapshot and 16 per HEAD, refused where they enter with the cure; Encode refuses a HEAD above 64 KiB. A snapshot past 10 is refused before its cut: nothing is written. | M9 every transition | `core/frontend/chunkstore/layout` `head.go` `check`, `Encode`; `snapshots.go` `AddDependent`; `commit.go` `Commit`; `core/frontend/durable/provider_layout_snapshot.go` `SnapshotVolume`; `core/host/volume/chunk_control.go` `chunkErrorCode`; `core/host/volume/chunk_scheduled_snapshot.go` `ScheduledSnapshot` | `TestHead_SizeAtTheSnapshotCap`, `TestHead_BoundsRefused`, `TestChunkSnapshotPastTheLimitIsRefusedWithHEADUnchanged`, `TestChunkSnapshotOperationPastTheLimitIsRefusedTyped`, `TestScheduledSnapshotAtTheLimitStillPublishes`, `TestChunkSnapshotRefusalsAreTyped`, `TestLayoutProviderSnapshotVolume` | — (the snapshot kernel model is not in this repository) | ACTIVE |
|
||||
| `INV-SNAPK-RELEASE-001` | A target is released from a source's dependents by its volume id, from every snapshot, in one conditional update; a volume created again under its name releases nothing; an absent target writes nothing. | M9 source HEAD, dependents | `core/frontend/chunkstore/layout` `delete.go` `Head.ReleaseDependent`, `RunReleaseDependent` | `TestReleaseDependent_Closure`, `TestRunReleaseDependent_InterruptAtEveryStep` | — (the snapshot kernel model is not in this repository) | ACTIVE |
|
||||
| `INV-SNAPK-RELEASE-CALLERS-001` | Only the target's own delete (its HEAD already deleting) and the operator's command release a dependent; a source scan restricts the callers and requires the operator's read of the target. | M9 source HEAD, dependents | `core/frontend/chunkstore/layout` (source scan of `delete.go`) | `TestGuard_Controls` | — (the snapshot kernel model is not in this repository) | ACTIVE |
|
||||
| `INV-SNAPK-RELEASE-OPERATOR-001` | The operator's command releases a target that is deleted (HEAD deleting or deleted, or its directory's VOLUME of another id), one whose live roots name no chunk of the source, or one without HEAD, after its tombstone. | M9 source HEAD, dependents | `core/frontend/chunkstore/layout` `delete.go` `OperatorReleaseDependent` | `TestOperatorReleaseDependent` | — (the snapshot kernel model is not in this repository) | ACTIVE |
|
||||
|
||||
@@ -94,6 +94,10 @@ on a path v1.1 refuses or ships as a preview. v1.2 replaces them with progress w
|
||||
is unchanged) and a usage error.
|
||||
- v1.1 answers the reverse case, a store or HEAD written by a later version, with a final exit 78
|
||||
(`store_format_newer`, `head_newer_version`), which the unit does not restart.
|
||||
- `sw-block ops chunk cut`, `ops chunk detach --plain`, `volume stop` and `volume backup` admit their cut, detach
|
||||
or snapshot once and then read its handle on the holder while it progresses; an optional absolute `--deadline` is
|
||||
the only total bound. Running a v1.0.x `sw-block` against a v1.1 holder is unsupported:
|
||||
upgrade the CLI with the hosts.
|
||||
|
||||
Maintenance cleaning now uses a one-minute inactivity window renewed by strict advances of the finite (phase, cursor) work position, with separate 30-second remote-request deadlines. A stalled pass reports `no_progress` and resumes at its existing cursor on the next pass; a large progressing pass has no total deadline.
|
||||
|
||||
|
||||
@@ -575,8 +575,8 @@ closed frontend may enter PlainStop; abort does not clear its closed bit.
|
||||
empty (TLC 2.19 with the tools hash above). `PlainDetach_no_idle.cfg` violates
|
||||
`IdleAtStop` in 8 distinct states. This remains an admission model, not a timing
|
||||
model. Caller deadline and cancellation are witnessed natively by
|
||||
`TestOfflineSealUsesCallerDeadline`, `TestOfflineSealCallerCancelCanRetry` and
|
||||
`TestChunkPlainDetachUsesCallerDeadline`; live-detach bounds retain their tests.
|
||||
`TestOfflineSealUsesCallerDeadline` and `TestOfflineSealCallerCancelCanRetry`; over HTTP
|
||||
the caller is the plain detach handle; live-detach bounds retain their tests.
|
||||
The HTTP plain caller must supply positive timeoutMs; `TestChunkPlainDetachRequiresExplicitBound` witnesses rejection before provider dispatch.
|
||||
|
||||
### Workspace move reply precedence
|
||||
@@ -744,9 +744,9 @@ manual-cut busy refusal, and one admission POST followed by read-only status
|
||||
polls using the holder's in-memory cut ID. A restart loses that ID and answers
|
||||
unknown, while stored immutable work remains adoptable. Only the observed
|
||||
cut's sequence rises renew the CLI window; a selected deadline stays absolute.
|
||||
[Configurations](cuttime/cfg), [supplied verdicts](cuttime/recorded-r6/verdicts.txt)
|
||||
and [recorded coverage](cuttime/recorded-r6/coverage.txt) preserve the model
|
||||
owner's 30/30 exhaustive results, with no bound verdict. This is not a new
|
||||
[Configurations](cuttime/cfg) and the [current verdicts](cuttime/verdicts.txt)
|
||||
summarize the model owner's exhaustive results (r6: 30/30; r8c: 46/46), with no
|
||||
bound verdict. This is not a new
|
||||
implementation-side model run. CLI, server worker ownership and bounded terminal-handle retention have
|
||||
focused projection controls; native/race and real CLI qualification remain owed.
|
||||
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
|
||||
The supplied r8c refinement makes foreign-HEAD settlement terminal (NoRetryAfterFence)
|
||||
and separates inherited recovery from the current invocation's result (OwnResult).
|
||||
Its exhaustive BFS verdicts are preserved in `recorded-r8c/RESULT.txt`: 46/46,
|
||||
Its exhaustive BFS verdicts are summarized in `verdicts.txt`: 46/46,
|
||||
four safe configurations, all expected mutant violations and witnesses, no bound.
|
||||
No new local model run is claimed. The earlier r8b evidence remains recorded.
|
||||
No new local model run is claimed. Raw model-checker outputs are not kept; earlier
|
||||
rounds' verdicts are superseded by these.
|
||||
|
||||
Projection: `captureManualCut` settles an inherited proposal before calling
|
||||
`captureInvocationLocked` for its own barrier. Each proposal records its creating
|
||||
@@ -39,7 +40,7 @@ is immediate `cut_busy` with reason `handles_full`, with no eviction. Scheduled
|
||||
cuts have no polling handles. The capacity number is a projection bound;
|
||||
retention and lost-answer behavior are modeled by Retire and ReplyLost.
|
||||
|
||||
`recorded-r6` preserves the supplied 30/30 exhaustive results, no bound verdict.
|
||||
The supplied r6 results were 30/30 exhaustive, no bound verdict (superseded by r8c).
|
||||
Safe configurations explored 18,019, 43,899 and 30,139 states. All 18 mutants
|
||||
violated their intended invariants; all nine witnesses were reached. These are
|
||||
supplied results, not a new implementation-side model run. Only provenance
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
safe_cut want=OK got=OK states=[15901 distinct states found] PASS
|
||||
safe_cut_deadline want=OK got=OK states=[38870 distinct states found] PASS
|
||||
safe_cut_late want=OK got=OK states=[22836 distinct states found] PASS
|
||||
mut_answer_late want=violated got=CliUnknownOnlySilent states=[3733 distinct states found] PASS
|
||||
mut_attempt_renews want=violated got=NoSilentStall states=[773 distinct states found] PASS
|
||||
mut_busy_when_free want=violated got=BusyOnlyWhenHeld states=[35 distinct states found] PASS
|
||||
mut_cli_no_slack want=violated got=CliUnknownOnlySilent states=[442 distinct states found] PASS
|
||||
mut_cli_no_window want=violated got=CliNoSilentWait states=[814 distinct states found] PASS
|
||||
mut_cli_total_timeout want=violated got=CliNoEarlyExit states=[780 distinct states found] PASS
|
||||
mut_global_renews want=violated got=CliNoSilentWait states=[1324 distinct states found] PASS
|
||||
mut_no_call_deadline want=violated got=NoLongCall states=[195 distinct states found] PASS
|
||||
mut_queued_stalls want=violated got=NoQueuedStall states=[289 distinct states found] PASS
|
||||
mut_repost want=violated got=CliBusyNotOwn states=[36 distinct states found] PASS
|
||||
mut_restart_as_failed want=violated got=CliNoEarlyExit states=[80 distinct states found] PASS
|
||||
mut_retry_loses_progress want=violated got=ProgressKept states=[259 distinct states found] PASS
|
||||
mut_timeout_renews want=violated got=NoSilentStall states=[1058 distinct states found] PASS
|
||||
mut_total_cap want=violated got=NoEarlyFail states=[1822 distinct states found] PASS
|
||||
mut_window_not_reset want=violated got=NoEarlyFail states=[840 distinct states found] PASS
|
||||
wit_busy want=violated got=WitBusy states=[50 distinct states found] PASS
|
||||
wit_cli_deadline want=violated got=WitCliDeadline states=[430 distinct states found] PASS
|
||||
wit_cli_stalled want=violated got=WitCliStalled states=[851 distinct states found] PASS
|
||||
wit_restart_unknown want=violated got=WitRestartUnknown states=[93 distinct states found] PASS
|
||||
wit_slow_no_fail want=violated got=WitSlowNoFail states=[7035 distinct states found] PASS
|
||||
wit_stalled_retry_pub want=violated got=WitStalledRetryPub states=[8137 distinct states found] PASS
|
||||
wit_timed_out_then_pub want=violated got=WitTimedOutThenPub states=[4093 distinct states found] PASS
|
||||
wit_unknown_then_pub want=violated got=WitUnknownThenPub states=[1401 distinct states found] PASS
|
||||
@@ -1,10 +0,0 @@
|
||||
NoEarlyFail mut_total_cap, mut_window_not_reset
|
||||
NoSilentStall mut_attempt_renews, mut_timeout_renews
|
||||
NoLongCall mut_no_call_deadline
|
||||
ProgressKept mut_retry_loses_progress
|
||||
CliNoEarlyExit mut_cli_total_timeout, mut_restart_as_failed
|
||||
CliNoSilentWait mut_cli_no_window, mut_global_renews
|
||||
CliUnknownOnlySilent mut_answer_late, mut_cli_no_slack
|
||||
NoQueuedStall mut_queued_stalls
|
||||
BusyOnlyWhenHeld mut_busy_when_free
|
||||
CliBusyNotOwn mut_repost
|
||||
@@ -1,340 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 110 and seed 280013079473926721 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513235] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:41:59)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:41:59.
|
||||
Error: Invariant CliUnknownOnlySilent is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 5: <InProgress line 165, col 15 to line 170, col 91 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = FALSE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 6: <Poll line 161, col 9 to line 162, col 106 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 7: <Complete line 117, col 13 to line 122, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 1
|
||||
/\ ever = {1}
|
||||
/\ total = 2
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 2
|
||||
/\ ever = {1}
|
||||
/\ total = 3
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 10: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 4
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 4
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 11: <CliSilent line 201, col 15 to line 202, col 123 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 4
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 4
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
7843 states generated, 3733 distinct states found, 1480 states left on queue.
|
||||
The depth of the complete state graph search is 11.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 4).
|
||||
Finished in 00s at (2026-12-02 20:41:59)
|
||||
@@ -1,253 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 55 and seed 1494419925941784077 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513276] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:00)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:00.
|
||||
Error: Invariant NoSilentStall is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <LinkDrop line 173, col 13 to line 174, col 110 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 6: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 8: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 4
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 4
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 2
|
||||
|
||||
1438 states generated, 773 distinct states found, 340 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 20:42:00)
|
||||
@@ -1,79 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 74 and seed -2451533168003359416 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513317] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:01)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:01.
|
||||
Error: Invariant BusyOnlyWhenHeld is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Busy line 98, col 9 to line 102, col 90 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = TRUE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
43 states generated, 35 distinct states found, 24 states left on queue.
|
||||
The depth of the complete state graph search is 4.
|
||||
The average outdegree of the complete state graph is 3 (minimum is 1, the maximum 8 and the 95th percentile is 8).
|
||||
Finished in 00s at (2026-12-02 20:42:01)
|
||||
@@ -1,195 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 52 and seed 6234864391439972264 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513358] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:02)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:02.
|
||||
Error: Invariant CliUnknownOnlySilent is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 6: <CliSilent line 201, col 15 to line 202, col 123 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
810 states generated, 442 distinct states found, 209 states left on queue.
|
||||
The depth of the complete state graph search is 8.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 20:42:02)
|
||||
@@ -1,253 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 96 and seed 4175346121731813629 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513400] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:03)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:03.
|
||||
Error: Invariant CliNoSilentWait is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Busy line 98, col 9 to line 102, col 90 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <LinkDrop line 173, col 13 to line 174, col 110 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 4
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 5
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 5
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
1582 states generated, 814 distinct states found, 350 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 20:42:03)
|
||||
@@ -1,253 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 75 and seed 5137826134122098777 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513441] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:04)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:04.
|
||||
Error: Invariant CliNoEarlyExit is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Busy line 98, col 9 to line 102, col 90 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <LinkDrop line 173, col 13 to line 174, col 110 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 4
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <CliGiveUp line 207, col 15 to line 215, col 91 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = TRUE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "timeout"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 4
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
1531 states generated, 780 distinct states found, 333 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 4).
|
||||
Finished in 00s at (2026-12-02 20:42:04)
|
||||
@@ -1,282 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 65 and seed 6836348540324853618 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513483] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:05)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:05.
|
||||
Error: Invariant CliNoSilentWait is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Busy line 98, col 9 to line 102, col 90 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <LinkDrop line 173, col 13 to line 174, col 110 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <OtherUpload line 177, col 16 to line 178, col 119 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 4
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 9: <CliTick line 241, col 12 to line 244, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 5
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
2918 states generated, 1324 distinct states found, 663 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 20:42:05)
|
||||
@@ -1,195 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 114 and seed 2408686192782804830 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513525] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:05)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:06.
|
||||
Error: Invariant NoLongCall is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = TRUE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = TRUE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 5: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = TRUE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 2
|
||||
|
||||
State 6: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = TRUE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 3
|
||||
|
||||
363 states generated, 195 distinct states found, 96 states left on queue.
|
||||
The depth of the complete state graph search is 7.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 20:42:06)
|
||||
@@ -1,166 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 130 and seed 7691171659833969150 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513566] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:06)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:07.
|
||||
Error: Invariant NoQueuedStall is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Fail line 138, col 9 to line 143, col 118 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {}
|
||||
/\ stallQueued = TRUE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
540 states generated, 289 distinct states found, 146 states left on queue.
|
||||
The depth of the complete state graph search is 7.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 20:42:07)
|
||||
@@ -1,108 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 12 and seed -4140477462773921768 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513608] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:07)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:07.
|
||||
Error: Invariant CliBusyNotOwn is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <RepostBusy line 190, col 15 to line 194, col 101 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "busy"
|
||||
/\ busyOwn = TRUE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
48 states generated, 36 distinct states found, 19 states left on queue.
|
||||
The depth of the complete state graph search is 4.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 3 and the 95th percentile is 3).
|
||||
Finished in 00s at (2026-12-02 20:42:07)
|
||||
@@ -1,137 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 6 and seed -1634963690360910101 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513650] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:08)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:08.
|
||||
Error: Invariant CliNoEarlyExit is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <HolderRestart line 146, col 18 to line 151, col 109 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <CliStalled line 195, col 15 to line 197, col 113 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = TRUE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "stalled"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
133 states generated, 80 distinct states found, 42 states left on queue.
|
||||
The depth of the complete state graph search is 5.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 6).
|
||||
Finished in 00s at (2026-12-02 20:42:08)
|
||||
@@ -1,224 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 81 and seed 7797453497601085 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513691] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:09)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:09.
|
||||
Error: Invariant ProgressKept is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Complete line 117, col 13 to line 122, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <HolderRestart line 146, col 18 to line 151, col 109 of module CutTime>
|
||||
/\ phase = "lost"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <CliUnknownId line 187, col 17 to line 188, col 125 of module CutTime>
|
||||
/\ phase = "lost"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <Retry line 154, col 10 to line 158, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 2
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
461 states generated, 259 distinct states found, 127 states left on queue.
|
||||
The depth of the complete state graph search is 7.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 20:42:09)
|
||||
@@ -1,282 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 25 and seed -2579216970477022738 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513733] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:10)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:10.
|
||||
Error: Invariant NoSilentStall is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = TRUE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <LinkDrop line 173, col 13 to line 174, col 110 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = TRUE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = TRUE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 6: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = TRUE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 2
|
||||
|
||||
State 7: <CallTimeout line 125, col 16 to line 129, col 94 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 4
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 4
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
2071 states generated, 1058 distinct states found, 463 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 20:42:10)
|
||||
@@ -1,311 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 22 and seed -7902050195742249817 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513775] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:11)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:11.
|
||||
Error: Invariant NoEarlyFail is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <LinkDrop line 173, col 13 to line 174, col 110 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 6: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 2
|
||||
|
||||
State 7: <Complete line 117, col 13 to line 122, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {1}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 3
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 4
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 4
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 10: <Fail line 138, col 9 to line 143, col 118 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = TRUE
|
||||
/\ other = "none"
|
||||
/\ realCli = 4
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 4
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
3707 states generated, 1822 distinct states found, 722 states left on queue.
|
||||
The depth of the complete state graph search is 11.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 4).
|
||||
Finished in 00s at (2026-12-02 20:42:11)
|
||||
@@ -1,282 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 18 and seed 8547046980146537379 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513816] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:12)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:12.
|
||||
Error: Invariant NoEarlyFail is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <LinkDrop line 173, col 13 to line 174, col 110 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 6: <Complete line 117, col 13 to line 122, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {1}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 7: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {1}
|
||||
/\ total = 2
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 8: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 3
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Fail line 138, col 9 to line 143, col 118 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = TRUE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 3
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
1613 states generated, 840 distinct states found, 360 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 20:42:12)
|
||||
@@ -1,23 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 45 and seed 8585125391442751493 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513084] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:41:54)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:41:55.
|
||||
Model checking completed. No error has been found.
|
||||
Estimates of the probability that TLC did not check all reachable states
|
||||
because two distinct states had the same fingerprint:
|
||||
calculated (optimistic): val = 1.9E-11
|
||||
37521 states generated, 15901 distinct states found, 0 states left on queue.
|
||||
The depth of the complete state graph search is 26.
|
||||
The average outdegree of the complete state graph is 1 (minimum is 0, the maximum 7 and the 95th percentile is 3).
|
||||
Finished in 00s at (2026-12-02 20:41:55)
|
||||
@@ -1,23 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 27 and seed -3015119116551790657 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513134] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:41:56)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:41:56.
|
||||
Model checking completed. No error has been found.
|
||||
Estimates of the probability that TLC did not check all reachable states
|
||||
because two distinct states had the same fingerprint:
|
||||
calculated (optimistic): val = 9.7E-11
|
||||
84967 states generated, 38870 distinct states found, 0 states left on queue.
|
||||
The depth of the complete state graph search is 26.
|
||||
The average outdegree of the complete state graph is 1 (minimum is 0, the maximum 8 and the 95th percentile is 4).
|
||||
Finished in 01s at (2026-12-02 20:41:57)
|
||||
@@ -1,23 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 94 and seed 700654479658853680 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513184] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:41:57)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:41:58.
|
||||
Model checking completed. No error has been found.
|
||||
Estimates of the probability that TLC did not check all reachable states
|
||||
because two distinct states had the same fingerprint:
|
||||
calculated (optimistic): val = 4.3E-11
|
||||
57314 states generated, 22836 distinct states found, 0 states left on queue.
|
||||
The depth of the complete state graph search is 27.
|
||||
The average outdegree of the complete state graph is 1 (minimum is 0, the maximum 8 and the 95th percentile is 3).
|
||||
Finished in 00s at (2026-12-02 20:41:58)
|
||||
@@ -1,108 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 65 and seed 8329595248835825465 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513857] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:13)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:13.
|
||||
Error: Invariant WitBusy is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Busy line 98, col 9 to line 102, col 90 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <CliBusy line 184, col 15 to line 185, col 123 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "busy"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
77 states generated, 50 distinct states found, 29 states left on queue.
|
||||
The depth of the complete state graph search is 5.
|
||||
The average outdegree of the complete state graph is 3 (minimum is 0, the maximum 8 and the 95th percentile is 8).
|
||||
Finished in 00s at (2026-12-02 20:42:13)
|
||||
@@ -1,195 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 91 and seed 8219572715188354794 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513898] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:14)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:14.
|
||||
Error: Invariant WitCliDeadline is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 6: <CliGiveUp line 207, col 15 to line 215, col 91 of module CutTime>
|
||||
/\ phase = "cancelled"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "deadline"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
801 states generated, 430 distinct states found, 197 states left on queue.
|
||||
The depth of the complete state graph search is 8.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 4).
|
||||
Finished in 00s at (2026-12-02 20:42:14)
|
||||
@@ -1,224 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 48 and seed 2501691565555896291 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513939] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:15)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:15.
|
||||
Error: Invariant WitCliStalled is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 6: <Fail line 138, col 9 to line 143, col 118 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 7: <CliStalled line 195, col 15 to line 197, col 113 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "stalled"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
1648 states generated, 851 distinct states found, 363 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 20:42:15)
|
||||
@@ -1,166 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 121 and seed 4150404087366978728 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2513980] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:16)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:16.
|
||||
Error: Invariant WitRestartUnknown is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <HolderRestart line 146, col 18 to line 151, col 109 of module CutTime>
|
||||
/\ phase = "lost"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <CliUnknownId line 187, col 17 to line 188, col 125 of module CutTime>
|
||||
/\ phase = "lost"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
152 states generated, 93 distinct states found, 48 states left on queue.
|
||||
The depth of the complete state graph search is 6.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 6 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 20:42:16)
|
||||
@@ -1,427 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 19 and seed -3874497009180308668 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2514022] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:16)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:17.
|
||||
Error: Invariant WitSlowNoFail is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 5: <Complete line 117, col 13 to line 122, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {1}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 2
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {1}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <Complete line 117, col 13 to line 122, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <InProgress line 165, col 15 to line 170, col 91 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 2
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 1
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = FALSE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Poll line 161, col 9 to line 162, col 106 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 2
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 10: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 2
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 2
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 11: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 2
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 3
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 12: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 2
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 4
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 13: <Publish line 132, col 12 to line 134, col 104 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 2
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 4
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 14: <CliOk line 182, col 15 to line 183, col 123 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 2
|
||||
/\ cli = "ok"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 4
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
15384 states generated, 7035 distinct states found, 1794 states left on queue.
|
||||
The depth of the complete state graph search is 14.
|
||||
The average outdegree of the complete state graph is 1 (minimum is 0, the maximum 7 and the 95th percentile is 4).
|
||||
Finished in 00s at (2026-12-02 20:42:17)
|
||||
@@ -1,398 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 76 and seed 5715123472687606501 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2514063] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:17)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:18.
|
||||
Error: Invariant WitStalledRetryPub is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 6: <Fail line 138, col 9 to line 143, col 118 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 7: <CliStalled line 195, col 15 to line 197, col 113 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "stalled"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 8: <Retry line 154, col 10 to line 158, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 2
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "stalled"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 2
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "stalled"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 10: <Complete line 117, col 13 to line 122, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 2
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "stalled"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 3
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 11: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 2
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "stalled"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 2
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 3
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 12: <Complete line 117, col 13 to line 122, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 2
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "stalled"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 3
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 13: <Publish line 132, col 12 to line 134, col 104 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 2
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "stalled"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 3
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
17730 states generated, 8137 distinct states found, 1985 states left on queue.
|
||||
The depth of the complete state graph search is 15.
|
||||
The average outdegree of the complete state graph is 1 (minimum is 0, the maximum 8 and the 95th percentile is 4).
|
||||
Finished in 00s at (2026-12-02 20:42:18)
|
||||
@@ -1,369 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 84 and seed 7352268218141554689 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2514104] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:18)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:19.
|
||||
Error: Invariant WitTimedOutThenPub is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = TRUE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = TRUE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 5: <Tick line 230, col 9 to line 238, col 120 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = TRUE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 2
|
||||
|
||||
State 6: <CallTimeout line 125, col 16 to line 129, col 94 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 7: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 8: <Complete line 117, col 13 to line 122, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {1}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 2
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {1}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 10: <Complete line 117, col 13 to line 122, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 11: <Publish line 132, col 12 to line 134, col 104 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 12: <CliOk line 182, col 15 to line 183, col 123 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "ok"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ pollAge = 2
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
8722 states generated, 4093 distinct states found, 1335 states left on queue.
|
||||
The depth of the complete state graph search is 12.
|
||||
The average outdegree of the complete state graph is 1 (minimum is 0, the maximum 7 and the 95th percentile is 4).
|
||||
Finished in 00s at (2026-12-02 20:42:19)
|
||||
@@ -1,311 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 108 and seed -7006478842729984216 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 2514146] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file recorded-model/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 20:42:20)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 20:42:20.
|
||||
Error: Invariant WitUnknownThenPub is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 94, col 10 to line 96, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Complete line 117, col 13 to line 122, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Start line 110, col 13 to line 114, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 2
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <Complete line 117, col 13 to line 122, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <HolderRestart line 146, col 18 to line 151, col 109 of module CutTime>
|
||||
/\ phase = "lost"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <CliUnknownId line 187, col 17 to line 188, col 125 of module CutTime>
|
||||
/\ phase = "lost"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Retry line 154, col 10 to line 158, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 2
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 10: <Publish line 132, col 12 to line 134, col 104 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 2
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
2783 states generated, 1401 distinct states found, 567 states left on queue.
|
||||
The depth of the complete state graph search is 10.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 4).
|
||||
Finished in 00s at (2026-12-02 20:42:20)
|
||||
@@ -1,26 +0,0 @@
|
||||
safe_cut: OK
|
||||
safe_cut_deadline: OK
|
||||
safe_cut_late: OK
|
||||
mut_answer_late: Invariant CliUnknownOnlySilent is violated.
|
||||
mut_attempt_renews: Invariant NoSilentStall is violated.
|
||||
mut_busy_when_free: Invariant BusyOnlyWhenHeld is violated.
|
||||
mut_cli_no_slack: Invariant CliUnknownOnlySilent is violated.
|
||||
mut_cli_no_window: Invariant CliNoSilentWait is violated.
|
||||
mut_cli_total_timeout: Invariant CliNoEarlyExit is violated.
|
||||
mut_global_renews: Invariant CliNoSilentWait is violated.
|
||||
mut_no_call_deadline: Invariant NoLongCall is violated.
|
||||
mut_queued_stalls: Invariant NoQueuedStall is violated.
|
||||
mut_repost: Invariant CliBusyNotOwn is violated.
|
||||
mut_restart_as_failed: Invariant CliNoEarlyExit is violated.
|
||||
mut_retry_loses_progress: Invariant ProgressKept is violated.
|
||||
mut_timeout_renews: Invariant NoSilentStall is violated.
|
||||
mut_total_cap: Invariant NoEarlyFail is violated.
|
||||
mut_window_not_reset: Invariant NoEarlyFail is violated.
|
||||
wit_busy: Invariant WitBusy is violated.
|
||||
wit_cli_deadline: Invariant WitCliDeadline is violated.
|
||||
wit_cli_stalled: Invariant WitCliStalled is violated.
|
||||
wit_restart_unknown: Invariant WitRestartUnknown is violated.
|
||||
wit_slow_no_fail: Invariant WitSlowNoFail is violated.
|
||||
wit_stalled_retry_pub: Invariant WitStalledRetryPub is violated.
|
||||
wit_timed_out_then_pub: Invariant WitTimedOutThenPub is violated.
|
||||
wit_unknown_then_pub: Invariant WitUnknownThenPub is violated.
|
||||
@@ -1,30 +0,0 @@
|
||||
safe_cut want=OK got=OK states=[18019 distinct states found] PASS
|
||||
safe_cut_deadline want=OK got=OK states=[43899 distinct states found] PASS
|
||||
safe_cut_late want=OK got=OK states=[30139 distinct states found] PASS
|
||||
mut_answer_late want=violated got=CliUnknownOnlySilent states=[3892 distinct states found] PASS
|
||||
mut_attempt_renews want=violated got=NoSilentStall states=[779 distinct states found] PASS
|
||||
mut_busy_when_free want=violated got=BusyOnlyWhenHeld states=[31 distinct states found] PASS
|
||||
mut_cli_no_slack want=violated got=CliUnknownOnlySilent states=[424 distinct states found] PASS
|
||||
mut_cli_no_window want=violated got=CliNoSilentWait states=[764 distinct states found] PASS
|
||||
mut_cli_total_timeout want=violated got=CliNoEarlyExit states=[729 distinct states found] PASS
|
||||
mut_forget_on_send want=violated got=CliUnknownOnlySilent states=[1416 distinct states found] PASS
|
||||
mut_global_renews want=violated got=CliNoSilentWait states=[1854 distinct states found] PASS
|
||||
mut_no_call_deadline want=violated got=NoLongCall states=[192 distinct states found] PASS
|
||||
mut_overwrite_next want=violated got=CliUnknownOnlySilent states=[866 distinct states found] PASS
|
||||
mut_queued_stalls want=violated got=NoQueuedStall states=[260 distinct states found] PASS
|
||||
mut_repost want=violated got=CliBusyNotOwn states=[34 distinct states found] PASS
|
||||
mut_restart_as_failed want=violated got=CliNoEarlyExit states=[88 distinct states found] PASS
|
||||
mut_retire_early want=violated got=CliUnknownOnlySilent states=[855 distinct states found] PASS
|
||||
mut_retry_loses_progress want=violated got=ProgressKept states=[245 distinct states found] PASS
|
||||
mut_timeout_renews want=violated got=NoSilentStall states=[1107 distinct states found] PASS
|
||||
mut_total_cap want=violated got=NoEarlyFail states=[1690 distinct states found] PASS
|
||||
mut_window_not_reset want=violated got=NoEarlyFail states=[887 distinct states found] PASS
|
||||
wit_busy want=violated got=WitBusy states=[44 distinct states found] PASS
|
||||
wit_cli_deadline want=violated got=WitCliDeadline states=[513 distinct states found] PASS
|
||||
wit_cli_stalled want=violated got=WitCliStalled states=[845 distinct states found] PASS
|
||||
wit_lost_reply_then_ok want=violated got=WitLostReplyThenOk states=[1478 distinct states found] PASS
|
||||
wit_restart_unknown want=violated got=WitRestartUnknown states=[84 distinct states found] PASS
|
||||
wit_slow_no_fail want=violated got=WitSlowNoFail states=[7069 distinct states found] PASS
|
||||
wit_stalled_retry_pub want=violated got=WitStalledRetryPub states=[8445 distinct states found] PASS
|
||||
wit_timed_out_then_pub want=violated got=WitTimedOutThenPub states=[4239 distinct states found] PASS
|
||||
wit_unknown_then_pub want=violated got=WitUnknownThenPub states=[1459 distinct states found] PASS
|
||||
@@ -1,10 +0,0 @@
|
||||
NoEarlyFail mut_total_cap, mut_window_not_reset
|
||||
NoSilentStall mut_attempt_renews, mut_timeout_renews
|
||||
NoLongCall mut_no_call_deadline
|
||||
ProgressKept mut_retry_loses_progress
|
||||
CliNoEarlyExit mut_cli_total_timeout, mut_restart_as_failed
|
||||
CliNoSilentWait mut_cli_no_window, mut_global_renews
|
||||
CliUnknownOnlySilent mut_answer_late, mut_cli_no_slack, mut_forget_on_send, mut_overwrite_next, mut_retire_early
|
||||
NoQueuedStall mut_queued_stalls
|
||||
BusyOnlyWhenHeld mut_busy_when_free
|
||||
CliBusyNotOwn mut_repost
|
||||
@@ -1,373 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 9 and seed 338827297138807345 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 401720] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:40)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:40.
|
||||
Error: Invariant CliUnknownOnlySilent is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 5: <InProgress line 182, col 15 to line 187, col 91 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = FALSE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 6: <Complete line 134, col 13 to line 139, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {1}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = FALSE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <Poll line 178, col 9 to line 179, col 106 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {1}
|
||||
/\ total = 2
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {1}
|
||||
/\ total = 3
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 10: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 4
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 4
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 11: <CliSilent line 239, col 15 to line 240, col 123 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 4
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 4
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
8150 states generated, 3892 distinct states found, 1533 states left on queue.
|
||||
The depth of the complete state graph search is 11.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 4).
|
||||
Finished in 00s at (2026-12-02 21:08:40)
|
||||
@@ -1,277 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 109 and seed -8273198866143330124 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 401761] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:41)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:41.
|
||||
Error: Invariant NoSilentStall is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <LinkDrop line 190, col 13 to line 191, col 110 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 6: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 8: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 4
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 4
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 2
|
||||
|
||||
1438 states generated, 779 distinct states found, 348 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 21:08:41)
|
||||
@@ -1,85 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 73 and seed -491609226175859221 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 401803] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:42)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:42.
|
||||
Error: Invariant BusyOnlyWhenHeld is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Busy line 115, col 9 to line 119, col 90 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = TRUE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
40 states generated, 31 distinct states found, 20 states left on queue.
|
||||
The depth of the complete state graph search is 4.
|
||||
The average outdegree of the complete state graph is 3 (minimum is 0, the maximum 7 and the 95th percentile is 7).
|
||||
Finished in 00s at (2026-12-02 21:08:42)
|
||||
@@ -1,213 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 85 and seed 8550602877709749960 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 401844] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:42)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:43.
|
||||
Error: Invariant CliUnknownOnlySilent is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 6: <CliSilent line 239, col 15 to line 240, col 123 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
770 states generated, 424 distinct states found, 204 states left on queue.
|
||||
The depth of the complete state graph search is 8.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 21:08:43)
|
||||
@@ -1,277 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 22 and seed -3817361081439875651 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 401885] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:43)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:44.
|
||||
Error: Invariant CliNoSilentWait is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Busy line 115, col 9 to line 119, col 90 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <LinkDrop line 190, col 13 to line 191, col 110 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 1
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 2
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 3
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 4
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 5
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 5
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
1503 states generated, 764 distinct states found, 324 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 21:08:44)
|
||||
@@ -1,277 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 52 and seed -3215035929988245121 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 401926] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:44)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:45.
|
||||
Error: Invariant CliNoEarlyExit is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Busy line 115, col 9 to line 119, col 90 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <LinkDrop line 190, col 13 to line 191, col 110 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 1
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 2
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 3
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 4
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <CliGiveUp line 245, col 15 to line 253, col 91 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = TRUE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "timeout"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 4
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
1405 states generated, 729 distinct states found, 324 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 21:08:45)
|
||||
@@ -1,341 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 13 and seed -5284753882303467709 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 401967] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:45)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:45.
|
||||
Error: Invariant CliUnknownOnlySilent is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Complete line 134, col 13 to line 139, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 2
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <Complete line 134, col 13 to line 139, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <Publish line 149, col 12 to line 151, col 104 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <ReplyLost line 214, col 14 to line 219, col 96 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = TRUE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "gone"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = FALSE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Poll line 178, col 9 to line 179, col 106 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = TRUE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "gone"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 10: <CliGone line 231, col 12 to line 232, col 120 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = TRUE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "gone"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
2822 states generated, 1416 distinct states found, 574 states left on queue.
|
||||
The depth of the complete state graph search is 10.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 4).
|
||||
Finished in 00s at (2026-12-02 21:08:46)
|
||||
@@ -1,309 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 7 and seed -2099642536674512876 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 402009] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:46)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:46.
|
||||
Error: Invariant CliNoSilentWait is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Busy line 115, col 9 to line 119, col 90 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <LinkDrop line 190, col 13 to line 191, col 110 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 1
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <OtherUpload line 194, col 16 to line 195, col 119 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 1
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 2
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 3
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 4
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 9: <CliTick line 280, col 12 to line 285, col 44 of module CutTime>
|
||||
/\ phase = "busy"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "running"
|
||||
/\ realCli = 5
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
4258 states generated, 1854 distinct states found, 925 states left on queue.
|
||||
The depth of the complete state graph search is 10.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 21:08:47)
|
||||
@@ -1,213 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 75 and seed -6867239112806336991 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 402050] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:47)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:47.
|
||||
Error: Invariant NoLongCall is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 5: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 2
|
||||
|
||||
State 6: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 3
|
||||
|
||||
355 states generated, 192 distinct states found, 99 states left on queue.
|
||||
The depth of the complete state graph search is 7.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 21:08:47)
|
||||
@@ -1,309 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 16 and seed 4141376782343851747 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 402091] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:48)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:48.
|
||||
Error: Invariant CliUnknownOnlySilent is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Complete line 134, col 13 to line 139, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 2
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <Complete line 134, col 13 to line 139, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <Publish line 149, col 12 to line 151, col 104 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <OtherManual line 226, col 16 to line 229, col 107 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "gone"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 9: <CliGone line 231, col 12 to line 232, col 120 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "gone"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
1667 states generated, 866 distinct states found, 380 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 21:08:48)
|
||||
@@ -1,181 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 121 and seed -987434406710851984 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 402132] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:49)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:49.
|
||||
Error: Invariant NoQueuedStall is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Fail line 155, col 9 to line 160, col 118 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {}
|
||||
/\ stallQueued = TRUE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
487 states generated, 260 distinct states found, 130 states left on queue.
|
||||
The depth of the complete state graph search is 7.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 21:08:49)
|
||||
@@ -1,117 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 72 and seed 8917589061358093442 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 402173] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:50)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:50.
|
||||
Error: Invariant CliBusyNotOwn is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <RepostBusy line 207, col 15 to line 211, col 101 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "busy"
|
||||
/\ busyOwn = TRUE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
42 states generated, 34 distinct states found, 19 states left on queue.
|
||||
The depth of the complete state graph search is 4.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 3 and the 95th percentile is 3).
|
||||
Finished in 00s at (2026-12-02 21:08:50)
|
||||
@@ -1,149 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 73 and seed -4983968146057506772 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 402214] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:51)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:51.
|
||||
Error: Invariant CliNoEarlyExit is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <HolderRestart line 163, col 18 to line 168, col 109 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <CliStalled line 233, col 15 to line 235, col 113 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = TRUE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "stalled"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
143 states generated, 88 distinct states found, 45 states left on queue.
|
||||
The depth of the complete state graph search is 6.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 6).
|
||||
Finished in 00s at (2026-12-02 21:08:51)
|
||||
@@ -1,309 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 88 and seed 7091627107453054402 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 402256] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:52)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:52.
|
||||
Error: Invariant CliUnknownOnlySilent is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Complete line 134, col 13 to line 139, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 2
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <Complete line 134, col 13 to line 139, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <Publish line 149, col 12 to line 151, col 104 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <Retire line 221, col 11 to line 224, col 102 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "gone"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 9: <CliGone line 231, col 12 to line 232, col 120 of module CutTime>
|
||||
/\ phase = "published"
|
||||
/\ done = {1, 2}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "gone"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1, 2}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
1651 states generated, 855 distinct states found, 376 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 21:08:52)
|
||||
@@ -1,245 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 17 and seed -365409383110953073 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 402297] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:53)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:53.
|
||||
Error: Invariant ProgressKept is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <Complete line 134, col 13 to line 139, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <HolderRestart line 163, col 18 to line 168, col 109 of module CutTime>
|
||||
/\ phase = "lost"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 6: <CliUnknownId line 204, col 17 to line 205, col 125 of module CutTime>
|
||||
/\ phase = "lost"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 7: <Retry line 171, col 10 to line 175, col 102 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 2
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = TRUE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "unknown"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {1}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
441 states generated, 245 distinct states found, 119 states left on queue.
|
||||
The depth of the complete state graph search is 7.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 21:08:53)
|
||||
@@ -1,309 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 49 and seed -4520668873969213545 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 402338] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:54)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:54.
|
||||
Error: Invariant NoSilentStall is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <LinkDrop line 190, col 13 to line 191, col 110 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 6: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 2
|
||||
|
||||
State 7: <CallTimeout line 142, col 16 to line 146, col 94 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 3
|
||||
/\ real = 3
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = TRUE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 4
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {}
|
||||
/\ total = 4
|
||||
/\ real = 4
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
2165 states generated, 1107 distinct states found, 481 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 8 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 21:08:54)
|
||||
@@ -1,341 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 106 and seed -477332445250595941 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 402380] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:55)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:55.
|
||||
Error: Invariant NoEarlyFail is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <LinkDrop line 190, col 13 to line 191, col 110 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 6: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {}
|
||||
/\ total = 2
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 2
|
||||
|
||||
State 7: <Complete line 134, col 13 to line 139, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {1}
|
||||
/\ total = 2
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 8: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 3
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 4
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 4
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 10: <Fail line 155, col 9 to line 160, col 118 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 4
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = TRUE
|
||||
/\ other = "none"
|
||||
/\ realCli = 4
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 4
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
3371 states generated, 1690 distinct states found, 695 states left on queue.
|
||||
The depth of the complete state graph search is 10.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 4).
|
||||
Finished in 00s at (2026-12-02 21:08:55)
|
||||
@@ -1,309 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 102 and seed -2085068960749222383 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 402421] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:56)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:56.
|
||||
Error: Invariant NoEarlyFail is violated.
|
||||
Error: The behavior up to this point is:
|
||||
State 1: <Initial predicate>
|
||||
/\ phase = "admitting"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "none"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 2: <Admit line 110, col 10 to line 113, col 137 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 3: <Start line 127, col 13 to line 131, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "up"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = FALSE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 4: <LinkDrop line 190, col 13 to line 191, col 110 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 0
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 0
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 0
|
||||
/\ ever = {}
|
||||
/\ total = 0
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 0
|
||||
/\ age = 0
|
||||
|
||||
State 5: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 1
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {}
|
||||
/\ total = 1
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 1
|
||||
|
||||
State 6: <Complete line 134, col 13 to line 139, col 105 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 1
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 1
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 1
|
||||
/\ ever = {1}
|
||||
/\ total = 1
|
||||
/\ real = 0
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 1
|
||||
/\ age = 0
|
||||
|
||||
State 7: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 2
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 2
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 2
|
||||
/\ ever = {1}
|
||||
/\ total = 2
|
||||
/\ real = 1
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 2
|
||||
/\ age = 0
|
||||
|
||||
State 8: <Tick line 268, col 9 to line 277, col 47 of module CutTime>
|
||||
/\ phase = "uploading"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = FALSE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = FALSE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 3
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
State 9: <Fail line 155, col 9 to line 160, col 118 of module CutTime>
|
||||
/\ phase = "failed"
|
||||
/\ done = {1}
|
||||
/\ stallQueued = FALSE
|
||||
/\ cliEarly = FALSE
|
||||
/\ attempts = 1
|
||||
/\ hAge = 0
|
||||
/\ hung = FALSE
|
||||
/\ link = "silent"
|
||||
/\ lostOnce = FALSE
|
||||
/\ restarted = FALSE
|
||||
/\ linkLost = TRUE
|
||||
/\ lastSeq = 0
|
||||
/\ cli = "waiting"
|
||||
/\ busyOwn = FALSE
|
||||
/\ failedOnce = TRUE
|
||||
/\ inflight = 0
|
||||
/\ cliSince = 3
|
||||
/\ timedOutOnce = FALSE
|
||||
/\ busyFalse = FALSE
|
||||
/\ early = TRUE
|
||||
/\ other = "none"
|
||||
/\ realCli = 3
|
||||
/\ handle = "held"
|
||||
/\ pollAge = 3
|
||||
/\ ever = {1}
|
||||
/\ total = 3
|
||||
/\ real = 2
|
||||
/\ pollOut = TRUE
|
||||
/\ since = 3
|
||||
/\ age = 0
|
||||
|
||||
1701 states generated, 887 distinct states found, 380 states left on queue.
|
||||
The depth of the complete state graph search is 9.
|
||||
The average outdegree of the complete state graph is 2 (minimum is 0, the maximum 7 and the 95th percentile is 5).
|
||||
Finished in 00s at (2026-12-02 21:08:56)
|
||||
@@ -1,23 +0,0 @@
|
||||
TLC2 Version 2.19 of 08 August 2024 (rev: 5a47802)
|
||||
Running breadth-first search Model-Checking with fp 113 and seed 1570076084288316622 with 4 workers on 8 cores with 14288MB heap and 64MB offheap memory [pid: 401568] (Linux 7.0.0-1020-azure amd64, Ubuntu 17.0.21.1 x86_64, MSBDiskFPSet, DiskStateQueue).
|
||||
Parsing file /home/swtest/c01-tlc-ct6/CutTime.tla
|
||||
Parsing file /tmp/Integers.tla
|
||||
Parsing file /tmp/FiniteSets.tla
|
||||
Parsing file /tmp/Naturals.tla
|
||||
Parsing file /tmp/Sequences.tla
|
||||
Semantic processing of module Naturals
|
||||
Semantic processing of module Integers
|
||||
Semantic processing of module Sequences
|
||||
Semantic processing of module FiniteSets
|
||||
Semantic processing of module CutTime
|
||||
Starting... (2026-12-02 21:08:35)
|
||||
Computing initial states...
|
||||
Finished computing initial states: 2 distinct states generated at 2026-12-02 21:08:35.
|
||||
Model checking completed. No error has been found.
|
||||
Estimates of the probability that TLC did not check all reachable states
|
||||
because two distinct states had the same fingerprint:
|
||||
calculated (optimistic): val = 2.3E-11
|
||||
41486 states generated, 18019 distinct states found, 0 states left on queue.
|
||||
The depth of the complete state graph search is 26.
|
||||
The average outdegree of the complete state graph is 1 (minimum is 0, the maximum 7 and the 95th percentile is 3).
|
||||
Finished in 00s at (2026-12-02 21:08:35)
|
||||
Loaded 100 of 115 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user