This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
REMOTE=${GERRIT:-gerrit} | |
GERRIT_NUMBER=$1 | |
REV_A=$2 | |
REV_B=$3 | |
if ! [[ "$GERRIT_NUMBER" =~ "[0-9]+" ]] || \ | |
! [[ "$REV_A" =~ "[0-9]+" ]] || \ | |
! [[ "$REV_B" =~ "[0-9]+" ]] ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/thread/thread.hpp> | |
#define CHECK(x) if (!x) { abort(); } | |
struct State { | |
State() | |
: x(0) { | |
} | |
boost::mutex m; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo Waiting for NTP sync status | |
start_time=$(cut -f1 -d. /proc/uptime) | |
delta=0 | |
while ntptime | grep UNSYNC ; do | |
now=$(cut -f1 -d. /proc/uptime) | |
delta=$[$now - $start_time] | |
if [ $delta -gt 600 ]; then | |
echo NTP time sync never achieved. Failing build. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alignbrk = 0x1e00000, 0 | |
00400000-00401000 r-xp 00000000 08:01 5376992 /home/todd/test | |
Size: 4 kB | |
Rss: 4 kB | |
Pss: 4 kB | |
Shared_Clean: 0 kB | |
Shared_Dirty: 0 kB | |
Private_Clean: 4 kB | |
Private_Dirty: 0 kB | |
Referenced: 4 kB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set_time_limit(30); | |
ignore_user_abort(true); | |
while (!connection_aborted()) { | |
echo "\n"; | |
flush(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
my $GMETRIC = '/usr/bin/gmetric'; | |
my %DISKS = ( | |
'dm-0' => 'root', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun switch-to-test () | |
"Switch to corresponding unit test." | |
(interactive) | |
(let ((newf | |
(if | |
(string-match "/Test[^/]+\\.java$" (buffer-file-name)) | |
(let* | |
((newf (replace-regexp-in-string "/Test\\([^/]+\\.java\\)$" "/\\1" (buffer-file-name))) | |
(newf (replace-in-string newf "hadoop-hdfs/src/test/hdfs" "hadoop-hdfs/src/java")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.apache.hadoop.mapred; | |
import java.io.*; | |
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.io.BytesWritable; | |
import org.apache.hadoop.util.ReflectionUtils; | |
class Test { | |
public static void main(String []args) throws Exception { | |
Configuration conf = new Configuration(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1. HBase ACID Properties Specification (Draft) | |
Document Revision: TODO: Put the git revision number here (How do you do that?) | |
This specification enumerates the ACID properties of HBase. | |
A first draft was posted to the user list 03/29/2010. Please note bugs in this document or comments along with the document revision up in https://issues.apache.org/jira/browse/HBASE-2294 | |
h2. Definitions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 081e16ad9cfcba9cdb6d438845c2c60552589c18 | |
Author: Todd Lipcon <todd@lipcon.org> | |
Date: Tue May 18 19:06:17 2010 -0700 | |
HDFS-895. Tighten up assertions on sequence numbering, fix a small bug where the sequence would have "holes" in it | |
diff --git a/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java b/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java | |
index 2460f6a..5bcbaa8 100644 | |
--- a/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java | |
+++ b/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java |
OlderNewer