Skip to content

Instantly share code, notes, and snippets.

View wcpan's full-sized avatar

Weicheng Pan wcpan

View GitHub Profile
#include<stdio.h>
struct foo {
int alice;
int bob;
};
// global variable
int a = 3;
int test(){
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
log4j:ERROR Could not find value for key log4j.appender.summary
log4j:ERROR Could not instantiate appender named "summary".
[VerboseTestNG] RUNNING: Suite: "Surefire test" containing "35" Tests (config: null)
[VerboseTestNG] FAILED: "Surefire test" - com.yahoo.gondola.core.GondolaTest.backfill() finished in 6 ms
[VerboseTestNG] java.lang.RuntimeException
[VerboseTestNG] FAILED: "Surefire test" - com.yahoo.gondola.core.GondolaTest.backfillDiffTerms() finished in 1 ms
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -Dvisualvm.id=179651883150150 -ea -Didea.launcher.port=7532 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 15.app/Contents/bin" -Didea.testng.sm_runner -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 15.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA 15.app/Contents/plugins/testng/lib/testng-plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Cont
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -Dvisualvm.id=180414960240914 -ea -Didea.launcher.port=7536 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 15.app/Contents/bin" -Didea.testng.sm_runner -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 15.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA 15.app/Contents/plugins/testng/lib/testng-plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Cont
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -Dvisualvm.id=180815825664196 -ea -Didea.launcher.port=7542 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 15.app/Contents/bin" -Didea.testng.sm_runner -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 15.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA 15.app/Contents/plugins/testng/lib/testng-plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Cont
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -Dvisualvm.id=181426723119744 -ea -Didea.launcher.port=7545 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 15.app/Contents/bin" -Didea.testng.sm_runner -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 15.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA 15.app/Contents/plugins/testng/lib/testng-plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Cont
2015-11-23 18:55:47,168 INFO Block requests on shard : shard3
2015-11-23 18:55:47,168 INFO Wait until raft logs applied to storage...
2015-11-23 18:55:47,172 INFO Executing assign buckets=[0‥10] from shard1 to shard2
2015-11-23 18:55:47,172 INFO Initializing slaves on shard2 ...
2015-11-23 18:55:47,172 INFO [host6] shardId=shard2 follows shardId=shard1 as slave
2015-11-23 18:55:47,173 WARN [host5-85] recv(86): end-of-file
2015-11-23 18:55:47,173 INFO [host5-85] Reconnecting socket Socket[addr=/127.0.0.1,port=57822,localport=2185] to 86
2015-11-23 18:55:47,173 WARN [host4-84] recv(86): end-of-file
2015-11-23 18:55:47,173 INFO [host4-84] Reconnecting socket Socket[addr=/127.0.0.1,port=57823,localport=2184] to 86
2015-11-23 18:55:47,174 INFO [host6-86] Becomes FOLLOWER of 81 (primary)
This file has been truncated, but you can view the full file.
Sender.run(Peer.java:666)
2015-11-26 13:34:42,328 WARN [host1-81] Failed to send to 86: null
java.io.EOFException
at com.yahoo.gondola.impl.SocketChannel.getOutputStream(SocketChannel.java:204)
at com.yahoo.gondola.core.Peer$Sender.run(Peer.java:666)
2015-11-26 13:34:42,328 WARN [host1-81] Failed to send to 84: null
java.io.EOFException
at com.yahoo.gondola.impl.SocketChannel.getOutputStream(SocketChannel.java:204)
at com.yahoo.gondola.core.Peer$Sender.run(Peer.java:666)
2015-11-26 13:34:42,328 WARN [host1-81] Failed to send to 86: null
2015-11-30 17:07:49,559 INFO [host5] Update shard 'shard2' leader as http://localhost:8084
2015-11-30 17:07:49,566 INFO [host5-85] Become leader on "shard2", blocking all requests to the shard....
2015-11-30 17:07:49,566 INFO [host5] Block requests on shard : shard2
2015-11-30 17:07:49,566 INFO [host5-85] Wait until raft logs applied to storage...
2015-11-30 17:07:49,877 INFO [host1] Update shard 'shard1' leader as http://localhost:8080
2015-11-30 17:07:49,877 INFO [host1-81] Become leader on "shard1", blocking all requests to the shard....
2015-11-30 17:07:49,878 INFO [host1] Block requests on shard : shard1
2015-11-30 17:07:49,878 INFO [host1-81] Wait until raft logs applied to storage...
2015-11-30 17:07:49,967 INFO [host9] Update shard 'shard3' leader as http://localhost:8088
2015-11-30 17:07:49,976 INFO [host9-89] Become leader on "shard3", blocking all requests to the shard....
2015-11-30 18:14:02,331 INFO ------- Gondola start: host5, localhost/127.0.0.1:2832, pid=18202 -------
2015-11-30 18:14:02,350 INFO localhost:2832 is not active: Connection refused
2015-11-30 18:14:02,365 INFO Initializing H2DB storage. maxCommandSize=1000 url=jdbc:h2:/tmp/gondola-db-host5 user=sa
2015-11-30 18:14:02,738 INFO H2DB autoCommit=true
2015-11-30 18:14:02,816 INFO [host5-85] Initializing save index with latest=(0,0) maxGap=0
2015-11-30 18:14:02,825 INFO [host5-85] Becomes FOLLOWER of -1
2015-11-30 18:14:02,826 INFO [host5-85] Settling storage. workQ=0 busy=0 maxGap=0
2015-11-30 18:14:02,828 INFO [host5-85] Initializing save index with latest=(0,0) maxGap=0
2015-11-30 18:14:02,841 INFO [host5-85] Reconnecting socket null to 86
2015-11-30 18:14:02,849 WARN [host5-85] Failed to create socket to 86 (localhost/127.0.0.1:2833): Connection refused