]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/log
rocksdb.git
11 years ago- hdfs cleanup; fix to NewDirectory to comply with definition in env.h
Mike Orr [Wed, 21 May 2014 11:50:37 +0000 (07:50 -0400)]
- hdfs cleanup; fix to NewDirectory to comply with definition in env.h
- fix compile error with env_test; static casts added

11 years agohdfs cleanup and compile test against CDH 4.4.
Mike Orr [Tue, 20 May 2014 21:22:12 +0000 (17:22 -0400)]
hdfs cleanup and compile test against CDH 4.4.

11 years agoPrint out thread ID while thread terminates for decreased pool size.
sdong [Mon, 19 May 2014 21:25:11 +0000 (14:25 -0700)]
Print out thread ID while thread terminates for decreased pool size.

Summary: Per request from @nkg-, temporarily print thread ID when a thread terminates. It is a temp solution as we try to minimized stderr messages.

Test Plan: env_test

Reviewers: haobo, igor, dhruba

Reviewed By: igor

CC: nkg-, leveldb
Differential Revision: https://reviews.facebook.net/D18753

11 years agoThreadPool to allow decrease number of threads and increase of number of threads...
sdong [Mon, 19 May 2014 17:40:18 +0000 (10:40 -0700)]
ThreadPool to allow decrease number of threads and increase of number of threads is to be instantly scheduled

Summary:
Add a feature to decrease the number of threads in thread pool.
Also instantly schedule more threads if number of threads is increased.

Here is the way it is implemented: each background thread needs its thread ID. After decreasing number of threads, all threads are woken up. The thread with the largest thread ID will terminate. If there are more threads to terminate, the thread will wake up all threads again.

Another change is made so that when number of threads is increased, more threads are created and all previous excessive threads are woken up to do the work.

Test Plan: Add a unit test.

Reviewers: haobo, dhruba

Reviewed By: haobo

CC: yhchiang, igor, nkg-, leveldb
Differential Revision: https://reviews.facebook.net/D18675

11 years agoAdd .swp to gitignore
Igor Canadi [Fri, 16 May 2014 20:17:29 +0000 (13:17 -0700)]
Add .swp to gitignore

11 years agoAdd rapidjson to RocksDB
Igor Canadi [Thu, 15 May 2014 23:07:05 +0000 (16:07 -0700)]
Add rapidjson to RocksDB

Summary:
This diff adds rapidjson (https://code.google.com/p/rapidjson/) to RocksDB repository. First step to adding JSON is to add a JSON parser :)

I'm not sure if rapidjson is the right choice. I only considered folly as an alternative. Using folly JSON parser has serious downsides. I tried extracting folly::json from the folly library. However, it depends on folly::dynamic, which basically depends on everything else. I would prefer to avoid adding complete folly library as RocksDB dependency. Folly has a lot of its own dependencies (https://github.com/facebook/folly) and also looks like open source world has some trouble installing it (https://groups.google.com/forum/#!forum/facebook-folly -- 60% of the posts are compile errors). We can discuss this if you think otherwise.

RapidJSON does not have any dependencies whatsoever. No boost, no STL. We don't need to compile it since it's all header files. The performance results are also impressive: https://code.google.com/p/rapidjson/wiki/Performance. However, I'll make sure to write code in a way that we can easily switch JSON implementations going forward. Quora thread has some alternatives: http://www.quora.com/What-is-the-best-C-JSON-library

Test Plan: none

Reviewers: dhruba, haobo, yhchiang, sdong, jamesgpearce

Reviewed By: haobo

CC: leveldb
Differential Revision: https://reviews.facebook.net/D18729