Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
disk-io-mgr-stress.cc File Reference
#include "runtime/disk-io-mgr-stress.h"
#include "util/time.h"
#include "common/names.h"
Include dependency graph for disk-io-mgr-stress.cc:

Go to the source code of this file.

Classes

struct  impala::DiskIoMgrStress::Client
 

Functions

static void CreateTempFile (const char *filename, const char *data)
 
string GenerateRandomData ()
 

Variables

static const float ABORT_CHANCE = .10f
 
static const int MIN_READ_LEN = 1
 
static const int MAX_READ_LEN = 20
 
static const int MIN_FILE_LEN = 10
 
static const int MAX_FILE_LEN = 1024
 
static const int MAX_BUFFERS = 12
 
static const int MIN_READ_BUFFER_SIZE = 64
 
static const int MAX_READ_BUFFER_SIZE = 128
 
static const int CANCEL_READER_PERIOD_MS = 20
 

Function Documentation

static void CreateTempFile ( const char *  filename,
const char *  data 
)
static
string GenerateRandomData ( )

Definition at line 45 of file disk-io-mgr-stress.cc.

References MAX_FILE_LEN, and MIN_FILE_LEN.

Referenced by impala::DiskIoMgrStress::DiskIoMgrStress().

Variable Documentation

const float ABORT_CHANCE = .10f
static

Definition at line 23 of file disk-io-mgr-stress.cc.

Referenced by impala::DiskIoMgrStress::NewClient().

const int CANCEL_READER_PERIOD_MS = 20
static

Definition at line 36 of file disk-io-mgr-stress.cc.

Referenced by impala::DiskIoMgrStress::Run().

const int MAX_BUFFERS = 12
static

Definition at line 30 of file disk-io-mgr-stress.cc.

const int MAX_FILE_LEN = 1024
static
const int MAX_READ_BUFFER_SIZE = 128
static

Definition at line 34 of file disk-io-mgr-stress.cc.

Referenced by impala::DiskIoMgrStress::DiskIoMgrStress().

const int MAX_READ_LEN = 20
static

Definition at line 25 of file disk-io-mgr-stress.cc.

Referenced by impala::DiskIoMgrStress::NewClient().

const int MIN_FILE_LEN = 10
static

Definition at line 27 of file disk-io-mgr-stress.cc.

Referenced by GenerateRandomData().

const int MIN_READ_BUFFER_SIZE = 64
static

Definition at line 33 of file disk-io-mgr-stress.cc.

Referenced by impala::DiskIoMgrStress::DiskIoMgrStress().

const int MIN_READ_LEN = 1
static

Definition at line 24 of file disk-io-mgr-stress.cc.

Referenced by impala::DiskIoMgrStress::NewClient().