Skip to content

Instantly share code, notes, and snippets.

View avikivity's full-sized avatar
💭
Now you can set a status message about what you're currently doing on GitHub. Th

Avi Kivity avikivity

💭
Now you can set a status message about what you're currently doing on GitHub. Th
View GitHub Profile
title Lazily learning routing information
note over Driver: Driver does not know where token T is routed
Driver->Node1:request for token T
activate Node1
Node1->Node2:read from replica
deactivate Node1
activate Node2
Node1<-Node2:data
deactivate Node2
mindmap
  root((mindmap))
    Origins
      Long history
      ::icon(fa fa-book)
      Popularisation
        British popular psychology author Tony Buzan
    Research
 On effectivenessand features
#!/bin/bash -ex
using_container=0
using_gdb=0
while [[ "$1" = -* ]]; do
case "$1" in
--container)
using_container=1; shift
;;

Protocol extensions to the Cassandra Native Protocol

This document specifies extensions to the protocol defined by Cassandra's native_protocol_v4.spec and native_protocol_v5.spec. The extensions are designed so that a driver supporting them can continue to interoperate with Cassandra and other compatible servers with no configuration needed; the driver can discover the extensions and enable them conditionally.

@avikivity
avikivity / noncopyable_function.hh
Created October 3, 2017 14:33
noncopyable_function.hh
/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. 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
*
[ 78.392972] CPU: 6 PID: 7456 Comm: mount Tainted: G E 4.9.17-8.31.amzn1.x86_64 #1
[ 78.398320] Hardware name: Xen HVM domU, BIOS 4.2.amazon 12/12/2016
[ 78.402453] ffffc9003f07f828 ffffffff812fa21f 0000000000000000 0000000000000000
[ 78.409361] ffffc9003f07f868 ffffffff810717d1 000002093f07f888 ffffc9003f07f958
[ 78.416392] 0000000000000008 ffff883c4515c180 0000000000000000 0000000000000001
[ 78.423807] Call Trace:
[ 78.426073] [<ffffffff812fa21f>] dump_stack+0x63/0x84
[ 78.429674] [<ffffffff810717d1>] __warn+0xd1/0xf0
[ 78.433160] [<ffffffff810718bd>] warn_slowpath_null+0x1d/0x20
[ 78.437736] [<ffffffffa01ff945>] _xfs_buf_find+0x2d5/0x340 [xfs]