Skip to content

Instantly share code, notes, and snippets.

View jasobrown's full-sized avatar

Jason Brown jasobrown

View GitHub Profile
@jasobrown
jasobrown / dtest-fails-3.0-3.11-july-2018.txt
Created July 24, 2018 14:39
dump of @jasobrown's dtest fail analysis as os late July 2018
CASSANDRA 3.11 DTEST FAILS ::: https://circleci.com/workflow-run/c19fc633-7dd3-427b-b914-257409272274
no-vnodes:: 5 fails
1) internal - pytest
TypeError: unhashable type: 'InvalidRequestException'
2) test_describecluster_more_information_three_datacenters - nodetool_test.TestNodetool
@jasobrown
jasobrown / dtester.sh
Created November 21, 2017 02:55
run a dtest, in a loop
#!/bin/bash
TEST_NAME=$1
echo "&&&&&& going to dtest $TEST_NAME &&&&&&&&&&"
OUT="/tmp/junit-$TEST_NAME.log"
cd $DTEST_HOME
for i in `seq 1 50`; do
echo "******** $i -- $(date) ************"
@jasobrown
jasobrown / AckVerbHandler
Last active July 28, 2017 20:05
results from JMH bench on Gossiper.GossipTask.run()
# Run complete. Total time: 00:26:41
Benchmark (clusterSize) Mode Cnt Score Error Units
GossipTask_NoStatusCheck.doAckVerbHandler 16 sample 5276738 3882.207 ± 36.202 ns/op
GossipTask_NoStatusCheck.doAckVerbHandler:doAckVerbHandler·p0.00 16 sample 3160.000 ns/op
GossipTask_NoStatusCheck.doAckVerbHandler:doAckVerbHandler·p0.50 16 sample 3444.000 ns/op
GossipTask_NoStatusCheck.doAckVerbHandler:doAckVerbHandler·p0.90 16 sample 4264.000 ns/op
GossipTask_NoStatusCheck.doAckVerbHandler:doAckVerbHandler·p0.95 16 sample 4904.000 ns/op
GossipTask_NoStatusCheck.doAckVerbHandler:doAckVerbHandler·p0.99 16 sample 10288.000 ns/op
GossipTask_NoStatusCheck.doAckVerbHandler:doAckVerbHand
➜ ~ cat .Xmodmap
!!! xmodmap for apple mba keyboard/touchpad
!! left-to-right
!
!! clear mod keys
clear control
clear Mod1
clear Mod4
clear Mod5
@jasobrown
jasobrown / failure detector papers
Created August 28, 2015 01:21
failure detector papers
A Gossip-Style Failure Detection Service - http://www.cs.cornell.edu/Info/People/rvr/papers/GossipFD.pdf
The Failure Dectector Abstraction - http://perso.telecom-paristech.fr/~kuznetso/pubs/fdsurvey.pdf
The phi-accrual Failure Detector - http://www.jaist.ac.jp/~defago/files/pdf/IS_RR_2004_010.pdf
@jasobrown
jasobrown / CipherBench.java
Created July 31, 2015 23:06
9963 thread local cipher
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@jasobrown
jasobrown / gist:7e43a5cc9378a6711879
Last active August 29, 2015 14:08
peersim lib todo
- find replacement for JEP library
- license ????
- core/examples vs. core/scamp | core/lpbcast .... not sure how these are diff (does examples use the others?)
- core/examples/aggregation vs. aggregation/src classes? seems like a lot of duplicated code
@jasobrown
jasobrown / gist:de810fced4f0ed60ad8c
Last active August 29, 2015 14:07
gossip topics with João

Topics and questions for discussion with João and Jordan

topics

  • peer sampling service vs. gossip service
    • how does this map to cassandra? riak?
  • where does a failure detection system fall within a gossip system?

random questions

  • when João is thinking about 10k node systems, what does he imagine the puspose of that cluster to be and why using gossip? a P2P network, like bit torrent?
@jasobrown
jasobrown / AstyanaxSample.java
Created February 14, 2012 22:58
An example of using astyanax, a Java client for Cassandra (excerpt from http://slidesha.re/wkf57g)
public class AstyanaxSample {
/** entry point for the cluster; read the docs at https://github.com/Netflix/astyanax/wiki/Getting-Started */
private static final Keyspace keyspace = null; //null used for compilation; don't try this at home
/** declare/define the column family object */
private static final ColumnFamily<String, MyCompositeColumn> ALLOCS_COLUMN_FAMILY =
new ColumnFamily<String, MyCompositeColumn>("cust_allocs", StringSerializer.get(),
new AnnotatedCompositeSerializer<MyCompositeColumn>(MyCompositeColumn.class));
/** annotated class to represent the composite column type for an allocation */
private static class MyCompositeColumn {