-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
different shardid for the same shard in 2 different cluster nodes #1006
Comments
some additional info from the logs at the time of the shard start, looks like we went into a "split brain" like situation. Not sure if it is worthy further analysis on this as clustering is being redesigned 2014/10/02 01:38:29 CEST] WARN Server marked as up. Heartbeat succeeded [2014/10/02 00:18:54 CEST] WARN Server marked as up. Heartbeat succeeded |
can you paste the list of shards that you have on the server. It should be under the cluster tab in the admin ui |
Hi here it goes from server1 in the cluster from server2 in the cluster |
Did you upgrade from an earlier version ? |
not we dropped all data from previous version and installed from scratch 0.8.3 |
This is probably related to https://github.com/goraft/raft/blob/master/server.go#L1188, I opened an issue goraft/raft#238 to discuss a fix for this bug |
The clustering code is being completely rewritten for v0.9.0, so this will no longer be relevant. Closing it out. |
we are using influxdb 0.8.3 in a cluster set up (with just 2 nodes to test) and with default configuration and we ended up having 2 different shardids for the same shard, that results in empty results when querying the data from the node with the "wrong" shardid
below the log entries for the same query from the 2 different nodes
[2014/10/06 17:17:18 CEST] INFO Start Query: db: t_metrics, u: root, q: select * from springfield01.disk-sda3.disk_octets.write where time< now() -1d AND time> now() -2d limit 1
[2014/10/06 17:17:18 CEST] DEBG Querying shards sequentially
...
[2014/10/06 17:17:18 CEST] DEBG QUERYING: shard: 0 [ID: 338, START: 1412208000000000, END: 1412812800000000, LOCAL: true, SERVERS: []]
[2014/10/06 17:17:18 CEST] DEBG QUERY: shard 338, query 'select * from "springfield01.disk-sda3.disk_octets.write" limit 1'
[2014/10/06 17:18:36 CEST] INFO Start Query: db: t_metrics, u: root, q: select * from springfield01.disk-sda3.disk_octets.write where time< now() -1d AND time> now() -2d limit 1
[2014/10/06 17:18:36 CEST] DEBG Querying shards sequentially
...
[2014/10/06 17:18:36 CEST] DEBG QUERYING: shard: 0 [ID: 337, START: 1412208000000000, END: 1412812800000000, LOCAL: false, SERVERS: [1]]
[2014/10/06 17:18:36 CEST] DEBG QUERY: shard 337, query 'select * from "springfield01.disk-sda3.disk_octets.write" limit 1'
[2014/10/06 17:18:36 CEST] DEBG Querying server 1 for shard 337
The text was updated successfully, but these errors were encountered: