Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
b2f9447
Replace native socket operations with asio
suquark Feb 20, 2019
040e40c
fix according to github comments
suquark Mar 22, 2019
d6ea866
lint
suquark Mar 22, 2019
168dea4
prevent the store from dying
suquark Mar 22, 2019
323f633
fix ARROW_CHECK
suquark Mar 27, 2019
0350d41
Fix
suquark Mar 27, 2019
2433872
ARROW-5785: [Rust] Make the datafusion cli dependencies optional
Jun 29, 2019
4d25902
ARROW-5787: [Release][Rust] Use local modules to verify RC
kou Jun 29, 2019
dff73a4
ARROW-5793: [Release] Avoid duplicated known host SSH error in dev/re…
kou Jun 30, 2019
c2c5876
ARROW-5794: [Release] Skip uploading already uploaded binaries
kou Jun 30, 2019
f0392dc
ARROW-5795: [Release] Add missing waits on uploading binaries
kou Jun 30, 2019
53e813c
ARROW-5796: [Release][APT] Update expected package list
kou Jun 30, 2019
c29462c
ARROW-5797: [Release][APT] Update supported distributions
kou Jun 30, 2019
10083ab
ARROW-5609: [C++] Set CMP0068 CMake policy to avoid macOS warnings
xhochy Jun 30, 2019
91b4cbc
ARROW-5726: [Java] Implement a common interface for int vectors
tianchen92 Jul 1, 2019
175ad65
ARROW-3459: [C++][Gandiva] support for string o/p
Jul 1, 2019
8192902
ARROW-5791: [C++] Fix infinite loop with more the 32768 columns.
emkornfield Jul 1, 2019
3b6b271
ARROW-5792: [Rust] Add TypeVisitor for parquet type.
liurenjie1024 Jul 1, 2019
b7f27f0
ARROW-5358: [Rust] Implement equality check for ArrayData and Array
sunchao Jul 1, 2019
9145c15
ARROW-5820: [Release] Remove undefined variable check from verify script
kou Jul 1, 2019
52c04e4
ARROW-5816: [Release] Do not curl in background in verify-release-can…
wesm Jul 1, 2019
8ec2fd0
ARROW-5564: [C++] Use uriparser from conda-forge
pitrou Jul 1, 2019
3cdd0cf
[Website] Fix incorrect expansion of "SIMD" term
mikofski Jul 1, 2019
7adbe93
[Release] Test Arrow Flight in Windows release verification script
wesm Jul 2, 2019
e02ec4e
ARROW-5466: [Java][CI] Dockerize Java CI, run all JDK builds in singl…
wesm Jul 2, 2019
74b9294
ARROW-4453: [Python] Cython wrappers for SparseTensor
rok Jul 2, 2019
6019dbc
ARROW-5731: [CI] Switch turbodbc branch for integration testing
xhochy Jul 2, 2019
4b09ae3
ARROW-5753: [Rust] Fix test failure in CI code coverage
sunchao Jul 2, 2019
1bbeb35
ARROW-5380: [C++] Fix memory alignment UBSan errors.
emkornfield Jul 2, 2019
7b0335f
ARROW-5818: [Java][Gandiva] support varlen output vectors
Jul 2, 2019
e70c3a7
ARROW-5823: [Rust] CI scripts miss --all-targets cargo argument
liurenjie1024 Jul 2, 2019
c645a37
[Release] Set C++ libraries runtime path to LD_LIBRARY_PATH when runn…
wesm Jul 2, 2019
732a17b
ARROW-5774: [Java][Documentation] Update how to run test
emkornfield Jul 3, 2019
913d82d
ARROW-5483: [Java] add ValueVector constructors that take Field object
Jul 3, 2019
07b550c
ARROW-5814: [Java] Implement a <Object, int> HashMap for DictionaryEn…
tianchen92 Jul 3, 2019
e28d366
ARROW-5778: [Java] Extract the logic for vector data copying to the s…
liyafan82 Jul 3, 2019
e33a2b6
ARROW-5812: [Java] Refactor method name and param type in BaseIntVector
tianchen92 Jul 3, 2019
ecbe116
ARROW-5658: [JAVA] Sync schema for VectorSchemaRoot
liyafan82 Jul 3, 2019
86f0a3a
ARROW-5813: [C++] Fix TensorEquals for different contiguous tensors
mrkn Jul 3, 2019
a9a82ec
ARROW-4036: [C++] Pluggable Status message, by exposing an abstract d…
emkornfield Jul 3, 2019
d030749
[Website] Update Fletcher link and description (#4794)
Jul 3, 2019
533ef53
Merge branch 'master' into plasma
pcmoritz Jul 3, 2019
4e099a8
fix merge
pcmoritz Jul 3, 2019
21c945c
Merge branch 'master' into plasma
pcmoritz Jul 6, 2019
c8bbf05
fix
pcmoritz Jul 6, 2019
d60f69f
update
pcmoritz Jul 6, 2019
19f0a35
update
pcmoritz Jul 6, 2019
fd3a73d
update
pcmoritz Jul 6, 2019
b6d7461
update
pcmoritz Jul 14, 2019
df06510
fix
pcmoritz Jul 15, 2019
fb0e411
update
pcmoritz Jul 15, 2019
57bfd64
fix
pcmoritz Jul 15, 2019
4cad602
update
pcmoritz Jul 15, 2019
11871a2
update
pcmoritz Jul 15, 2019
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
33 changes: 1 addition & 32 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,37 +221,6 @@ limitations under the License.

--------------------------------------------------------------------------------

src/plasma/thirdparty/ae: Modified / 3-Clause BSD

Copyright (c) 2006-2010, Salvatore Sanfilippo <antirez at gmail dot com>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Redis nor the names of its contributors may be used
to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------------------

src/plasma/thirdparty/dlmalloc.c: CC0

This is a version (aka dlmalloc) of malloc/free/realloc written by
Expand Down Expand Up @@ -378,7 +347,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------------------

This project includes code from the Boost project
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this notation necessary?

This project includes code from the Boost project and independent Asio headers

Boost Software License - Version 1.0 - August 17th, 2003

Expand Down
15 changes: 6 additions & 9 deletions cpp/apidoc/tutorials/plasma.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,16 +384,14 @@ sealed in the object store. This may especially be handy when your
program is collaborating with other Plasma clients, and needs to know
when they make objects available.

First, you can subscribe your current Plasma client to such notifications
by getting a file descriptor:
First, you can subscribe your current Plasma client to such notifications:

```cpp
// Start receiving notifications into file_descriptor.
int fd;
ARROW_CHECK_OK(client.Subscribe(&fd));
ARROW_CHECK_OK(client.Subscribe());
```

Once you have the file descriptor, you can have your current Plasma client
Once you have subscribed, you can have your current Plasma client
wait to receive the next object notification. Object notifications
include information such as Object ID, data size, and metadata size of
the next newly available object:
Expand All @@ -404,7 +402,7 @@ the next newly available object:
ObjectID object_id;
int64_t data_size;
int64_t metadata_size;
ARROW_CHECK_OK(client.GetNotification(fd, &object_id, &data_size, &metadata_size));
ARROW_CHECK_OK(client.GetNotification(&object_id, &data_size, &metadata_size));

// Get the newly available object.
ObjectBuffer object_buffer;
Expand All @@ -423,14 +421,13 @@ int main(int argc, char** argv) {
PlasmaClient client;
ARROW_CHECK_OK(client.Connect("/tmp/plasma"));

int fd;
ARROW_CHECK_OK(client.Subscribe(&fd));
ARROW_CHECK_OK(client.Subscribe());

ObjectID object_id;
int64_t data_size;
int64_t metadata_size;
while (true) {
ARROW_CHECK_OK(client.GetNotification(fd, &object_id, &data_size, &metadata_size));
ARROW_CHECK_OK(client.GetNotification(&object_id, &data_size, &metadata_size));

std::cout << "Received object notification for object_id = "
<< object_id.hex() << ", with data_size = " << data_size
Expand Down
27 changes: 16 additions & 11 deletions cpp/src/plasma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,29 @@ add_custom_command(

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")

# Set compiling options for asio headers.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-conversion -Wno-documentation")

set(PLASMA_IO_SRCS
fling.cc
io/basic_connection.cc
io/connection.cc
protocol.cc)

set(PLASMA_SRCS
client.cc
common.cc
fling.cc
io.cc
malloc.cc
plasma.cc
protocol.cc)
protocol.cc
${PLASMA_IO_SRCS})

set(PLASMA_STORE_SRCS
dlmalloc.cc
events.cc
eviction_policy.cc
plasma_allocator.cc
store.cc
thirdparty/ae/ae.c)
${PLASMA_IO_SRCS}
store.cc)

set(PLASMA_LINK_LIBS arrow_shared)
set(PLASMA_STATIC_LINK_LIBS arrow_static)
Expand Down Expand Up @@ -141,12 +148,14 @@ list(APPEND PLASMA_EXTERNAL_STORE_SOURCES "external_store.cc" "hash_table_store.
# We use static libraries for the plasma_store_server executable so that it can
# be copied around and used in different locations.
add_executable(plasma_store_server ${PLASMA_EXTERNAL_STORE_SOURCES} ${PLASMA_STORE_SRCS})

if(ARROW_BUILD_STATIC)
target_link_libraries(plasma_store_server plasma_static ${PLASMA_STATIC_LINK_LIBS})
else()
# Fallback to shared libs in the case that static libraries are not build.
target_link_libraries(plasma_store_server plasma_shared ${PLASMA_LINK_LIBS})
endif()

add_dependencies(plasma plasma_store_server)

if(ARROW_RPATH_ORIGIN)
Expand Down Expand Up @@ -174,11 +183,7 @@ elseif(APPLE)
endif()
endif()

install(FILES common.h
compat.h
client.h
events.h
test-util.h
install(FILES common.h compat.h client.h test-util.h
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/plasma")

# Plasma store
Expand Down
Loading