Skip to content

Instantly share code, notes, and snippets.

View alxyang's full-sized avatar

Alex Yang alxyang

View GitHub Profile
@alxyang
alxyang / auth_fail_socketio_test
Created January 10, 2015 02:19
Authorization fail test socketio
var http = require('http').Server;
var io = require('..');
// ...
it('should be able to set authorization and send error packet', function(done) {
var httpSrv = http();
var srv = io(httpSrv);
// srv.set('authorization', function(o, f) { f(null, false); });
From d065fd65b96419a26657a4df03447f9e04e3dff6 Mon Sep 17 00:00:00 2001
From: Alex Yang <alexyang@fb.com>
Date: Thu, 19 Jan 2017 17:01:22 -0800
Subject: [PATCH] add rocksdb_force_flush_memtable_and_lzero sys var which
allows manually flushing memtable and L0
---
mysql-test/r/mysqld--help-notwin-profiling.result | 4 ++
mysql-test/r/mysqld--help-notwin.result | 4 ++
mysql-test/suite/rocksdb/r/rocksdb.result | 1 +
Stacktrace:
#0 0x00007ffff5a13d02 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#1 0x00007ffff5a15af6 in __GI_abort () at abort.c:89
#2 0x00007ffff5a0c6c5 in __assert_fail_base (fmt=, assertion=assertion@entry=0x1d22b54 "ptr != SuperVersion::kSVInUse", file=file@entry=0x1d222c8 "/home/alexyang/mysql/5.6/rocksdb/db/column_family.cc", line=line@entry=844, function=function@entry=0x1d26200 <rocksdb::ColumnFamilyData::GetThreadLocalSuperVersion(rocksdb::InstrumentedMutex*)::PRET
TY_FUNCTION> "rocksdb::SuperVersion* rocksdb::ColumnFamilyData::GetThreadLocalSuperVersion(rocksdb::InstrumentedMutex*)") at assert.c:92
#3 0x00007ffff5a0c773 in __GI___assert_fail (assertion=0x1d22b54 "ptr != SuperVersion::kSVInUse", file=0x1d222c8 "/home/alexyang/mysql/5.6/rocksdb/db/column_family.cc", line=844, function=0x1d26200 rocksdb::ColumnFamilyData::GetThreadLocalSuperVersion(rocksdb::InstrumentedMutex*)::__PRETTY_FUNCTION__ "rocksdb::SuperVersion* rocksdb::ColumnFamilyData::GetThrea
dLocalSuperVersion
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Oct 13 2016 15:15:15)
Included patches: 1-32
Compiled by root
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_sgr +tag_old_static
+arabic +find_in_path -mouse_sysmouse -tag_any_white
+autocmd +float +mouse_urxvt -tcl
-balloon_eval +folding +mouse_xterm +termguicolors
-browse -footer +multi_byte +terminfo
++builtin_terms +fork() +multi_lang +termresponse