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

Delete and WAL feature branch merge #1436

Merged
merged 845 commits into from
Feb 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
845 commits
Select commit Hold shift + click to select a range
4407324
add read/write lock
youny626 Feb 18, 2020
febad44
change compact to ddl queue
youny626 Feb 18, 2020
3c6b643
add api to get vector data
yhmo Feb 18, 2020
fd8c46a
add flush / merge / compact lock
youny626 Feb 18, 2020
216b9b8
Merge pull request #1252 from youny626/compact
youny626 Feb 18, 2020
78ec0f8
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 18, 2020
0352694
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 18, 2020
47a81db
add api to get vector data
yhmo Feb 18, 2020
4832929
Merge remote-tracking branch 'source/crud' into crud2
yhmo Feb 18, 2020
49e08b9
add data size for table info
yhmo Feb 18, 2020
f209f3b
Merge pull request #1253 from yhmo/crud2
Feb 18, 2020
aa15fdf
add db recovery test
Feb 17, 2020
f13d8fa
add data_size check
Feb 18, 2020
9261009
Merge remote-tracking branch 'upstream/crud' into crud
Feb 18, 2020
37ed288
Merge remote-tracking branch 'main/master'
JinHai-CN Feb 18, 2020
14a571b
change file name to uppercase
JinHai-CN Feb 18, 2020
c0d45ed
update wal flush_merge_compact_mutex_
youny626 Feb 18, 2020
74c2706
update wal flush_merge_compact_mutex_
youny626 Feb 18, 2020
60967e1
Merge pull request #1254 from youny626/compact
youny626 Feb 18, 2020
aefbfa3
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 18, 2020
92143e9
Merge branch 'crud' of https://github.com/milvus-io/milvus into crud_rec
Feb 18, 2020
a5f7f1f
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 18, 2020
75e7db3
Merge pull request #1255 from shengjh/crud_rec
shengjh Feb 18, 2020
ac559df
change requirement
Feb 18, 2020
8802249
change requirement
Feb 18, 2020
e5b1843
Merge remote-tracking branch 'upstream/crud' into crud
Feb 19, 2020
9072537
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 19, 2020
f9b4f47
upd requirement
Feb 19, 2020
97a8009
add logging
Feb 19, 2020
34c8449
add logging
Feb 19, 2020
7f1af5c
add logging
Feb 19, 2020
4415c16
add logging
Feb 19, 2020
0ed3dc4
add logging
Feb 19, 2020
a431d28
add logging
Feb 19, 2020
a176c22
add logging
Feb 19, 2020
7157d13
add logging
Feb 19, 2020
fd00193
add logging
Feb 19, 2020
a54cf60
delete part
Feb 19, 2020
2460de3
add all size checks
Feb 19, 2020
7b85c3d
fix bug
Feb 19, 2020
409535a
Merge pull request #1267 from sahuang/crud
youny626 Feb 19, 2020
14da077
update faiss get_vector_by_id
youny626 Feb 19, 2020
656cb26
Merge branch 'crud' of github.com:youny626/milvus into crud
youny626 Feb 19, 2020
7eced18
add get_vector case
del-zhenwu Feb 19, 2020
4b6c4c8
update get vector by id
youny626 Feb 19, 2020
9294366
Merge pull request #1270 from del-zhenwu/crud
del-zhenwu Feb 19, 2020
481c7d8
update server
youny626 Feb 19, 2020
dbdc41e
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 19, 2020
811abb8
Merge pull request #1273 from youny626/crud
youny626 Feb 19, 2020
27f58ce
fix DBImpl
Feb 19, 2020
c8e57fe
attempting to fix #1268
youny626 Feb 20, 2020
1802549
Merge pull request #1278 from youny626/crud
youny626 Feb 20, 2020
ecaae65
lint
youny626 Feb 20, 2020
619e81f
Merge pull request #1279 from youny626/crud
youny626 Feb 20, 2020
61d68ce
update unit test
youny626 Feb 20, 2020
c6c2e22
fix #1259
youny626 Feb 20, 2020
ad4507c
issue 1271 fix wal config
Feb 20, 2020
690b84b
Merge pull request #1277 from shengjun1985/crud
youny626 Feb 20, 2020
f2561eb
Merge pull request #1284 from shengjun1985/shengjun
youny626 Feb 20, 2020
bc9a23b
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 20, 2020
5f54e9c
update
youny626 Feb 20, 2020
f4110ac
Merge pull request #1286 from youny626/crud
youny626 Feb 20, 2020
1f807a8
fix cases
del-zhenwu Feb 20, 2020
0ab9a41
Merge pull request #1288 from del-zhenwu/crud
del-zhenwu Feb 20, 2020
2872aec
update read / write error message
youny626 Feb 21, 2020
2924688
update read / write error message
youny626 Feb 21, 2020
861cd77
Merge pull request #1294 from youny626/crud
youny626 Feb 21, 2020
a4d4d40
Merge branch 'crud' of github.com:milvus-io/milvus into crud
cydrain Feb 21, 2020
1ac2c9d
[skip ci] get vectors by id from raw files instead faiss
youny626 Feb 21, 2020
205650a
[skip ci] update FilesByType meta
youny626 Feb 21, 2020
c5d415f
update
youny626 Feb 21, 2020
bbf70fa
fix ci error
Feb 22, 2020
d2ae2ac
Merge pull request #1306 from op-hunter/fix_ci_error
youny626 Feb 22, 2020
11cdd15
update
youny626 Feb 22, 2020
f4ff28e
lint
youny626 Feb 22, 2020
bfb404a
Merge pull request #1307 from youny626/compact
youny626 Feb 22, 2020
c067091
Hide partition_name parameter
yhmo Feb 22, 2020
b4e5478
Merge remote-tracking branch 'source/crud' into crud2
yhmo Feb 22, 2020
e28d4f5
Remove douban pip source
del-zhenwu Feb 22, 2020
b8ccee0
Merge pull request #1311 from del-zhenwu/crud
del-zhenwu Feb 22, 2020
3c94cd7
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 22, 2020
e0bf40d
Merge pull request #1312 from youny626/crud
youny626 Feb 22, 2020
d9ad216
Update epsilon value in test cases
del-zhenwu Feb 22, 2020
67c354f
Add default partition
yhmo Feb 22, 2020
c8c3792
Caiyd crud (#1313)
cydrain Feb 22, 2020
531a129
Merge branch 'crud' of github.com:milvus-io/milvus into crud
cydrain Feb 22, 2020
e17de66
merge crud branch
yhmo Feb 22, 2020
d7532bb
Merge remote-tracking branch 'source/crud' into crud2
yhmo Feb 22, 2020
139af10
avoid user directly operate partition table
yhmo Feb 22, 2020
fca988f
Merge pull request #1315 from yhmo/crud2
Feb 22, 2020
0b3477d
fix has table bug
yhmo Feb 22, 2020
120f68d
Merge pull request #1317 from yhmo/crud2
Feb 22, 2020
120efe9
Merge branch 'crud' of github.com:milvus-io/milvus into crud
cydrain Feb 22, 2020
6f18434
Caiyd crud (#1323)
cydrain Feb 23, 2020
3d21307
change open flags
youny626 Feb 23, 2020
b6faf31
Merge branch 'crud' of github.com:milvus-io/milvus into crud
del-zhenwu Feb 24, 2020
f02835c
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 24, 2020
80ed46b
change OngoingFileChecker to static instance
youny626 Feb 24, 2020
3ada52a
mark ongoing files when applying deletes
youny626 Feb 24, 2020
57614a9
update clean up with ttl
youny626 Feb 24, 2020
66f3332
fix centos ci
youny626 Feb 24, 2020
91a330a
update
youny626 Feb 24, 2020
c8c378a
lint
youny626 Feb 24, 2020
1c8ae61
update partition
del-zhenwu Feb 24, 2020
0f034c7
Merge pull request #1314 from del-zhenwu/crud
del-zhenwu Feb 24, 2020
57949ba
Merge pull request #1345 from youny626/crud
youny626 Feb 24, 2020
0ca71b0
update delete and flush to include partitions
youny626 Feb 24, 2020
9519a85
update
youny626 Feb 24, 2020
4b4467b
Merge pull request #1347 from youny626/crud
youny626 Feb 24, 2020
884668b
Update cases
del-zhenwu Feb 24, 2020
6971306
Fix test cases crud (#1350)
Feb 24, 2020
6a201cc
Merge branch 'crud' of github.com:milvus-io/milvus into crud
del-zhenwu Feb 25, 2020
950ff5e
merge cases
del-zhenwu Feb 25, 2020
357d44b
Shengjun (#1349)
shengjun1985 Feb 25, 2020
9a5d8ee
Merge branch 'crud' of github.com:milvus-io/milvus into crud
del-zhenwu Feb 25, 2020
61a9b32
#1302 Get all record IDs in a segment by given a segment id
yhmo Feb 25, 2020
e1ecdd0
Merge pull request #1354 from del-zhenwu/crud
del-zhenwu Feb 25, 2020
9317a5a
Remove query time ranges
del-zhenwu Feb 25, 2020
30d80ca
merge master
Feb 25, 2020
5ce8836
Merge pull request #1360 from shengjun1985/merge_master
JinHai-CN Feb 25, 2020
3c36036
Merge branch 'master' into crud
JinHai-CN Feb 25, 2020
e4484e0
Merge remote-tracking branch 'main/master'
JinHai-CN Feb 25, 2020
1f6063b
Merge branch 'master' into crud
JinHai-CN Feb 25, 2020
f2dc87f
merge
del-zhenwu Feb 25, 2020
a3fae7f
#1295 let wal enable by default
Feb 25, 2020
df49da4
Merge pull request #1361 from JinHai-CN/crud
JinHai-CN Feb 25, 2020
74520c8
fix cases
del-zhenwu Feb 25, 2020
03da438
Merge branch 'crud' of github.com:milvus-io/milvus into crud
del-zhenwu Feb 25, 2020
143eedf
merge master
yhmo Feb 25, 2020
52db7f5
Merge remote-tracking branch 'source/crud' into crud2
yhmo Feb 25, 2020
721b9d5
fix partition cases
del-zhenwu Feb 25, 2020
34507e8
Merge pull request #1362 from del-zhenwu/crud
del-zhenwu Feb 25, 2020
e3557f7
[skip ci] update test_db
youny626 Feb 25, 2020
95b7f9f
update
youny626 Feb 25, 2020
62f9d3e
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 25, 2020
956be4b
Merge pull request #1365 from shengjun1985/crud
youny626 Feb 25, 2020
db5281b
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 25, 2020
2aeb657
fix case bug
del-zhenwu Feb 25, 2020
d6d6ddc
Merge branch 'crud' of github.com:milvus-io/milvus into crud
del-zhenwu Feb 25, 2020
75219af
Merge pull request #1368 from youny626/crud
youny626 Feb 25, 2020
e488fb3
lint
youny626 Feb 25, 2020
cb1db61
Merge pull request #1369 from youny626/crud
youny626 Feb 25, 2020
98eb5ed
fix test case failures
yhmo Feb 25, 2020
93d740f
fix test case failures
yhmo Feb 25, 2020
1196b87
Merge pull request #1370 from yhmo/crud2
Feb 25, 2020
092d0e9
Merge remote-tracking branch 'main/crud' into crud
cydrain Feb 25, 2020
ade1ca6
remove some code
yhmo Feb 25, 2020
954b48d
Merge remote-tracking branch 'source/crud' into crud2
yhmo Feb 25, 2020
864f270
Merge pull request #1373 from yhmo/crud2
Feb 25, 2020
a2d8927
Caiyd crud 1 (#1377)
cydrain Feb 25, 2020
ccd8074
Merge pull request #1376 from del-zhenwu/crud
del-zhenwu Feb 26, 2020
bfe012a
fix hastable bug
yhmo Feb 26, 2020
ad69e8f
Merge remote-tracking branch 'source/crud' into crud2
yhmo Feb 26, 2020
28a1812
Merge pull request #1384 from yhmo/crud2
Feb 26, 2020
74b08c8
update bloom filter
youny626 Feb 26, 2020
cec5edf
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 26, 2020
ec75f71
update
youny626 Feb 26, 2020
4cecbf3
Merge pull request #1386 from youny626/crud
youny626 Feb 26, 2020
03b6dfd
Merge remote-tracking branch 'main/crud' into crud
cydrain Feb 26, 2020
7ed551c
benchmark
youny626 Feb 26, 2020
b98957d
update benchmark
youny626 Feb 26, 2020
17eb01e
update
youny626 Feb 26, 2020
9987f4d
update
youny626 Feb 26, 2020
d346539
remove wal record size
Feb 26, 2020
b60c006
remove wal record size config
Feb 26, 2020
70ea0a1
update apply deletes: switch to binary search
youny626 Feb 26, 2020
ad7abd9
update sdk_simple
cydrain Feb 26, 2020
0f008fd
update apply deletes: switch to binary search
youny626 Feb 26, 2020
213fa71
Merge pull request #1387 from shengjun1985/crud
shengjun1985 Feb 26, 2020
41bcf08
add test_search_by_id
del-zhenwu Feb 26, 2020
4172e83
add more log
yhmo Feb 27, 2020
98a2af2
Merge remote-tracking branch 'source/crud' into crud2
yhmo Feb 27, 2020
a2c1941
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 27, 2020
e5f3f3d
flush error with multi same ids
del-zhenwu Feb 27, 2020
236610e
modify wal config
Feb 27, 2020
cc5f034
Merge pull request #1394 from shengjun1985/crud
shengjun1985 Feb 27, 2020
8fb8103
update
youny626 Feb 27, 2020
4e6b1ec
add binary search_by_id
del-zhenwu Feb 27, 2020
257ac30
fix case bug
del-zhenwu Feb 27, 2020
a201e01
Merge branch 'crud' of github.com:milvus-io/milvus into crud
del-zhenwu Feb 27, 2020
a8f592d
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 27, 2020
8403039
Merge remote-tracking branch 'source/crud' into crud2
yhmo Feb 27, 2020
43f378e
update cases
del-zhenwu Feb 27, 2020
de60231
fix unit test #1395
youny626 Feb 27, 2020
3d6a1d8
Merge pull request #1396 from youny626/crud
youny626 Feb 27, 2020
38497ed
improve merge performance
youny626 Feb 27, 2020
c7242a0
add uids_ for VectorIndex to improve search performance
cydrain Feb 27, 2020
6767e4e
fix error
cydrain Feb 27, 2020
a4a054c
Merge pull request #1400 from cydrain/caiyd_crud_2
youny626 Feb 27, 2020
f2953b3
update
youny626 Feb 27, 2020
5f3749f
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 27, 2020
bb9048c
fix search
youny626 Feb 27, 2020
ca60d68
Merge pull request #1401 from youny626/compact
youny626 Feb 27, 2020
19b745a
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 27, 2020
a26b342
fix record num
Feb 27, 2020
75eb38c
refine code
yhmo Feb 27, 2020
9a483ca
Merge remote-tracking branch 'source/crud' into crud2
yhmo Feb 27, 2020
317fe5c
refine code
yhmo Feb 27, 2020
bfa7d01
refine code
yhmo Feb 27, 2020
98ea13e
Merge pull request #1403 from yhmo/crud2
Feb 27, 2020
dd2739f
Merge pull request #1402 from shengjun1985/crud
shengjun1985 Feb 27, 2020
861948b
Merge pull request #1392 from del-zhenwu/crud
JinHai-CN Feb 27, 2020
ab7de45
Add get_vector_ids test cases (#1407)
Feb 28, 2020
6d3ed72
#1408 fix search result in-correct after DeleteById
cydrain Feb 28, 2020
f30ea58
Merge pull request #1409 from cydrain/caiyd_crud_3
youny626 Feb 28, 2020
d7444dc
add one case
del-zhenwu Feb 28, 2020
e3094a1
delete failed segment
yhmo Feb 28, 2020
241281a
Merge pull request #1410 from yhmo/crud2
Feb 28, 2020
ece7f4a
update serialize
youny626 Feb 28, 2020
3e5efae
update serialize
youny626 Feb 28, 2020
ee22e3b
fix case
del-zhenwu Feb 28, 2020
89c1985
update
youny626 Feb 28, 2020
1c40e24
Merge pull request #1413 from youny626/compact
youny626 Feb 28, 2020
76fbf44
Merge branch 'crud' of github.com:milvus-io/milvus into crud
del-zhenwu Feb 28, 2020
d5fafef
update case assertion
del-zhenwu Feb 28, 2020
6fcf7e3
[skip ci] update config
youny626 Feb 28, 2020
ce5834f
Merge remote-tracking branch 'upstream/crud' into compact
youny626 Feb 28, 2020
84628a4
Merge pull request #1415 from youny626/compact
youny626 Feb 28, 2020
5ffde57
update
youny626 Feb 28, 2020
de3deb6
change bloom filter msync flag to async
youny626 Feb 28, 2020
b67aaa2
Merge pull request #1418 from youny626/compact
youny626 Feb 28, 2020
147e0fc
#1319 add more timing debug info
cydrain Feb 28, 2020
e3d1f2c
update
youny626 Feb 28, 2020
9a2d211
Merge remote-tracking branch 'upstream/crud' into crud
youny626 Feb 28, 2020
d0b7c61
update
youny626 Feb 28, 2020
b9594a4
Merge pull request #1420 from youny626/crud
youny626 Feb 28, 2020
3a79be9
Merge pull request #1414 from del-zhenwu/crud
del-zhenwu Feb 28, 2020
d7c5645
add normalize
del-zhenwu Feb 28, 2020
37344ed
add normalize
del-zhenwu Feb 28, 2020
3286dbb
Merge pull request #1423 from del-zhenwu/crud
del-zhenwu Feb 28, 2020
ec5ec5d
add normalize
del-zhenwu Feb 28, 2020
b70aaab
Merge pull request #1425 from del-zhenwu/crud
del-zhenwu Feb 28, 2020
2c02a0f
Merge branch 'master' into crud
JinHai-CN Feb 28, 2020
86384dd
Fix compiling error
JinHai-CN Feb 28, 2020
a5072d9
support ip (#1383)
tinkerlin Feb 28, 2020
6dba3d8
Merge remote-tracking branch 'main/crud' into crud
JinHai-CN Feb 28, 2020
234f26a
get table lsn
yhmo Feb 28, 2020
905b370
Merge pull request #1428 from yhmo/crud2
Feb 28, 2020
76ee75a
Remove unused third party
JinHai-CN Feb 28, 2020
7e31f2c
Refine code
JinHai-CN Feb 28, 2020
df60b72
#1319 fix clang format
cydrain Feb 29, 2020
5a5ff36
Merge pull request #1427 from JinHai-CN/crud
JinHai-CN Feb 29, 2020
fe744b0
fix wal applied lsn
Feb 29, 2020
bf8ce8c
Merge pull request #1433 from shengjun1985/crud
shengjun1985 Feb 29, 2020
cdb3b76
validate partition tag
yhmo Feb 29, 2020
7c08f29
Merge pull request #1435 from yhmo/crud2
Feb 29, 2020
0476f4d
#1319 improve search performance
cydrain Feb 29, 2020
0be89ac
Merge pull request #1430 from cydrain/caiyd_crud_perf
youny626 Feb 29, 2020
714ca95
build error
yhmo Feb 29, 2020
b4ff34c
Merge pull request #1441 from yhmo/crud2
Feb 29, 2020
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ Please mark all change in change log and use the issue from GitHub
- \#1075 - improve error message when page size or offset is illegal
- \#1082 - check page_size or offset value to avoid float
- \#1115 - http server support load table into memory
- \#1152 - Error log output continuously after server start
- \#1211 - Server down caused by searching with index_type: HNSW
- \#1240 - Update license declaration
- \#1298 - Unittest failed when on CPU2GPU case
- \#1359 - Negative distance value returned when searching with HNSW index type

## Feature
- \#216 - Add CLI to get server info
Expand All @@ -39,6 +41,8 @@ Please mark all change in change log and use the issue from GitHub
- \#823 - Support binary vector tanimoto/jaccard/hamming metric
- \#853 - Support HNSW
- \#910 - Change Milvus c++ standard to c++17
- \#1204 - Add api to get table data information
- \#1302 - Get all record IDs in a segment by given a segment id

## Improvement
- \#738 - Use Openblas / lapack from apt install
Expand All @@ -53,11 +57,14 @@ Please mark all change in change log and use the issue from GitHub
- \#1002 - Rename minio to s3 in Storage Config section
- \#1078 - Move 'insert_buffer_size' to Cache Config section
- \#1105 - Error message is not clear when creating IVFSQ8H index without gpu resources
- \#1297 - Hide partition_name parameter, avid user directly access partition table
- \#1310 - Add default partition tag for a table
- \#740, #849, #878, #972, #1033, #1161, #1173, #1199, #1190, #1223, #1222, #1257, #1264, #1269, #1164, #1303, #1304, #1324, #1388 - Various fixes and improvements for Milvus documentation.
- \#1234 - Do S3 server validation check when Milvus startup
- \#1263 - Allow system conf modifiable and some take effect directly
- \#1320 - Remove debug logging from faiss


## Task
- \#1327 - Exclude third-party code from codebeat
- \#1331 - Exclude third-party code from codacy
Expand Down
1 change: 0 additions & 1 deletion NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

| Name | License |
| ------------- | ------------------------------------------------------------ |
| Apache Arrow | [Apache License 2.0](https://github.com/apache/arrow/blob/master/LICENSE.txt) |
| Boost | [Boost Software License](https://github.com/boostorg/boost/blob/master/LICENSE_1_0.txt) |
| FAISS | [MIT](https://github.com/facebookresearch/faiss/blob/master/LICENSE) |
| Gtest | [BSD 3-Clause](https://github.com/google/googletest/blob/master/LICENSE) |
Expand Down
3 changes: 2 additions & 1 deletion ci/jenkins/step/singleDevNightlyTest.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
timeout(time: 90, unit: 'MINUTES') {
dir ("tests/milvus_python_test") {
sh 'python3 -m pip install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com'
// sh 'python3 -m pip install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com'
sh 'python3 -m pip install -r requirements.txt'
sh "pytest . --alluredir=\"test_out/dev/single/sqlite\" --ip ${env.HELM_RELEASE_NAME}.milvus.svc.cluster.local"
}
// mysql database backend test
Expand Down
3 changes: 2 additions & 1 deletion ci/jenkins/step/singleDevTest.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
timeout(time: 60, unit: 'MINUTES') {
dir ("tests/milvus_python_test") {
sh 'python3 -m pip install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com'
// sh 'python3 -m pip install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com'
sh 'python3 -m pip install -r requirements.txt'
sh "pytest . --alluredir=\"test_out/dev/single/sqlite\" --level=1 --ip ${env.HELM_RELEASE_NAME}.milvus.svc.cluster.local"
}

Expand Down
2 changes: 1 addition & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if (MILVUS_VERSION_MAJOR STREQUAL ""
OR MILVUS_VERSION_MINOR STREQUAL ""
OR MILVUS_VERSION_PATCH STREQUAL "")
message(WARNING "Failed to determine Milvus version from git branch name")
set(MILVUS_VERSION "0.6.0")
set(MILVUS_VERSION "0.7.0")
endif ()

message(STATUS "Build version = ${MILVUS_VERSION}")
Expand Down
4 changes: 1 addition & 3 deletions core/conf/demo/server_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ metric_config:
# | The sum of 'insert_buffer_size' and 'cpu_cache_capacity' | | |
# | must be less than system memory size. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
# cache_insert_data | Whether to load inserted data into cache immediately for | Boolean | false |
# | hot query. If want to simultaneously insert and query | | |
# | vectors, it's recommended to enable this config. | | |
# cache_insert_data | Whether to load data to cache for hot query | Boolean | false |
#----------------------+------------------------------------------------------------+------------+-----------------+
cache_config:
cpu_cache_capacity: 4
Expand Down
28 changes: 25 additions & 3 deletions core/conf/server_cpu_config.template
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ server_config:
# | loaded when Milvus server starts up. | | |
# | '*' means preload all existing tables. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
# auto_flush_interval | Interval of auto flush. Unit is millisecond. | Integer | 1000 |
#----------------------+------------------------------------------------------------+------------+-----------------+
db_config:
backend_url: sqlite://:@:/
preload_table:
auto_flush_interval: 1000

#----------------------+------------------------------------------------------------+------------+-----------------+
# Storage Config | Description | Type | Default |
Expand Down Expand Up @@ -106,9 +109,7 @@ metric_config:
# | The sum of 'insert_buffer_size' and 'cpu_cache_capacity' | | |
# | must be less than system memory size. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
# cache_insert_data | Whether to load inserted data into cache immediately for | Boolean | false |
# | hot query. If want to simultaneously insert and query | | |
# | vectors, it's recommended to enable this config. | | |
# cache_insert_data | Whether to load data to cache for hot query | Boolean | false |
#----------------------+------------------------------------------------------------+------------+-----------------+
cache_config:
cpu_cache_capacity: 4
Expand Down Expand Up @@ -167,3 +168,24 @@ gpu_resource_config:
#----------------------+------------------------------------------------------------+------------+-----------------+
tracing_config:
json_config_path:

#----------------------+------------------------------------------------------------+------------+-----------------+
# Wal Config | Description | Type | Default |
#----------------------+------------------------------------------------------------+------------+-----------------+
# enable | Switch of function wal. | Boolean | false |
#----------------------+------------------------------------------------------------+------------+-----------------+
# recovery_error_ignore| Whether ignore the error which happens during wal recovery | Boolean | true |
# | stage. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
# buffer_size | The size of the wal buffer. Unit is MB. | Integer | 256 |
# | It should be in range [64, 4096]. If the value set out of | | |
# | the range, the system will use the boundary value. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
# wal_path | The root path of wal relative files, include wal meta | String | NULL |
# | files. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
wal_config:
enable: true
recovery_error_ignore: true
buffer_size: 256 # MB
wal_path: /tmp/milvus/wal
25 changes: 22 additions & 3 deletions core/conf/server_gpu_config.template
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ metric_config:
# | The sum of 'insert_buffer_size' and 'cpu_cache_capacity' | | |
# | must be less than system memory size. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
# cache_insert_data | Whether to load inserted data into cache immediately for | Boolean | false |
# | hot query. If want to simultaneously insert and query | | |
# | vectors, it's recommended to enable this config. | | |
# cache_insert_data | Whether to load data to cache for hot query | Boolean | false |
#----------------------+------------------------------------------------------------+------------+-----------------+
cache_config:
cpu_cache_capacity: 4
Expand Down Expand Up @@ -167,3 +165,24 @@ gpu_resource_config:
#----------------------+------------------------------------------------------------+------------+-----------------+
tracing_config:
json_config_path:

#----------------------+------------------------------------------------------------+------------+-----------------+
# Wal Config | Description | Type | Default |
#----------------------+------------------------------------------------------------+------------+-----------------+
# enable | Switch of function wal. | Boolean | false |
#----------------------+------------------------------------------------------------+------------+-----------------+
# recovery_error_ignore| Whether ignore the error which happens during wal recovery | Boolean | true |
# | stage. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
# buffer_size | The size of the wal buffer. Unit is MB. | Integer | 256 |
# | It should be in range [64, 4096]. If the value set out of | | |
# | the range, the system will use the boundary value. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
# wal_path | The root path of wal relative files, include wal meta | String | NULL |
# | files. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
wal_config:
enable: true
recovery_error_ignore: true
buffer_size: 256 # MB
wal_path: /tmp/milvus/wal
16 changes: 16 additions & 0 deletions core/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ aux_source_directory(${MILVUS_ENGINE_SRC}/db db_main_files)
aux_source_directory(${MILVUS_ENGINE_SRC}/db/engine db_engine_files)
aux_source_directory(${MILVUS_ENGINE_SRC}/db/insert db_insert_files)
aux_source_directory(${MILVUS_ENGINE_SRC}/db/meta db_meta_files)
aux_source_directory(${MILVUS_ENGINE_SRC}/db/wal db_wal_files)

set(grpc_service_files
${MILVUS_ENGINE_SRC}/grpc/gen-milvus/milvus.grpc.pb.cc
Expand Down Expand Up @@ -65,9 +66,11 @@ set(scheduler_files

aux_source_directory(${MILVUS_THIRDPARTY_SRC}/easyloggingpp thirdparty_easyloggingpp_files)
aux_source_directory(${MILVUS_THIRDPARTY_SRC}/nlohmann thirdparty_nlohmann_files)
aux_source_directory(${MILVUS_THIRDPARTY_SRC}/dablooms thirdparty_dablooms_files)
set(thirdparty_files
${thirdparty_easyloggingpp_files}
${thirdparty_nlohmann_files}
${thirdparty_dablooms_files}
)

aux_source_directory(${MILVUS_ENGINE_SRC}/server server_service_files)
Expand Down Expand Up @@ -113,22 +116,35 @@ set(storage_files
)

aux_source_directory(${MILVUS_ENGINE_SRC}/utils utils_files)

aux_source_directory(${MILVUS_ENGINE_SRC}/wrapper wrapper_files)

aux_source_directory(${MILVUS_ENGINE_SRC}/tracing tracing_files)

aux_source_directory(${MILVUS_ENGINE_SRC}/codecs codecs_files)
aux_source_directory(${MILVUS_ENGINE_SRC}/codecs/default codecs_default_files)

aux_source_directory(${MILVUS_ENGINE_SRC}/segment segment_files)

aux_source_directory(${MILVUS_ENGINE_SRC}/store store_files)

set(engine_files
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
${cache_files}
${db_main_files}
${db_engine_files}
${db_insert_files}
${db_meta_files}
${db_wal_files}
${metrics_files}
${storage_files}
${thirdparty_files}
${utils_files}
${wrapper_files}
${codecs_files}
${codecs_default_files}
${segment_files}
${store_files}
)

if (MILVUS_WITH_PROMETHEUS)
Expand Down
33 changes: 33 additions & 0 deletions core/src/codecs/AttrsFormat.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

#pragma once

namespace milvus {
namespace codec {

class AttrsFormat {
// public:
// virtual Attrs
// read() = 0;
//
// virtual void
// write(Attrs attrs) = 0;
};

} // namespace codec
} // namespace milvus
33 changes: 33 additions & 0 deletions core/src/codecs/AttrsIndexFormat.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

#pragma once

namespace milvus {
namespace codec {

class AttrsIndexFormat {
// public:
// virtual AttrsIndex
// read() = 0;
//
// virtual void
// write(AttrsIndex attrs_index) = 0;
};

} // namespace codec
} // namespace milvus
60 changes: 60 additions & 0 deletions core/src/codecs/Codec.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

#pragma once

#include "AttrsFormat.h"
#include "AttrsIndexFormat.h"
#include "DeletedDocsFormat.h"
#include "IdBloomFilterFormat.h"
#include "IdIndexFormat.h"
#include "VectorsFormat.h"
#include "VectorsIndexFormat.h"

namespace milvus {
namespace codec {

class Codec {
public:
virtual VectorsFormatPtr
GetVectorsFormat() = 0;

virtual DeletedDocsFormatPtr
GetDeletedDocsFormat() = 0;

virtual IdBloomFilterFormatPtr
GetIdBloomFilterFormat() = 0;

// TODO(zhiru)
/*
virtual AttrsFormat
GetAttrsFormat() = 0;

virtual VectorsIndexFormat
GetVectorsIndexFormat() = 0;

virtual AttrsIndexFormat
GetAttrsIndexFormat() = 0;

virtual IdIndexFormat
GetIdIndexFormat() = 0;

*/
};

} // namespace codec
} // namespace milvus
40 changes: 40 additions & 0 deletions core/src/codecs/DeletedDocsFormat.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

#pragma once

#include <memory>

#include "segment/DeletedDocs.h"
#include "store/Directory.h"

namespace milvus {
namespace codec {

class DeletedDocsFormat {
public:
virtual void
read(const store::DirectoryPtr& directory_ptr, segment::DeletedDocsPtr& deleted_docs) = 0;

virtual void
write(const store::DirectoryPtr& directory_ptr, const segment::DeletedDocsPtr& deleted_docs) = 0;
};

using DeletedDocsFormatPtr = std::shared_ptr<DeletedDocsFormat>;

} // namespace codec
} // namespace milvus
Loading