Skip to content

Instantly share code, notes, and snippets.

View synfinatic's full-sized avatar

Aaron Turner synfinatic

View GitHub Profile

Keybase proof

I hereby claim:

  • I am synfinatic on github.
  • I am synfinatic (https://keybase.io/synfinatic) on keybase.
  • I have a public key whose fingerprint is E419 7573 00DB 9F44 7197 A15B 936E D30F 880A DC1B

To claim this, I am signing this object:

@synfinatic
synfinatic / publish_targets.rb
Created September 16, 2013 17:26
start of the death spiral
19:31:08,890 WARN [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (hornetq-failure-check-thread) Connection failure has been detected: Did not receive data from invm:0. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might have configured connection-ttl and client-failure-check-period incorrectly. Please check user manual for more information. The connection will now be closed. [code=3]
19:31:09,731 WARN [org.hornetq.core.server.impl.ServerSessionImpl] (hornetq-failure-check-thread) Client connection failed, clearing up resources for session a71c2c41-1b28-11e3-8d21-bfcd2102f300
19:31:09,731 WARN [org.hornetq.core.server.impl.ServerSessionImpl] (hornetq-failure-check-thread) Cleared up resources for session a71c2c41-1b28-11e3-8d21-bfcd2102f300
19:31:09,731 WARN [org.hornetq.core.server.impl.ServerSessionImpl] (hornetq-failure-check-thread) Client connection failed, clearing up resources for session
aaront@cass1a.sv2:~/support-tools/build> ./checksstablegarbage
At lest 1 SSTableFile needs to be provided
Usage: class com.cloudian.support.SSTableGarbageChecker (-t|-e) SSTableFile1 [SSTableFile2 ... SSTableFileN]
aaront@cass1a.sv2:~/support-tools/build> ./checksstablegarbage -e /cassandra-data/data/spider3/InterfaceDaily-hc-48640-Data.db
Loading schema ...
Loaded schema
Opening InterfaceDaily-hc-48640-Data.db...
Opening keyspace spider3 ...
Opened keyspace spider3 ...
Getting column family InterfaceDaily ...
$ ls -lha InterfaceDaily-*Data.db
-rw-rw-r-- 163 cassandra cassandra 1.9G Mar 26 15:16 InterfaceDaily-hc-29835-Data.db
-rw-rw-r-- 163 cassandra cassandra 92M Mar 26 15:53 InterfaceDaily-hc-29882-Data.db
-rw-rw-r-- 163 cassandra cassandra 92M Mar 26 17:00 InterfaceDaily-hc-29914-Data.db
-rw-rw-r-- 163 cassandra cassandra 1.9G Mar 26 17:44 InterfaceDaily-hc-29922-Data.db
-rw-rw-r-- 160 cassandra cassandra 8.8G Mar 30 08:45 InterfaceDaily-hc-30281-Data.db
-rw-rw-r-- 58 cassandra cassandra 6.8G Jul 9 14:44 InterfaceDaily-hc-42800-Data.db
-rw-rw-r-- 9 cassandra cassandra 6.7G Aug 28 10:08 InterfaceDaily-hc-47986-Data.db
-rw-rw-r-- 6 cassandra cassandra 915M Aug 31 10:30 InterfaceDaily-hc-48307-Data.db
-rw-rw-r-- 3 cassandra cassandra 905M Sep 3 12:37 InterfaceDaily-hc-48624-Data.db
13:11:54,903 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015004: Caught exception writing deployment marker file /home/tools/torquebox/jboss/standalone/deployments/spider-devel-knob.yml.pending: java.io.FileNotFoundException: /home/tools/torquebox/jboss/standalone/deployments/spider-devel-knob.yml.pending (Too many open files)
at java.io.FileOutputStream.open(Native Method) [rt.jar:1.6.0_33]
at java.io.FileOutputStream.<init>(FileOutputStream.java:194) [rt.jar:1.6.0_33]
at java.io.FileOutputStream.<init>(FileOutputStream.java:145) [rt.jar:1.6.0_33]
at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService.createMarkerFile(FileSystemDeploymentService.java:892) [jboss-as-deployment-scanner-7.1.x.incremental.129.jar:7.1.x.incremental.129]
at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService.access$2600(FileSystemDeploymentService.java:84) [jboss-as-deployment-scanner-7.1.x.incremental.129.jar:7.1.x.increme
@synfinatic
synfinatic / tcpliveplay-fix.patch
Created April 28, 2013 16:29
Patch for tcpreplay issue #4
--- src/tcpliveplay.c 2013-04-18 16:05:51.000000000 +0200
+++ /tmp/c/tcpreplay-3.4/src/tcpliveplay.c 2013-04-18 16:03:08.000000000 +0200
@@ -1051,26 +1051,14 @@
}
/*Calculate & fix checksum for newly edited-packet*/
16:25:00,001 ERROR [org.torquebox.core.runtime] (JobScheduler$spider-knob.yml_Worker-1) Error during evaluation: begin; require %q(torquebox-messaging); true; rescue LoadError; $stderr.puts 'ERROR: torquebox-messaging gem not loaded - skipping destination injection'; false; end: java.lang.ArrayIndexOutOfBoundsException
16:25:00,001 INFO [org.quartz.core.JobRunShell] (JobScheduler$spider-knob.yml_Worker-1) Job spider-knob.yml.publishtargets threw a JobExecutionException: : org.quartz.JobExecutionException: java.lang.ArrayIndexOutOfBoundsException [See nested exception: java.lang.ArrayIndexOutOfBoundsException]
at org.torquebox.jobs.RubyJobProxy.execute(RubyJobProxy.java:67) [torquebox-jobs.jar:2.3.0]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz.jar:]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz.jar:]
Caused by: java.lang.ArrayIndexOutOfBoundsException
@synfinatic
synfinatic / gist:5267144
Created March 28, 2013 21:52
HornetQ/job failure
21:46:39,581 WARN [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016027: Local XARecoveryModule.xaRecovery got XA exception XAException.XAER_RMERR: javax.transaction.xa.XAException: Error trying to co
nnect to any providers for xa recovery
at org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.getDelegate(HornetQXAResourceWrapper.java:275) [hornetq-jms-2.2.13.Final.jar:]
at org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.recover(HornetQXAResourceWrapper.java:77) [hornetq-jms-2.2.13.Final.jar:]
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecovery(XARecoveryModule.java:503) [jbossjts-4.16.2.Final.jar:]
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.resourceInitiatedRecoveryForRecoveryHelpers(XARecoveryModule.java:471) [jbossjts-4.16.2.Final.jar:]
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.bottomUpRecovery(XARecoveryModule.java:385) [jbossjts-4.16.2.Final.jar:]
at com.arjuna.ats.
23:05:17,907 INFO [org.jboss.as.messaging] (MSC service thread 1-7) JBAS011601: Bound messaging object to jndi name java:/queues/targets
23:05:17,907 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-7) trying to deploy queue jms.queue./queues/inmontargets
23:05:17,908 INFO [org.jboss.as.messaging] (MSC service thread 1-7) JBAS011601: Bound messaging object to jndi name java:/queues/inmontargets
23:05:17,909 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-7) trying to deploy queue jms.queue./queues/torquebox/spider/tasks/torquebox_backgroundable
23:05:17,910 INFO [org.jboss.as.messaging] (MSC service thread 1-7) JBAS011601: Bound messaging object to jndi name java:/queues/torquebox/spider/tasks/torquebox_backgroundable
23:05:17,960 INFO [org.quartz.core.SchedulerSignalerImpl] (MSC service thread 1-7) Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
23:05:17,970 INFO [org.quartz.core.QuartzScheduler] (MSC service t
@synfinatic
synfinatic / gist:5136724
Last active December 14, 2015 19:29
standalone.xml diff
diff standalone.xml.orig standalone.xml
1c1
< <?xml version='1.0' encoding='UTF-8'?>
---
> <?xml version='1.0' encoding='UTF-8'?>
44a45
>
47a49
> <property name='org.torquebox.web.http.maxThreads' value='200'/>