Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove shared_store_prefix
  • Loading branch information
ashwanthgoli committed Oct 9, 2023
commit 6eb02455e5637b073a160ff99dd7f79353bc9249
2 changes: 1 addition & 1 deletion pkg/loki/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ func (t *Loki) initTableManager() (services.Service, error) {

reg := prometheus.WrapRegistererWith(prometheus.Labels{"component": "table-manager-store"}, prometheus.DefaultRegisterer)

tableClient, err := storage.NewTableClient(lastConfig.IndexType, t.Cfg.StorageConfig, t.clientMetrics, reg)
tableClient, err := storage.NewTableClient(lastConfig.IndexType, *lastConfig, t.Cfg.StorageConfig, t.clientMetrics, reg)
if err != nil {
return nil, err
}
Expand Down
12 changes: 8 additions & 4 deletions pkg/storage/chunk/client/aws/metrics_autoscaling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,10 @@ func TestTableManagerMetricsAutoScaling(t *testing.T) {
}},
},
{
IndexType: "aws-dynamo",
IndexTables: fixturePeriodicTableConfig(tablePrefix),
IndexType: "aws-dynamo",
IndexTables: config.IndexPeriodicTableConfig{
PeriodicTableConfig: fixturePeriodicTableConfig(tablePrefix),
},
ChunkTables: fixturePeriodicTableConfig(chunkTablePrefix),
},
},
Expand Down Expand Up @@ -322,8 +324,10 @@ func TestTableManagerMetricsReadAutoScaling(t *testing.T) {
}},
},
{
IndexType: "aws-dynamo",
IndexTables: fixturePeriodicTableConfig(tablePrefix),
IndexType: "aws-dynamo",
IndexTables: config.IndexPeriodicTableConfig{
PeriodicTableConfig: fixturePeriodicTableConfig(tablePrefix),
},
ChunkTables: fixturePeriodicTableConfig(chunkTablePrefix),
},
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/config/schema_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func validateChunks(cfg PeriodConfig) error {

func (cfg *PeriodConfig) applyDefaults() {
if cfg.IndexTables.PathPrefix == "" {
cfg.IndexTables.PathPrefix = "/index"
cfg.IndexTables.PathPrefix = "index/"
}

if cfg.RowShards == 0 {
Expand Down
Loading