Skip to content

Instantly share code, notes, and snippets.

View Zariel's full-sized avatar
💭
horsing around

Chris Bannister Zariel

💭
horsing around
  • London, United Kingdom
View GitHub Profile

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@Zariel
Zariel / cassandra.log
Created October 17, 2015 21:04
Cassandra error from travis
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Column family ID mismatch (found 691182f0-7510-11e5-9966-35cd3d881ca8; expected 66169270-7510-11e5-92b8-35cd3d881ca8)
at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:361) ~[apache-cassandra-2.1.9.jar:2.1.9]
at org.apache.cassandra.service.MigrationManager.announce(MigrationManager.java:375) ~[apache-cassandra-2.1.9.jar:2.1.9]
at org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(MigrationManager.java:250) ~[apache-cassandra-2.1.9.jar:2.1.9]
at org.apache.cassandra.cql3.statements.CreateTableStatement.announceMigration(CreateTableStatement.java:120) ~[apache-cassandra-2.1.9.jar:2.1.9]
at org.apache.cassandra.cql3.statements.SchemaAlteringStatement.execute(SchemaAlteringStatement.java:80) ~[apache-cassandra-2.1.9.jar:2.1.9]
at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238) ~[ap
Using worker: worker-linux-docker-77d6749e.prod.travis-ci.org:travis-linux-7
travis_fold:start:system_info
Build system information
Build language: go
Build image provisioning date and time
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
INFO [main] 2015-04-26 21:34:39,582 StorageService.java:550 - Loading persisted ring state
INFO [main] 2015-04-26 21:34:39,661 StorageService.java:702 - Starting up server gossip
INFO [main] 2015-04-26 21:34:39,672 ColumnFamilyStore.java:877 - Enqueuing flush of local: 1558 (0%) on-heap, 0 (0%) off-heap
INFO [MemtableFlushWriter:1] 2015-04-26 21:34:39,674 Memtable.java:339 - Writing Memtable-local@1107990747(288 serialized bytes, 10 ops, 0%/0% of on/off-heap limit)
INFO [MemtableFlushWriter:1] 2015-04-26 21:34:39,686 Memtable.java:378 - Completed flushing /home/vagrant/.ccm/test/node2/data/system/local-7ad54392bcdd35a684174e047860b377/system-local-ka-7-Data.db (263
bytes) for commitlog position ReplayPosition(segmentId=1430084078227, position=91753)
INFO [main] 2015-04-26 21:34:39,688 YamlConfigurationLoader.java:92 - Loading settings from file:/home/vagrant/.ccm/test/node2/conf/cassandra.yaml
INFO [main] 2015-04-26 21:34:39,698 YamlConfigurationLoader.java:135 - Node configuration:[authenticator=Allo
@Zariel
Zariel / godoc
Last active August 29, 2015 14:14
Self installing godoc, usefull for homebrew installs
#!/bin/bash
set -e
path=$(go env GOROOT)
if [[ -z $path ]]; then
echo "$GOROOT not found using go tool"
exit 1
fi
package main
import (
"bufio"
"fmt"
"os"
"time"
"github.com/gocql/gocql"
)
@Zariel
Zariel / gist:6df5d701329285ff5f60
Created June 4, 2014 17:34
database/sql 1.3 data race
==================
WARNING: DATA RACE
Write by goroutine 29:
container/list.(*List).insertValue()
/usr/local/go/src/pkg/container/list/list.go:105 +0x113
container/list.(*List).PushFront()
/usr/local/go/src/pkg/container/list/list.go:133 +0x63
database/sql.(*DB).putConnDBLocked()
/usr/local/go/src/pkg/database/sql/sql.go:807 +0x38d
database/sql.(*DB).openNewConnection()
==================
WARNING: DATA RACE
Write by goroutine 1615:
github.com/lib/pq.(*conn).send()
/usr/local/go/src/github.com/lib/pq/conn.go:605 +0x14b
github.com/lib/pq.(*conn).simpleExec()
/usr/local/go/src/github.com/lib/pq/conn.go:423 +0x3cd
github.com/lib/pq.(*conn).Begin()
/usr/local/go/src/github.com/lib/pq/conn.go:357 +0xf0
database/sql.(*DB).begin()
@Zariel
Zariel / gist:fc041e1c170d140ab9de
Last active August 29, 2015 14:02
database/sql panic
panic: interface conversion: interface is nil, not sql.connRequest
goroutine 24 [running]:
runtime.panic(0x7689c0, 0xc210b19480)
/usr/local/go/src/pkg/runtime/panic.c:266 +0xb6
database/sql.(*DB).putConnDBLocked(0xc210060680, 0xc210e2cea0, 0x0, 0x0, 0xc210b75c80)
/usr/local/go/src/pkg/database/sql/sql.go:785 +0x6f
database/sql.(*DB).openNewConnection(0xc210060680)
/usr/local/go/src/pkg/database/sql/sql.go:599 +0x187
database/sql.(*DB).connectionOpener(0xc210060680)
===================================================
thrift 1.0.0-dev: lib/cpp/test/test-suite.log
===================================================
# TOTAL: 11
# PASS: 10
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0