This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"fmt" | |
"log" | |
"math" | |
"time" | |
"github.com/coreos/etcd/raft" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go test -race | |
--- FAIL: TestRaft_RemoveFollower (0.08s) | |
raft_test.go:187: [WARN] Fully Connecting | |
raft_test.go:91: [INFO] raft: Node at e455190b-8170-88d3-89d4-82bfb0779976 [Follower] entering Follower state | |
raft_test.go:91: [INFO] raft: Node at 57dc7b84-9f07-54e4-7d5d-184a938bdea1 [Follower] entering Follower state | |
raft_test.go:91: [INFO] raft: Node at 5c7f8efc-3c6c-e845-e65c-6c34c4a75221 [Follower] entering Follower state | |
raft_test.go:91: [WARN] raft: Heartbeat timeout reached, starting election | |
raft_test.go:91: [INFO] raft: Node at e455190b-8170-88d3-89d4-82bfb0779976 [Candidate] entering Candidate state | |
raft_test.go:91: [DEBUG] raft: Votes needed: 2 | |
raft_test.go:91: [DEBUG] raft: Vote granted from e455190b-8170-88d3-89d4-82bfb0779976. Tally: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go test -race | |
================== | |
WARNING: DATA RACE | |
Read by goroutine 138: | |
github.com/hashicorp/raft.TestRaft_RemoveLeader_SplitCluster() | |
/Users/amb/go/src/github.com/hashicorp/raft/raft_test.go:992 +0x3f7 | |
testing.tRunner() | |
/usr/local/go/src/testing/testing.go:447 +0x133 | |
Previous write by goroutine 139: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go test -race | |
================== | |
WARNING: DATA RACE | |
Read by goroutine 127: | |
github.com/hashicorp/raft.TestRaft_RemoveLeader_SplitCluster() | |
/Users/amb/go/src/github.com/hashicorp/raft/raft_test.go:992 +0x3f7 | |
testing.tRunner() | |
/usr/local/go/src/testing/testing.go:447 +0x133 | |
Previous write by goroutine 128: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Date: Tuesday, 15 March 2016 at 18:11:52 Greenwich Mean Time | |
*** Platform Details: | |
*** System properties: | |
applicationXMI=org.eclipse.ui.workbench/LegacyIDE.e4xmi | |
awt.toolkit=sun.lwawt.macosx.LWCToolkit | |
eclipse.application=org.eclipse.ui.ide.workbench | |
eclipse.buildId=4.5.2.M20160212-1500 | |
eclipse.commands=-os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Eclipse IDE for Java Developers 4.5.2.20160218-0600 epp.package.java null | |
EPP Java Package 4.5.2.20160218-0600 org.eclipse.epp.package.java.feature.feature.group Eclipse Packaging Project | |
Buildship: Eclipse Plug-ins for Gradle 1.0.8.v20160201-1803 org.eclipse.buildship.feature.group Eclipse Buildship | |
Code Recommenders for Java Developers 2.3.0.v20160216-1255 org.eclipse.recommenders.rcp.feature.feature.group Eclipse Code Recommenders | |
Code Recommenders Mylyn Integration 2.3.0.v20160216-1255 org.eclipse.recommenders.mylyn.rcp.feature.feature.group Eclipse Code Recommenders | |
Code Recommenders Snipmatch 2.3.0.v20160216-1255 org.eclipse.recommenders.snipmatch.rcp.feature.feature.group Eclipse Code Recommenders | |
Eclipse Git Team Provider 4.1.1.201511131810-r org.eclipse.egit.feature.group Eclipse EGit | |
Eclipse Git Team Provider - Task focused interface 4.1.1.201511131810-r org.eclipse.egit.mylyn.feature.group Eclipse EGit | |
Eclipse Help System 2.1.2.v20160212-1500 org.ecli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/time.h> | |
#include <inttypes.h> | |
int | |
timeval_subtract(struct timeval *result, struct timeval *x, | |
struct timeval *y) | |
{ | |
if (x->tv_usec < y->tv_usec) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIIDSzCCAgOgAwIBAgIEVwQNzDANBgkqhkiG9w0BAQsFADAVMRMwEQYDVQQDEwpB | |
bGV4IEJsaWdoMB4XDTE2MDQwNTE5MTEwOFoXDTE3MDQwNTE5MTEwOFowFTETMBEG | |
A1UEAxMKQWxleCBCbGlnaDCCAVIwDQYJKoZIhvcNAQEBBQADggE/ADCCAToCggEx | |
AMTtsWhYOU8iEFlGfkCb+RbqeyansOHjVS90jLNXSmd8GLS9vpfLogR3b4Vc9jCc | |
aJuQqJhSvhP5JDOuEycEN3u8Yhemi1AEPiF6ZIRczTxw4cWgR6km0g4AoaSFTWD7 | |
baQkqKFygawYY8rDS0Q7Op+POqpCUz7irRSGbig3FVA3QLoGGBkiY8baB795XP6r | |
SBmyURWnPNVpsmFf0c5GbLb+CriUkmaR3Hf9cUj/Q2fowRJ3zBSukl4Xiw20Aj6T | |
PL/k6yFJvqX5j4BtWUNG6aji6ckbtg1gnEW65wPYw1Mzw5wGFA73u+1lT5/vVhmA | |
CZaCKuu5wKGJe7fHhdvE23BPcJZ699/miRBERLnOVQnO6t3SAgMOS3yQ5TlPczXd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./qemu-img info --object tls-creds-x509,id=tls0,dir=../certs,endpoint=client,verify-peer=yes --image-opts driver=nbd,host=127.0.0.1,port=6666,export=foo,tls-creds=tls0 | |
2: ASSERT: x509.c:2987 | |
2: ASSERT: mpi.c:609 | |
2: ASSERT: dn.c:1209 | |
4: REC[0x7f3627870630]: Allocating epoch #0 | |
2: ASSERT: gnutls_constate.c:695 | |
4: REC[0x7f3627870630]: Allocating epoch #1 | |
3: HSK[0x7f3627870630]: Keeping ciphersuite: DHE_RSA_AES_128_CBC_SHA1 | |
3: HSK[0x7f3627870630]: Keeping ciphersuite: DHE_RSA_AES_128_CBC_SHA256 | |
3: HSK[0x7f3627870630]: Keeping ciphersuite: DHE_RSA_CAMELLIA_128_CBC_SHA1 |