Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Better mt index migrate #451

Merged
merged 5 commits into from
Jan 16, 2017
Merged

Better mt index migrate #451

merged 5 commits into from
Jan 16, 2017

Conversation

Dieterbe
Copy link
Contributor

@Dieterbe Dieterbe commented Jan 6, 2017

interestingly, the fixes in my 3rd commit undo changes that @woodsaj made between his original version of the tool and the last one he posted on gist. ?

@Dieterbe Dieterbe requested a review from woodsaj January 6, 2017 15:27
logLevel = flag.Int("log-level", 2, "log level. 0=TRACE|1=DEBUG|2=INFO|3=WARN|4=ERROR|5=CRITICAL|6=FATAL")
cassAddr = flag.String("cass-addr", "localhost", "Address of cassandra host.")
keyspace = flag.String("keyspace", "raintank", "Cassandra keyspace to use.")
partitionSchema = flag.String("partition-schema", "byOrg", "method used for paritioning metrics. (byOrg|bySeries)")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be "partitionScheme" to match tsdb-gw.

@@ -50,18 +50,18 @@ func main() {
log.Fatalf("failed to create cql session. %s", err)
}
wg.Add(1)
go writeDefs(session, defsChan, wg)
go writeDefs(session, defsChan, &wg)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other tools, i have just made the waitGroup a package variable rather than passing it to the goroutines.

@woodsaj
Copy link
Member

woodsaj commented Jan 6, 2017

@Dieterbe we need address #453 before this is merged.

@Dieterbe
Copy link
Contributor Author

@Dieterbe we need address #453 before this is merged.

why? I think this PR is ready to merge and independent of that.

@woodsaj
Copy link
Member

woodsaj commented Jan 11, 2017

why? I think this PR is ready to merge and independent of that.

we need to fix the index schema in 0.7 before we publish a mt-index-migrate-06-to-07 binary.

@Dieterbe
Copy link
Contributor Author

ah i see what you're saying. for you mt-index-migrate-06-to-07 implies it will work for 0.7 stable.
for me it's implied that it is for the current 0.7 beta since 0.7 is not released yet.

meh ok I don't lean strongly either way.

@woodsaj
Copy link
Member

woodsaj commented Jan 12, 2017

Once PR #465 is merged, this can be merged.

@woodsaj
Copy link
Member

woodsaj commented Jan 16, 2017

@Dieterbe once the merge conflicts are resolved, this can be merged

@Dieterbe Dieterbe merged commit ad513e4 into master Jan 16, 2017
@Dieterbe Dieterbe deleted the better-mt-index-migrate branch January 2, 2018 16:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants