Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metadata: Fixed panic when no ext labels are set; Added more tests. #3461

Merged
merged 1 commit into from
Nov 18, 2020

Commits on Nov 18, 2020

  1. metadata: Fixed panic when no ext labels are set; Added more tests.

    ```
    caller=fetcher.go:700 msg="block has no labels left, creating one" replica=deduped
    panic: assignment to entry in nil map
    goroutine 441 [running]:
    github.com/thanos-io/thanos/pkg/block.(*ReplicaLabelRemover).Modify(0xc000b19d70, 0x2b261e0, 0xc000c16d00, 0xc0008596e0, 0xc000b1a980, 0x0, 0x0)
    	/remote-source/app/pkg/block/fetcher.go:701 +0x3cf
    github.com/thanos-io/thanos/pkg/block.(*BaseFetcher).fetch(0xc000d75d40, 0x2b261e0, 0xc000c16d00, 0xc000c16a40, 0xc000c16a00, 0x4, 0x4, 0xc000b0e590, 0x1, 0x1, ...)
    	/remote-source/app/pkg/block/fetcher.go:441 +0x65d
    github.com/thanos-io/thanos/pkg/block.(*MetaFetcher).Fetch(0xc0002fe480, 0x2b261e0, 0xc000c16d00, 0x5528a0, 0xc000c16340, 0xc0005c6000, 0x8)
    	/remote-source/app/pkg/block/fetcher.go:474 +0x9f
    github.com/thanos-io/thanos/pkg/compact.(*Syncer).SyncMetas(0xc000c67d80, 0x2b261e0, 0xc000c16d00, 0x0, 0x0)
    	/remote-source/app/pkg/compact/compact.go:127 +0xc0
    github.com/thanos-io/thanos/pkg/compact.(*BucketCompactor).Compact(0xc0002fed20, 0x2b261e0, 0xc000c16d00, 0x0, 0x0)
    	/remote-source/app/pkg/compact/compact.go:945 +0x2c2
    main.runCompact.func6(0xc000501c80, 0x0)
    	/remote-source/app/cmd/thanos/compact.go:307 +0x15a
    main.runCompact.func7.1(0xc0006bbd70, 0xc000bbe0a0)
    	/remote-source/app/cmd/thanos/compact.go:367 +0x99
    github.com/thanos-io/thanos/pkg/runutil.Repeat(0x45d964b800, 0xc00005a660, 0xc0007e9f30, 0x0, 0x0)
    	/remote-source/app/pkg/runutil/runutil.go:72 +0x91
    main.runCompact.func7(0x0, 0x0)
    	/remote-source/app/cmd/thanos/compact.go:366 +0x29a
    github.com/oklog/run.(*Group).Run.func1(0xc0001f9f20, 0xc000c67e00, 0xc000b0ecb0)
    	/remote-source/deps/gomod/pkg/mod/github.com/oklog/run@v1.1.0/group.go:38 +0x27
    created by github.com/oklog/run.(*Group).Run
    	/remote-source/deps/gomod/pkg/mod/github.com/oklog/run@v1.1.0/group.go:37 +0xbb
    
    ```
    
    Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
    bwplotka committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    5cde2a2 View commit details
    Browse the repository at this point in the history