Skip to content

Instantly share code, notes, and snippets.

View wcpan's full-sized avatar

Weicheng Pan wcpan

View GitHub Profile
{
"events": [
{
"replyToken": "nHuyWiB7yP5Zw52FIkcQobQuGDXCTA",
"type": "message",
"timestamp": 1462629479859,
"source": {
"type": "user",
"userId": "U206d25c2ea6bd87c17655609a1c37cb8"
},
# See http://docs.chef.io/config_rb_knife.html for more information on knife configuration options
current_dir = File.dirname(__FILE__)
user = ENV['USER']
orgname = ENV['ORGNAME'] || 'nevec'
log_level :info
log_location STDOUT
node_name user
client_key "#{ENV['HOME']}/.chef/#{user}.pem"
# Config format: HOCON
# https://github.com/typesafehub/config/blob/master/HOCON.md
# See core/src/main/resources/default.conf for complete documentation of the properties in this config file.
gondola {
hosts = [
{ hostId = "host1", hostname = "fanos898.sports.bf1.yahoo.com", port = "2828", appScheme = "http", appPort = "4080", siteId = "bf1" }
{ hostId = "host2", hostname = "fanos899.sports.bf1.yahoo.com", port = "2828", appScheme = "http", appPort = "4080", siteId = "bf1" },
{ hostId = "host3", hostname = "fanos900.sports.gq1.yahoo.com", port = "2838", appScheme = "http", appPort = "4080", siteId = "gq1" },
{ hostId = "host4", hostname = "fanos898.sports.gq1.yahoo.com", port = "2828", appScheme = "http", appPort = "4080", siteId = "bf1" }
12:46:51 ERROR CoreMember:431 -1- Unhandled exception in MainLoop
com.yahoo.gondola.GondolaException: The database has been closed [90098-190]
at com.yahoo.gondola.impl.H2dbStorage.getLastLogEntry(H2dbStorage.java:355)
at com.yahoo.gondola.core.SaveQueue.initSavedIndex(SaveQueue.java:250)
at com.yahoo.gondola.core.SaveQueue.settle(SaveQueue.java:217)
at com.yahoo.gondola.core.CoreMember.become(CoreMember.java:648)
at com.yahoo.gondola.core.CoreMember.becomeFollower(CoreMember.java:712)
at com.yahoo.gondola.core.CoreMember$MainLoop.mainLoop(CoreMember.java:478)
at com.yahoo.gondola.core.CoreMember$MainLoop.run(CoreMember.java:427)
Caused by: org.h2.jdbc.JdbcSQLException: The database has been closed [90098-190]
18:33:57 WARN Peer:485 -1- [host4-84] recv(86): end-of-file
18:33:57 INFO SocketChannel:226 -1- [host4-84] Socket to 86 is now non-operational. Closing.
18:33:57 INFO SocketChannel:318 -1- [host4-84] Reconnecting socket null to 86
18:33:57 INFO CoreMember:1380 -1- [host4-84] Entering slave mode to master 81
18:33:57 INFO SaveQueue:225 -1- [host4-84] Deleting all records in the log
18:33:57 INFO SaveQueue:514 -1- [host4-84] SaveQueue: deleting index=1
18:33:57 INFO SaveQueue:195 -1- [host4-84] Settling storage. workQ=0 waiters=5 maxGap=10
18:33:57 INFO SaveQueue:268 -1- [host4-84] Initializing save index with latest=(0,0) maxGap=10
18:33:57 INFO SocketChannel:318 -1- [host4-84] Reconnecting socket null to 81
18:33:57 INFO SaveQueue:195 -1- [host4-84] Settling storage. workQ=0 waiters=5 maxGap=0
==> target/host4 <==
18:01:58 ERROR ChangeLogProcessor:91 -1- index=4783 should be saved but is not. si=11789 ci=34423
java.lang.IllegalStateException: index=4783 should be saved but is not. si=11789 ci=34423
at com.yahoo.gondola.core.CommitQueue.get(CommitQueue.java:148)
at com.yahoo.gondola.core.CoreMember.getCommittedLogEntry(CoreMember.java:385)
at com.yahoo.gondola.Shard.getCommittedCommand(Shard.java:228)
at com.yahoo.gondola.Shard.getCommittedCommand(Shard.java:208)
17:56:39 INFO DemoService:90 -1- [host2] Get key 1=11522
17:56:39 ERROR CoreMember:583 -1-
java.lang.NullPointerException
at com.yahoo.gondola.core.CoreMember.lambda$sendAppendEntryRequest$19(CoreMember.java:947)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at com.yahoo.gondola.core.CoreMember.sendAppendEntryRequest(CoreMember.java:947)
at com.yahoo.gondola.core.CoreMember.handleCommand(CoreMember.java:627)
at com.yahoo.gondola.core.CoreMember$CommandHandler.run(CoreMember.java:578)
17:56:39 ERROR CoreMember:431 -1- Unhandled exception in MainLoop
java.lang.NullPointerException
java.lang.NullPointerException
at com.yahoo.gondola.core.CoreMember.stop(CoreMember.java:265)
at com.yahoo.gondola.Shard.stop(Shard.java:77)
at com.yahoo.gondola.Gondola.stop(Gondola.java:178)
at com.yahoo.gondola.container.AdminClientIT$$Lambda$98/36531985.accept(Unknown Source)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -Dvisualvm.id=64440926912264 -ea -Didea.launcher.port=7547 "-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/Conte
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -Dvisualvm.id=63931688523892 -ea -Didea.launcher.port=7546 "-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/Conte