-
Notifications
You must be signed in to change notification settings - Fork 105
Conversation
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)") |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
e4272c2
to
cb9bf66
Compare
we need to fix the index schema in 0.7 before we publish a mt-index-migrate-06-to-07 binary. |
ah i see what you're saying. for you mt-index-migrate-06-to-07 implies it will work for 0.7 stable. meh ok I don't lean strongly either way. |
Once PR #465 is merged, this can be merged. |
@Dieterbe once the merge conflicts are resolved, this can be merged |
be clear about the version and what it does exactly. also rename partition-by to partition-scheme
taken from https://gist.github.com/woodsaj/148dc5659a08299623dd57ffb5b4064c with just a more updated help message
20b188f
to
b96c0f5
Compare
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. ?