Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#374: batch scan #3

Open
wants to merge 262 commits into
base: rs_unload001
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
262 commits
Select commit Hold shift + click to select a range
f533c26
Merge remote-tracking branch 'upstream/master'
00k Oct 13, 2015
8172d38
Merge remote-tracking branch 'baidu_tera/master' into rb.master
lylei Oct 13, 2015
1447d44
issue=#382 add rollback test cases
lylei Oct 15, 2015
05cb217
Merge remote-tracking branch baidu_tera/master into rb.master
lylei Oct 15, 2015
13f269f
Merge remote-tracking branch 'upstream/master'
00k Oct 16, 2015
46003ad
Merge remote-tracking branch 'upstream/master'
00k Oct 18, 2015
8889f6e
issue=#122 update build.sh
00k Oct 18, 2015
607de1c
give up clean dirty meta when creating table
xupeilin Oct 16, 2015
c6a8ddc
issue=#393 permission on table admin
taocp Oct 16, 2015
d5781f7
update build.sh
00k Oct 19, 2015
b0778b5
Merge remote-tracking branch 'upstream/master'
00k Oct 20, 2015
f66b56a
#388 add ft for this issue
MichelleZ Oct 20, 2015
66c13a4
rm status kTabletDeleting kTableDeleted #375
xupeilin Oct 20, 2015
241dade
Merge pull request #375 from xupeilin/bug/clear-meta-befor-create-table
00k Oct 21, 2015
09582dc
issue=#393 resolve conflicts
taocp Oct 21, 2015
dd2db4e
user-root-functional-test
taocp Oct 19, 2015
6a7391c
resolve conflicts
taocp Oct 21, 2015
38cc3b9
Merge pull request #394 from taocp/permission-on-table-at-master
xupeilin Oct 21, 2015
0c1ee13
Merge pull request #407 from caijieming-baidu/rs_unload001
lylei Oct 21, 2015
4bd5fc3
issue=#393 table-admin
taocp Oct 21, 2015
f607cfe
Merge pull request #381 from 00k/master
xupeilin Oct 21, 2015
c101408
Merge pull request #395 from lylei/rb.master
bluebore Oct 22, 2015
3c47dcf
Merge pull request #415 from taocp/table-owner
bluebore Oct 22, 2015
b63fd51
Merge remote-tracking branch 'baidu_tera/master' into ft
MichelleZ Oct 22, 2015
caf5c36
Merge remote-tracking branch 'upstream/master'
00k Oct 22, 2015
ceaea6a
resolve conflicts
taocp Oct 22, 2015
92ea3a7
add static default logger in Logger #419
xupeilin Oct 22, 2015
9cb55ee
rm useless logger #419
xupeilin Oct 22, 2015
e463fa1
rm NewLogger from env_dfs
xupeilin Oct 22, 2015
f1a152c
#374: batch scan
Oct 22, 2015
0df1e87
#374: batch scan
Oct 22, 2015
1157de5
Merge pull request #9 from baidu/master
bluebore Oct 23, 2015
898f329
Create UserManual.md
bluebore Oct 23, 2015
1693dae
issue=#416 table-name-bugfix
taocp Oct 23, 2015
724c7a9
issue=#426, bug fix: teracli showx
fxsjy Oct 26, 2015
f68a8d6
Merge pull request #427 from fxsjy/showx_bug
xupeilin Oct 26, 2015
8d27dc0
modify default leveldb Log function
xupeilin Oct 26, 2015
ef34f31
Merge pull request #420 from xupeilin/bug/manifest-delete-error
bluebore Oct 26, 2015
34819ea
issue=#null using python checkout stdout
taocp Oct 26, 2015
91f7b4f
issue=#null resolve conflicts
taocp Oct 26, 2015
51a106f
add tcmalloc flag: TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES #386
xupeilin Oct 26, 2015
b789653
issue=#null teracli-show-master-addr
taocp Oct 26, 2015
d4ccbd8
issue=#null new method:python-is-substr
taocp Oct 27, 2015
eb2ed4c
Merge pull request #430 from xupeilin/set-tcmalloc-prop
bluebore Oct 27, 2015
bfbd9ed
Merge pull request #414 from taocp/functional-test-users
bluebore Oct 27, 2015
88077eb
Merge pull request #429 from taocp/teracli-show-master-addr
bluebore Oct 27, 2015
ac719c5
solve last_seq overflow when deleting log #431
xupeilin Oct 27, 2015
dac0560
Merge pull request #434 from xupeilin/bug/last_seq-overflow
00k Oct 27, 2015
5c2280a
strip-trailing-whitespaces
taocp Oct 27, 2015
1298542
issue=#432 new teracli show
taocp Oct 27, 2015
af55663
Merge pull request #435 from taocp/strip-trailing-whitespaces
lylei Oct 28, 2015
81b04cb
issue=#272 teracli doc
taocp Oct 25, 2015
e90af55
Update utils_cmd.cc
Nov 1, 2015
ef0f269
Merge remote-tracking branch 'upstream/master' into teracli-show-bugfix
taocp Nov 2, 2015
ca9d0f5
issue=#null delete unless log
taocp Nov 2, 2015
39ebcd2
issue=#440 tera-leveldb-unit-test-fix
taocp Nov 3, 2015
3c3d250
issue=#432 new teracli show
taocp Nov 3, 2015
174c504
Merge pull request #441 from taocp/ts-info-log
xupeilin Nov 3, 2015
40a96a0
Merge pull request #433 from taocp/teracli-show-bugfix
00k Nov 3, 2015
32d97d5
issue=#436 wal-log-info
taocp Nov 2, 2015
157500c
enable default logger in onebox
xupeilin Nov 4, 2015
7997c97
bugfixing: tablet path get error, do not match in master
xupeilin Nov 4, 2015
ca5a359
bugfixing: show mem&imm size error #388
xupeilin Nov 4, 2015
0b71d08
bugfixing: show mem&imm size error #388
xupeilin Nov 4, 2015
2e5dec2
Merge pull request #445 from xupeilin/bug/show-size
00k Nov 4, 2015
45b7a68
Merge remote-tracking branch 'upstream/master'
00k Nov 4, 2015
3eb7eb7
Merge pull request #439 from zhouxiangxiang/patch-1
taocp Nov 5, 2015
392a28b
mem_table size change along with sst_size #449
xupeilin Nov 5, 2015
f7f29e4
Merge remote-tracking branch 'baidu/master' into modify-sst-size
xupeilin Nov 5, 2015
5fddcb3
Create master_design.md
00k Nov 5, 2015
9d2ef14
Update master_design.md
00k Nov 5, 2015
78ca632
Update master_design.md
00k Nov 5, 2015
7c8a250
Update master_design.md
00k Nov 5, 2015
9a32a78
issue=#452 add work_flow doc
lylei Nov 6, 2015
064b53f
Merge pull request #442 from taocp/tera-leveldb-unit-test-fix
xupeilin Nov 6, 2015
d70a4cd
issue=#452 add work_flow doc
lylei Nov 6, 2015
8158de5
Update master_design.md
00k Nov 6, 2015
5474961
Create to_be_a_contributor.md
bluebore Nov 8, 2015
c0c4d65
Merge remote-tracking branch 'upstream/master'
00k Nov 9, 2015
a20cad4
Update README.md
bluebore Nov 9, 2015
a6ec537
Update timer.h
Nov 10, 2015
2a6deaa
add max_write_buffer_size
xupeilin Nov 10, 2015
ffe3092
Update to_be_a_contributor.md
bluebore Nov 10, 2015
fe3c912
bug: discard empty MANIFEST in a empty tablet #458
xupeilin Nov 10, 2015
f347971
Merge remote-tracking branch 'baidu/master' into modify-sst-size
xupeilin Nov 10, 2015
f8e2aca
issue=#459 add make test in Makefile in leveldb
MichelleZ Nov 10, 2015
f92dcd8
Merge pull request #450 from xupeilin/modify-sst-size
bluebore Nov 10, 2015
75f8016
Merge remote-tracking branch 'baidu/master' into modify-sst-size
xupeilin Nov 10, 2015
b5e2efd
Merge remote-tracking branch 'baidu_tera/master' into ft
MichelleZ Nov 10, 2015
accde69
issue=#459 add make test for leveldb
MichelleZ Nov 10, 2015
f079c99
Merge pull request #425 from taocp/create-table-check
bluebore Nov 11, 2015
f6ef6af
Merge pull request #457 from zhouxiangxiang/patch-2
00k Nov 11, 2015
f54111c
issue=#272 teracli doc
taocp Nov 13, 2015
1a639f8
issue=#null sdk-bugfix
taocp Nov 13, 2015
88a2b67
Merge remote-tracking branch 'baidu_tera/master'
lylei Nov 16, 2015
72d9319
bugfixing: compaction overflow when sst_size>200M #467
xupeilin Nov 16, 2015
4116ca7
Merge remote-tracking branch 'upstream/master'
00k Nov 16, 2015
a5f8993
issue=#468 sdk.show.bugfix
taocp Nov 16, 2015
8badb8f
issue=#462 python-sdk-init
taocp Nov 9, 2015
d5174bc
Merge pull request #470 from taocp/sdk.show.bugfix
xupeilin Nov 16, 2015
2905060
Merge pull request #466 from taocp/sdk-bugfix
xupeilin Nov 16, 2015
2a971d1
issue=459 add make test in Makefile for leveldb
MichelleZ Nov 16, 2015
1c7b4bb
Merge pull request #473 from MichelleZ/leveldb
xupeilin Nov 16, 2015
7ec4695
Merge pull request #463 from taocp/python-sdk
xupeilin Nov 16, 2015
53e5e89
Merge pull request #469 from xupeilin/bug/compact-overflow
bluebore Nov 17, 2015
5493170
Merge pull request #460 from xupeilin/modify-sst-size
bluebore Nov 17, 2015
76a23ba
add DeleteDir recursive
xupeilin Nov 17, 2015
062c601
Merge remote-tracking branch 'baidu_tera/master'
lylei Nov 17, 2015
7c69dbe
Merge pull request #453 from lylei/master
bluebore Nov 17, 2015
4923242
xMerge remote-tracking branch 'baidu_tera/master'
lylei Nov 17, 2015
434dd13
Merge pull request #428 from taocp/teracli-doc
xupeilin Nov 17, 2015
be43d8d
Merge pull request #422 from bluebore/master
xupeilin Nov 17, 2015
229b22c
issue=#451 add merge to cli for test
lylei Nov 17, 2015
de8475a
Merge pull request #475 from lylei/cli.merge
xupeilin Nov 17, 2015
a31d555
issue=#null table-owner
taocp Nov 17, 2015
3c9a102
master gc support clean trash dir #477
xupeilin Nov 17, 2015
e083ab8
issue=#462 python-sdk delete
taocp Nov 17, 2015
79b1336
Merge pull request #479 from taocp/python-sdk
xupeilin Nov 18, 2015
fe4c3af
Merge remote-tracking branch 'baidu_tera/master'
lylei Nov 18, 2015
2ad1dd0
remove level0 sst limit #480
xupeilin Nov 18, 2015
f77a330
Merge pull request #478 from xupeilin/remove-trash-dir
bluebore Nov 18, 2015
9e0085c
Merge pull request #481 from xupeilin/remove-level0-limit
bluebore Nov 19, 2015
c71d53d
split always success #482
xupeilin Nov 19, 2015
fa28ae1
unit test fixing
xupeilin Nov 19, 2015
e4badc6
add get_time_str in timer.h to format timestamp
xupeilin Nov 19, 2015
921a46a
show tabletnode update time
xupeilin Nov 19, 2015
8770008
batch scan impl TEST PASS
Nov 20, 2015
78c2dcb
Merge pull request #476 from taocp/table-owner
xupeilin Nov 20, 2015
a472b3f
add kZombie status when showts&showtsx
xupeilin Nov 21, 2015
c20accd
Merge remote-tracking branch 'baidu/master' into find-zombie-ts
xupeilin Nov 23, 2015
29e98b4
Merge pull request #488 from xupeilin/find-zombie-ts
lylei Nov 23, 2015
8cdeac9
Merge pull request #485 from xupeilin/tabletnode-info-utime
lylei Nov 23, 2015
003c0be
Merge remote-tracking branch 'baidu_tera/master'
lylei Nov 23, 2015
69ab0c1
Merge remote-tracking branch 'baidu/master' into find-zombie-ts
xupeilin Nov 23, 2015
eaf3f48
var name fix
xupeilin Nov 23, 2015
9437488
Merge pull request #489 from xupeilin/find-zombie-ts
lylei Nov 23, 2015
c07cac6
check dfs rmdir support
xupeilin Nov 23, 2015
287a76c
remove Exists from env_dfs GetChildren
xupeilin Nov 23, 2015
07bc131
#374: batch scan impl TEST PASS
Nov 23, 2015
48be5e3
issue=#492 fix eva
lylei Nov 24, 2015
c00383d
Merge remote-tracking branch 'baidu_tera/master'
lylei Nov 24, 2015
dcfa180
clean trash dir after master garbage collection
xupeilin Nov 24, 2015
c40191f
Merge pull request #493 from lylei/eva
xupeilin Nov 24, 2015
548eddb
Merge pull request #408 from MichelleZ/ft
xupeilin Nov 24, 2015
43db5d2
issue=#451 add help meg to teracli helpmore
lylei Nov 24, 2015
fa91ae3
Merge pull request #495 from lylei/cli.merge
xupeilin Nov 24, 2015
bee7aab
Merge remote-tracking branch 'upstream/master'
00k Nov 24, 2015
b069b68
bugfix: load balance on heavy load
00k Nov 24, 2015
d9e8695
Merge pull request #496 from 00k/loadbugfix
bluebore Nov 24, 2015
cd09333
FindAverageKey boundary check
xupeilin Nov 24, 2015
410d6c8
read_pending_counter leak
xupeilin Nov 23, 2015
b42acda
Merge pull request #483 from xupeilin/always-split-success
bluebore Nov 24, 2015
292f1e9
Merge pull request #491 from xupeilin/check-dfs-rmdir-support
bluebore Nov 24, 2015
fda4695
Merge pull request #499 from xupeilin/bug/read-pending-counter-leak-2
bluebore Nov 24, 2015
4f0547c
issue=#492 tera_bench & sev seq write with step
lylei Nov 25, 2015
27f4219
Merge remote-tracking branch 'baidu_tera/master'
lylei Nov 25, 2015
43bca77
bugfixing: log may print NULL #500
xupeilin Nov 25, 2015
df6f9b4
#374: batch scan impl TEST PASS
Nov 25, 2015
9d605ec
bugfixing: libhdfs1.2 can not list path which not exist #502
xupeilin Nov 25, 2015
4d5f349
Merge branch 'master' of https://github.com/baidu/tera into scan_test001
Nov 25, 2015
8788bf9
#374: batch scan impl TEST PASS
Nov 25, 2015
fba3aa6
#374: batch scan impl TEST PASS
Nov 25, 2015
8942cc3
Merge pull request #501 from xupeilin/bug/master-log-core
bluebore Nov 25, 2015
4b14a83
#374: batch scan impl TEST PASS
Nov 25, 2015
9feab9d
#374: batch scan impl TEST PASS
Nov 25, 2015
765e558
#374: batch scan impl TEST PASS
Nov 25, 2015
5f2e5b0
#374: batch scan impl TEST PASS
Nov 25, 2015
9a585a6
#374: batch scan impl TEST PASS
Nov 25, 2015
17b9b75
#374: batch scan impl TEST PASS
Nov 25, 2015
b5569a4
issue=#null sdk-log-improte
taocp Nov 26, 2015
e0c6b44
#374: batch scan impl TEST PASS
Nov 26, 2015
b12e7fa
#374: batch scan impl TEST PASS
Nov 26, 2015
735fd4b
#374: batch scan impl TEST PASS
Nov 26, 2015
028b32d
delete empty MANIFEST #509
xupeilin Nov 27, 2015
7480fcc
Merge remote-tracking branch 'baidu_tera/master'
lylei Nov 27, 2015
22936c8
#374: batch scan impl TEST PASS
Nov 27, 2015
8a360d3
issue=#504 rowkey-length-limit
taocp Nov 25, 2015
38f20c4
Merge remote-tracking branch 'baidu_tera/master' into eva
lylei Nov 27, 2015
c1c9d2f
issue=#492 add step to seq write in tera_mark & eva
lylei Nov 27, 2015
ac52a50
Merge pull request #505 from taocp/rowkey-limit-64K
bluebore Nov 27, 2015
e718513
Merge pull request #10 from baidu/master
bluebore Nov 27, 2015
f108646
issue=#492 can stop eva anytime after the first query
lylei Nov 27, 2015
c92924e
Create sdk_dev_guide.md
xupeilin Nov 27, 2015
ee593e9
Merge pull request #507 from taocp/wal-log-info
xupeilin Nov 27, 2015
a39638d
Merge pull request #506 from taocp/bugfix.return.stack.var
xupeilin Nov 27, 2015
df8560c
Merge pull request #514 from lylei/eva
xupeilin Nov 27, 2015
c62bafe
Update sdk_dev_guide.md
xupeilin Nov 27, 2015
c66cbb6
Update sdk_dev_guide.md
xupeilin Nov 27, 2015
bb1ef5d
Fix sysinfo counter
bluebore Nov 30, 2015
fc3c8c4
Merge pull request #524 from bluebore/master
xupeilin Nov 30, 2015
3973a99
Fix flush_triggered_log_size
bluebore Nov 30, 2015
f15d767
Merge pull request #525 from bluebore/master
00k Nov 30, 2015
46d9ce9
Merge remote-tracking branch 'baidu_tera/master'
lylei Nov 30, 2015
ee924f9
issue=#526 fix core when deli file is empty
lylei Nov 30, 2015
2ea225e
Merge pull request #527 from lylei/cli
taocp Nov 30, 2015
3db8d82
Fix dfs_read counter
bluebore Nov 30, 2015
94c67b3
Merge pull request #529 from bluebore/master
xupeilin Dec 1, 2015
a882714
issue=#492 small bugfix & print help msg
lylei Nov 30, 2015
94c3a77
issue=#492 add setup.sh and sample running script
lylei Dec 1, 2015
c886b59
LowLevelSeek over boundary #530
xupeilin Dec 1, 2015
f9aef5d
Merge pull request #503 from xupeilin/bug/hdfs-list
bluebore Dec 1, 2015
ce04c17
issue=#492 add helper.py & modify Readme
lylei Dec 1, 2015
3dd5844
modify GetChildren status
xupeilin Dec 1, 2015
b5e5e55
Update master_design.md
00k Dec 1, 2015
af568e1
issue=#517 tera-runtime-reload-config
taocp Nov 30, 2015
79c6a4a
Ajust GetDataSize log level
bluebore Dec 1, 2015
3a28077
Add active thread num to leveldb log
bluebore Dec 1, 2015
a51152d
Merge pull request #535 from bluebore/master
00k Dec 2, 2015
a7cd10c
Merge pull request #532 from lylei/eva
xupeilin Dec 2, 2015
a2c792f
Merge pull request #510 from xupeilin/master
bluebore Dec 2, 2015
892bcfc
Merge pull request #531 from xupeilin/bug/llseek-over-boundary
bluebore Dec 2, 2015
dc005cb
Merge pull request #515 from xupeilin/doc/sdk-dev
taocp Dec 2, 2015
5fc2fbd
add ShowTablesFast, speed up teracli-show #537
xupeilin Dec 2, 2015
ce95e36
add perf log
xupeilin Dec 2, 2015
d0b9c2c
Update master_design.md
00k Dec 2, 2015
ac51bcb
Update master_design.md
00k Dec 2, 2015
d3ed237
#374: batch scan impl TEST PASS
Dec 2, 2015
6932f62
Update README.md
xupeilin Dec 3, 2015
f283772
Update Onebox.md
xupeilin Dec 3, 2015
48a09bb
fast-show compat new&old master
xupeilin Dec 3, 2015
91372b6
modify kZombie timeout
xupeilin Dec 3, 2015
c307602
Update UserManual.md
bluebore Dec 4, 2015
0ba2988
Change zookeeper version to 3.4.7
bluebore Dec 4, 2015
8d15ff2
bugfixing: qualifier length fix in ExtractTeraKey #542
xupeilin Dec 4, 2015
23edf61
Merge remote-tracking branch 'baidu/master' into bug/qualifier-len-260
xupeilin Dec 4, 2015
652121e
Merge remote-tracking branch 'baidu/master' into fast-showx
xupeilin Dec 4, 2015
9cd2c23
Merge pull request #538 from xupeilin/fast-showx
00k Dec 4, 2015
433f166
add master threadpool profiling log
xupeilin Dec 4, 2015
cb906a3
remove timer_id in RefreshCounter
xupeilin Dec 4, 2015
26fc4c4
issue=#462 python-sdk:scan
taocp Dec 7, 2015
85e103a
add master gc log
xupeilin Dec 3, 2015
ebb5491
Merge remote-tracking branch 'baidu/master' into bug/qualifier-len-260
xupeilin Dec 4, 2015
10e7ccc
var init fix
xupeilin Dec 8, 2015
547cd6a
add master profiling log
xupeilin Dec 6, 2015
2e29a9c
Merge pull request #543 from xupeilin/bug/qualifier-len-260
taocp Dec 8, 2015
f3f870a
Merge pull request #548 from xupeilin/master-gc-log
taocp Dec 8, 2015
d90b0aa
Merge pull request #528 from taocp/reload-config
xupeilin Dec 8, 2015
8bcdae6
Merge pull request #539 from 00k/doc
xupeilin Dec 8, 2015
1bd7560
unittest fix
xupeilin Dec 8, 2015
2ae8a6e
Merge pull request #550 from taocp/python-sdk
xupeilin Dec 9, 2015
c2345da
Merge pull request #546 from xupeilin/fast-showx
00k Dec 9, 2015
8d60b7b
issue=#462 python-sdk:async-writing
taocp Dec 9, 2015
c5993a3
issue=#462 python-sdk:async-writing
taocp Dec 9, 2015
de69aa3
issue=#462 python-sdk:add sample
taocp Dec 9, 2015
d5d4cd4
Merge pull request #555 from taocp/python-sdk-async
xupeilin Dec 10, 2015
02f3af2
#374: batch scan impl TEST_PASS, add test case
Dec 10, 2015
c0abf76
#374: batch scan impl, fix code style
Dec 11, 2015
95b8c33
Merge branch 'master' of https://github.com/baidu/tera into scan_test001
Dec 11, 2015
3ecf399
#374: batch scan impl, add test case
Dec 11, 2015
252de54
#374: batch scan impl, add test case, bugfix multiversion stream scan
Dec 11, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.o
*.a
*.pyc

#protobuf auto-gen code
src/proto/*.pb.*
Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ install:
- git clone https://github.com/BaiduPS/sofa-pbrpc
- ( cd sofa-pbrpc && make -j4 && make install )

- wget http://www.us.apache.org/dist/zookeeper/stable/zookeeper-3.4.6.tar.gz
- tar zxvf zookeeper-3.4.6.tar.gz
- ( cd zookeeper-3.4.6/src/c && ./configure --disable-shared --with-pic && make -j4 && sudo make install )
- wget http://www.us.apache.org/dist/zookeeper/stable/zookeeper-3.4.7.tar.gz
- tar zxvf zookeeper-3.4.7.tar.gz
- ( cd zookeeper-3.4.7/src/c && ./configure --disable-shared --with-pic && make -j4 && sudo make install )

- wget https://github.com/gflags/gflags/archive/v2.1.2.tar.gz
- tar xf v2.1.2.tar.gz
Expand Down
39 changes: 25 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SHARED_CFLAGS = -fPIC
SHARED_LDFLAGS = -shared -Wl,-soname -Wl,

INCPATH += -I./src -I./include -I./src/leveldb/include -I./src/leveldb \
-I./src/sdk/java/native-src $(DEPS_INCPATH)
-I./src/sdk/java/native-src $(DEPS_INCPATH)
CFLAGS += $(OPT) $(SHARED_CFLAGS) $(INCPATH)
CXXFLAGS += $(OPT) $(SHARED_CFLAGS) $(INCPATH)
LDFLAGS += -rdynamic $(DEPS_LDPATH) $(DEPS_LDFLAGS) -lpthread -lrt -lz -ldl
Expand All @@ -33,6 +33,7 @@ COMMON_SRC := $(wildcard src/common/base/*.cc) $(wildcard src/common/net/*.cc) \
$(wildcard src/common/file/*.cc) $(wildcard src/common/file/recordio/*.cc)
SERVER_SRC := src/tera_main.cc src/tera_entry.cc
CLIENT_SRC := src/teracli_main.cc
TERA_C_SRC := src/tera_c.cc
MONITOR_SRC := src/monitor/teramo_main.cc
MARK_SRC := src/benchmark/mark.cc src/benchmark/mark_main.cc
TEST_SRC := src/utils/test/prop_tree_test.cc src/utils/test/tprinter_test.cc src/io/test/tablet_io_test.cc
Expand All @@ -50,28 +51,31 @@ OTHER_OBJ := $(OTHER_SRC:.cc=.o)
COMMON_OBJ := $(COMMON_SRC:.cc=.o)
SERVER_OBJ := $(SERVER_SRC:.cc=.o)
CLIENT_OBJ := $(CLIENT_SRC:.cc=.o)
TERA_C_OBJ := $(TERA_C_SRC:.cc=.o)
MONITOR_OBJ := $(MONITOR_SRC:.cc=.o)
MARK_OBJ := $(MARK_SRC:.cc=.o)
TEST_OBJ := $(TEST_SRC:.cc=.o)
ALL_OBJ := $(MASTER_OBJ) $(TABLETNODE_OBJ) $(IO_OBJ) $(SDK_OBJ) $(PROTO_OBJ) \
$(JNI_TERA_OBJ) $(OTHER_OBJ) $(COMMON_OBJ) $(SERVER_OBJ) $(CLIENT_OBJ) \
$(MONITOR_OBJ) $(MARK_OBJ) $(TEST_OBJ)
$(TERA_C_OBJ) $(MONITOR_OBJ) $(MARK_OBJ) $(TEST_OBJ)
LEVELDB_LIB := src/leveldb/libleveldb.a
TERA_C_SO = libtera_c.so

PROGRAM = tera_main teracli teramo
LIBRARY = libtera.a
JNILIBRARY = libjni_tera.so
BENCHMARK = tera_bench tera_mark
TESTS = prop_tree_test tprinter_test
TESTS = prop_tree_test tprinter_test string_util_test


.PHONY: all clean cleanall test

all: $(PROGRAM) $(LIBRARY) $(JNILIBRARY) $(BENCHMARK) $(TESTS)
all: $(PROGRAM) $(LIBRARY) $(TERA_C_SO) $(JNILIBRARY) $(BENCHMARK) $(TESTS)
mkdir -p build/include build/lib build/bin build/log build/benchmark
mkdir -p $(UNITTEST_OUTPUT)
mv $(TESTS) $(UNITTEST_OUTPUT)
cp $(PROGRAM) build/bin
cp $(LIBRARY) $(JNILIBRARY) build/lib
cp $(LIBRARY) $(TERA_C_SO) $(JNILIBRARY) build/lib
cp src/leveldb/tera_bench .
cp -r benchmark/*.sh $(BENCHMARK) build/benchmark
cp src/sdk/tera.h build/include
Expand All @@ -81,12 +85,12 @@ all: $(PROGRAM) $(LIBRARY) $(JNILIBRARY) $(BENCHMARK) $(TESTS)
check: $(TESTS)
( cd $(UNITTEST_OUTPUT); \
for t in $(TESTS); do echo "***** Running $$t"; ./$$t || exit 1; done )
$(MAKE) check -C src/leveldb
$(MAKE) check -C src/leveldb

clean:
rm -rf $(ALL_OBJ) $(PROTO_OUT_CC) $(PROTO_OUT_H) $(TEST_OUTPUT)
$(MAKE) clean -C src/leveldb
rm -rf $(PROGRAM) $(LIBRARY) $(JNILIBRARY) $(BENCHMARK) $(TESTS)
rm -rf $(PROGRAM) $(LIBRARY) $(TERA_C_SO) $(JNILIBRARY) $(BENCHMARK) $(TESTS)

cleanall:
$(MAKE) clean
Expand All @@ -100,6 +104,10 @@ tera_main: $(SERVER_OBJ) $(LEVELDB_LIB) $(MASTER_OBJ) $(TABLETNODE_OBJ) \
libtera.a: $(SDK_OBJ) $(PROTO_OBJ) $(OTHER_OBJ) $(COMMON_OBJ)
$(AR) -rs $@ $(SDK_OBJ) $(PROTO_OBJ) $(OTHER_OBJ) $(COMMON_OBJ)

libtera_c.so: $(TERA_C_OBJ) $(SDK_OBJ) $(PROTO_OBJ) $(OTHER_OBJ) $(COMMON_OBJ)
$(CXX) -o $@ $(TERA_C_OBJ) $(SDK_OBJ) $(PROTO_OBJ) $(OTHER_OBJ) $(COMMON_OBJ) $(SHARED_LDFLAGS) \
-Xlinker "-(" $(LDFLAGS) -Xlinker "-)"

teracli: $(CLIENT_OBJ) $(LIBRARY)
$(CXX) -o $@ $(CLIENT_OBJ) $(LIBRARY) $(LDFLAGS)

Expand All @@ -108,9 +116,9 @@ teramo: $(MONITOR_OBJ) $(LIBRARY)

tera_mark: $(MARK_OBJ) $(LIBRARY) $(LEVELDB_LIB)
$(CXX) -o $@ $(MARK_OBJ) $(LIBRARY) $(LEVELDB_LIB) $(LDFLAGS)
libjni_tera.so: $(JNI_TERA_OBJ) $(LIBRARY)
$(CXX) -shared $(JNI_TERA_OBJ) -Xlinker "-(" $(LIBRARY) $(LDFLAGS) -Xlinker "-)" -o $@

libjni_tera.so: $(JNI_TERA_OBJ) $(LIBRARY)
$(CXX) -shared $(JNI_TERA_OBJ) -Xlinker "-(" $(LIBRARY) $(LDFLAGS) -Xlinker "-)" -o $@

src/leveldb/libleveldb.a: FORCE
$(MAKE) -C src/leveldb
Expand All @@ -119,10 +127,13 @@ tera_bench:

# unit test
prop_tree_test: src/utils/test/prop_tree_test.o $(LIBRARY)
$(CXX) -o $@ $^ $(LDFLAGS)
$(CXX) -o $@ $^ $(LDFLAGS)

tprinter_test: src/utils/test/tprinter_test.o $(LIBRARY)
$(CXX) -o $@ $^ $(LDFLAGS)
$(CXX) -o $@ $^ $(LDFLAGS)

string_util_test: src/utils/test/string_util_test.o $(LIBRARY)
$(CXX) -o $@ $^ $(LDFLAGS)

tablet_io_test: src/io/test/tablet_io_test.o src/tabletnode/tabletnode_sysinfo.o\
$(IO_OBJ) $(PROTO_OBJ) $(OTHER_OBJ) $(COMMON_OBJ) $(LEVELDB_LIB)
Expand All @@ -139,8 +150,8 @@ FORCE:

.PHONY: proto
proto: $(PROTO_OUT_CC) $(PROTO_OUT_H)

%.pb.cc %.pb.h: %.proto
$(PROTOC) --proto_path=./src/proto/ --proto_path=$(PROTOBUF_INCDIR) \
--proto_path=$(SOFA_PBRPC_INCDIR) \
--cpp_out=./src/proto/ $<
--cpp_out=./src/proto/ $<
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,16 @@ sh ./build.sh

[通过docker体验Tera](https://github.com/baidu/tera/blob/master/example/docker)

[主要API使用方法](https://github.com/baidu/tera/wiki/%E4%B8%BB%E8%A6%81API%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95)
[SDK 开发入门](https://github.com/baidu/tera/blob/master/doc/sdk_dev_guide.md)

[命令行工具使用手册](https://github.com/baidu/tera/blob/master/doc/teracli.md)
[teracli 使用手册](https://github.com/baidu/tera/blob/master/doc/teracli.md)

#反馈与技术支持
[email protected]

#成为贡献者
完成[5个小任务](https://github.com/baidu/tera/blob/master/doc/to_be_a_contributor.md),帮你一步步成为tera贡献者.

#欢迎加入
如果你热爱开源,热爱分布式技术,请将简历发送至:
[email protected]
Loading