Skip to content

Commit 2e42471

Browse files
authored
Merge pull request #119 from intergral/dskit
chore(dskit): update grafana/dskit
2 parents 39c03fc + af352a0 commit 2e42471

73 files changed

Lines changed: 538 additions & 618 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/on_push.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- name: Set up Go 1.20
19-
uses: actions/setup-go@v5
18+
- uses: actions/setup-go@v5
2019
with:
21-
go-version: 1.20.x
20+
go-version: 1.23.x
2221

2322
- name: Check out code
2423
uses: actions/checkout@v4
@@ -50,10 +49,9 @@ jobs:
5049
name: Build
5150
runs-on: ubuntu-latest
5251
steps:
53-
- name: Set up Go 1.20
54-
uses: actions/setup-go@v5
52+
- uses: actions/setup-go@v5
5553
with:
56-
go-version: 1.20.x
54+
go-version: 1.23.x
5755

5856
- name: Check out code
5957
uses: actions/checkout@v4
@@ -72,10 +70,9 @@ jobs:
7270
name: Vendor check
7371
runs-on: ubuntu-latest
7472
steps:
75-
- name: Set up Go 1.20
76-
uses: actions/setup-go@v5
73+
- uses: actions/setup-go@v5
7774
with:
78-
go-version: 1.20.x
75+
go-version: 1.23.x
7976

8077
- name: Check out code
8178
uses: actions/checkout@v4
@@ -87,10 +84,9 @@ jobs:
8784
name: Lint & Format
8885
runs-on: ubuntu-latest
8986
steps:
90-
- name: Set up Go 1.20
91-
uses: actions/setup-go@v5
87+
- uses: actions/setup-go@v5
9288
with:
93-
go-version: 1.20.x
89+
go-version: 1.23.x
9490

9591
- name: Check out code
9692
uses: actions/checkout@v4

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
<!-- 1.0.9 START -->
2+
# 1.0.9 (18/04/2024)
3+
- **[FEATURE]**: add support for ipv6 [#119](https://github.com/intergral/deep/pull/119) [@Umaaz](https://github.com/Umaaz)
4+
<!-- 1.0.9 END -->
5+
16
<!-- 1.0.8 START -->
27
# 1.0.8 (23/04/2024)
38
- **[BUGFIX]**: fix deepql running in distributed mode [#95](https://github.com/intergral/deep/pull/95) [@Umaaz](https://github.com/Umaaz)
4-
<!-- 1.0.8 START -->
9+
<!-- 1.0.8 END -->
510

611
<!-- 1.0.7 START -->
712
# 1.0.7 (18/04/2024)

cmd/deep-cli/cmd-list-column.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
"github.com/intergral/deep/pkg/deepdb/encoding/vparquet"
2828
pq "github.com/intergral/deep/pkg/parquetquery"
29-
"github.com/segmentio/parquet-go"
29+
"github.com/parquet-go/parquet-go"
3030
)
3131

3232
type listColumnCmd struct {
@@ -64,9 +64,10 @@ func (cmd *listColumnCmd) Run(ctx *globalOptions) error {
6464
fmt.Printf("\n*************** rowgroup %d ********************\n\n\n", i)
6565

6666
pages := cc.Pages()
67-
numPages := cc.ColumnIndex().NumPages()
68-
fmt.Println("Min Value of rowgroup", cc.ColumnIndex().MinValue(0).Bytes())
69-
fmt.Println("Max Value of rowgroup", cc.ColumnIndex().MaxValue(numPages-1).Bytes())
67+
ci, _ := cc.ColumnIndex()
68+
numPages := ci.NumPages()
69+
fmt.Println("Min Value of rowgroup", ci.MinValue(0).Bytes())
70+
fmt.Println("Max Value of rowgroup", ci.MaxValue(numPages-1).Bytes())
7071

7172
buffer := make([]parquet.Value, 10000)
7273
for {

cmd/deep-cli/cmdListObjects.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/google/uuid"
2828
"github.com/intergral/deep/pkg/deepdb/encoding/vparquet"
2929
"github.com/olekukonko/tablewriter"
30-
"github.com/segmentio/parquet-go"
30+
"github.com/parquet-go/parquet-go"
3131
)
3232

3333
type listObjectsCmd struct {

cmd/deep/app/app.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ import (
4343
"github.com/gorilla/mux"
4444
"github.com/grafana/dskit/grpcutil"
4545
"github.com/grafana/dskit/kv/memberlist"
46+
"github.com/grafana/dskit/middleware"
4647
"github.com/grafana/dskit/modules"
4748
"github.com/grafana/dskit/ring"
49+
"github.com/grafana/dskit/server"
4850
"github.com/grafana/dskit/services"
51+
"github.com/grafana/dskit/signals"
4952
frontend_v1 "github.com/intergral/deep/modules/frontend/v1"
5053
"github.com/intergral/deep/modules/generator"
5154
"github.com/jedib0t/go-pretty/v6/table"
5255
"github.com/pkg/errors"
5356
"github.com/prometheus/client_golang/prometheus"
5457
"github.com/prometheus/common/version"
55-
"github.com/weaveworks/common/middleware"
56-
"github.com/weaveworks/common/server"
57-
"github.com/weaveworks/common/signals"
5858
"google.golang.org/grpc"
5959
"google.golang.org/grpc/health/grpc_health_v1"
6060
"gopkg.in/yaml.v3"

cmd/deep/app/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ import (
3737
"github.com/grafana/dskit/flagext"
3838
"github.com/grafana/dskit/kv/memberlist"
3939

40+
"github.com/grafana/dskit/server"
4041
generator_client "github.com/intergral/deep/modules/generator/client"
4142
ingester_client "github.com/intergral/deep/modules/ingester/client"
4243
"github.com/intergral/deep/modules/storage"
4344
internalserver "github.com/intergral/deep/pkg/server"
4445
"github.com/prometheus/client_golang/prometheus"
45-
"github.com/weaveworks/common/server"
4646
)
4747

4848
// Config is the root config for App.
@@ -97,7 +97,7 @@ func (c *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet) {
9797
flagext.DefaultValues(&c.InternalServer)
9898

9999
// Increase max message size to 16MB
100-
c.Server.GPRCServerMaxRecvMsgSize = 16 * 1024 * 1024
100+
c.Server.GRPCServerMaxRecvMsgSize = 16 * 1024 * 1024
101101
c.Server.GRPCServerMaxSendMsgSize = 16 * 1024 * 1024
102102

103103
// The following GRPC server settings are added to address this issue - https://github.com/intergral/deep/issues/493

cmd/deep/app/fake_auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"context"
2222
"net/http"
2323

24+
"github.com/grafana/dskit/middleware"
2425
"github.com/intergral/deep/pkg/util"
25-
"github.com/weaveworks/common/middleware"
2626
"google.golang.org/grpc"
2727
)
2828

cmd/deep/app/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ package app
2020
import (
2121
"net/http"
2222

23+
"github.com/grafana/dskit/middleware"
2324
"github.com/klauspost/compress/gzhttp"
24-
"github.com/weaveworks/common/middleware"
2525
)
2626

2727
func httpGzipMiddleware() middleware.Interface {

cmd/deep/app/modules.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ import (
2727
"github.com/grafana/dskit/dns"
2828
"github.com/grafana/dskit/kv/codec"
2929
"github.com/grafana/dskit/kv/memberlist"
30+
"github.com/grafana/dskit/middleware"
3031
"github.com/grafana/dskit/modules"
3132
"github.com/grafana/dskit/ring"
33+
"github.com/grafana/dskit/server"
3234
"github.com/grafana/dskit/services"
3335
"github.com/intergral/deep/modules/compactor"
3436
"github.com/intergral/deep/modules/distributor"
@@ -56,8 +58,6 @@ import (
5658
jsoniter "github.com/json-iterator/go"
5759
"github.com/prometheus/client_golang/prometheus"
5860
"github.com/prometheus/client_golang/prometheus/collectors"
59-
"github.com/weaveworks/common/middleware"
60-
"github.com/weaveworks/common/server"
6161
)
6262

6363
// The various modules that make up deep.
@@ -450,7 +450,6 @@ func (t *App) initStore() (services.Service, error) {
450450

451451
func (t *App) initMemberListKV() (services.Service, error) {
452452
reg := prometheus.DefaultRegisterer
453-
t.cfg.MemberlistKV.MetricsRegisterer = reg
454453
t.cfg.MemberlistKV.MetricsNamespace = metricsNamespace
455454
t.cfg.MemberlistKV.Codecs = []codec.Codec{
456455
ring.GetCodec(),

cmd/deep/app/server_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"fmt"
2323

2424
"github.com/go-kit/log/level"
25+
"github.com/grafana/dskit/server"
2526
"github.com/grafana/dskit/services"
26-
"github.com/weaveworks/common/server"
2727

2828
util_log "github.com/intergral/deep/pkg/util/log"
2929
)

0 commit comments

Comments
 (0)