You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS> [System.Environment]::OSVersion
Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 6.3.9600.0 Microsoft Windows NT 6.3.9600.0
Description of the Issue (and unexpected/desired result)
When raft BoltDB database reaches out 32 megabytes of a size, engine tries to proceed truncation.
Truncation failed due to the bug in BoltDB <?= 1.2.0.
Right after that, Consul loses Leadership and never got reelected since then.
Reproduction steps
Start consul 0.6.4 cluster on Windows
Create raft db to be 32 megs or a little less
When log will reach 32 megs, pray it will fail to be truncated
Log Fragments
2016/09/22 04:58:43 [INFO] consul.fsm: snapshot created in 0
2016/09/22 04:58:43 [INFO] raft: Starting snapshot up to 156190
2016/09/22 04:58:43 [INFO] snapshot: Creating new snapshot at C:\Tools\Consul\data\raft\snapshots\2-156190-1474520323417.tmp
2016/09/22 04:58:43 [INFO] snapshot: reaping snapshot C:\Tools\Consul\data\raft\snapshots\1-139749-1474459801156
2016/09/22 04:58:43 [INFO] raft: Compacting logs from 137716 to 145950
2016/09/22 04:58:43 [ERR] raft: Failed to take snapshot: log compaction failed: file resize error: truncate C:\Tools\Consul\data\raft\raft.db: The requested operation cannot be performed on a file with a user-mapped section open.
2016/09/22 04:59:29 [ERR] raft: Failed to commit logs: file resize error: truncate C:\Tools\Consul\data\raft\raft.db: The requested operation cannot be performed on a file with a user-mapped section open.
2016/09/22 04:59:29 [INFO] raft: Node at ...:8300 [Follower] entering Follower state
2016/09/22 04:59:29 [INFO] consul: cluster leadership lost
2016/09/22 04:59:29 [WARN] consul.coordinate: Batch update failed: file resize error: truncate C:\Tools\Consul\data\raft\raft.db: The requested operation cannot be performed on a file with a user-mapped section open.
2016/09/22 04:59:30 [WARN] raft: EnableSingleNode disabled, and no known peers. Aborting election.
2016/09/22 04:59:46 [ERR] agent: coordinate update error: No cluster leader
2016/09/22 05:00:01 [ERR] agent: coordinate update error: No cluster leader
consul version
for both Client and Serverconsul info
for both Client and ServerOperating system and Environment details
Description of the Issue (and unexpected/desired result)
When raft BoltDB database reaches out 32 megabytes of a size, engine tries to proceed truncation.
Truncation failed due to the bug in BoltDB <?= 1.2.0.
Right after that, Consul loses Leadership and never got reelected since then.
Reproduction steps
Log Fragments
Related Issues
Backports
https://github.com/sitano/consul/commits/v0.6.4-bp
The text was updated successfully, but these errors were encountered: