You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Tanveer (Jira)" <ji...@apache.org> on 2020/04/25 20:28:00 UTC
[jira] [Created] (ARROW-8594) [GLib][Plasma] Check failed:
object.data_size == data_size
Tanveer created ARROW-8594:
------------------------------
Summary: [GLib][Plasma] Check failed: object.data_size == data_size
Key: ARROW-8594
URL: https://issues.apache.org/jira/browse/ARROW-8594
Project: Apache Arrow
Issue Type: Bug
Affects Versions: 0.16.0
Reporter: Tanveer
Fix For: 0.12.0
There is some problem with Plasma Object creation in Arrow Build 0.16.
The following test function was working fine with Build 0.12, but now in Build 0.16 it is giving some check error: Check failed: object.data_size == data_size
The sample code is:
{code:java}
void plasma_cglib_test(void){
gboolean success = TRUE;
GError *error = NULL;
guint8 id_arr[20] = {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9};
GPlasmaClient *gPlasmaClient;
GPlasmaObjectID *object_id;
GPlasmaClientCreateOptions *create_options;
GPlasmaClientOptions *gplasmaClient_options;
GPlasmaCreatedObject *Object;
const guint8 *testdata = (const guint8[]){'a', 'b', 'c', 0};
gint64 size=4;
create_options = gplasma_client_create_options_new();
gplasmaClient_options = gplasma_client_options_new();
gPlasmaClient = gplasma_client_new("/tmp/store0",gplasmaClient_options, &error);
object_id = gplasma_object_id_new(id_arr, 20, &error);
{
guint8 metadata[] = "metadata";
gplasma_client_create_options_set_metadata(create_options, (const guint8 *)metadata, sizeof(metadata));
}
Object = gplasma_client_create(gPlasmaClient, object_id, size, create_options, &error);
g_object_unref(create_options);
{
GArrowBuffer *data;
g_object_get(Object, "data", &data, NULL);
garrow_mutable_buffer_set_data(GARROW_MUTABLE_BUFFER(data),0, testdata,size,&error);
g_object_unref(data);
}
gplasma_created_object_seal(Object, &error);
g_object_unref(Object);
gplasma_client_disconnect(gPlasmaClient, &error);
g_object_unref(gPlasmaClient);
g_object_unref(object_id);
fprintf(stderr, "[%s] obj_id: %d , size: %ld, Done. \n", __func__, id_arr[0], size);
}
{code}
Output for build 0.12 is:
{code:java}
Singularity> plasma_store -m 93000 -s /tmp/store0 & ./bwa
[1] 29574
WARNING: Logging before InitGoogleLogging() is written to STDERR
E0425 22:14:50.104815 29575 io.cc:168] Connection to IPC socket failed for pathname /tmp/store0, retrying 50 more times
E0425 22:14:50.205021 29575 io.cc:168] Connection to IPC socket failed for pathname /tmp/store0, retrying 49 more times
E0425 22:14:50.305122 29575 io.cc:168] Connection to IPC socket failed for pathname /tmp/store0, retrying 48 more times
I0425 22:14:50.333011 29574 store.cc:994] Allowing the Plasma store to use up to 9.3e-05GB of memory.
I0425 22:14:50.379298 29574 store.cc:1024] Starting object store with directory /dev/shm and huge page support disabled
I0425 22:14:50.405828 29574 store.cc:599] Disconnecting client on fd 6
[plasma_cglib_test] obj_id: 1 , size: 4, Done. {code}
Following is the output for build 0.16:
{code:java}
Singularity> plasma_store -m 93000 -s /tmp/store0 & ./bwa
[1] 28738
/build/apache-arrow-0.16.0/cpp/src/plasma/io.cc:168: Connection to IPC socket failed for pathname /tmp/store0, retrying 20 more times
/arrow/cpp/src/plasma/store.cc:1242: Allowing the Plasma store to use up to 9.3e-05GB of memory.
/arrow/cpp/src/plasma/store.cc:1269: Starting object store with directory /dev/shm and huge page support disabled
/build/apache-arrow-0.16.0/cpp/src/plasma/client.cc:437: Check failed: object.data_size == data_size
/usr/lib/x86_64-linux-gnu/libarrow.so.16(+0x339dd1)[0x2b0a70d55dd1]
/usr/lib/x86_64-linux-gnu/libarrow.so.16(_ZN5arrow4util8ArrowLogD1Ev+0xdd)[0x2b0a7104346d]
/usr/lib/x86_64-linux-gnu/libplasma.so.16(+0x14021)[0x2b0a7224d021]
/usr/lib/x86_64-linux-gnu/libplasma.so.16(_ZN6plasma12PlasmaClient6CreateERKNS_8UniqueIDElPKhlPSt10shared_ptrIN5arrow6BufferEEi+0x29)[0x2b0a7224d289]
/usr/local/lib/libplasma-glib.so.16(gplasma_client_create+0xe3)[0x2b0a6f912513]
./bwa(+0x204b2)[0x55babc7e04b2]
./bwa(+0x329c)[0x55babc7c329c]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x2b0a6ff96b97]
./bwa(+0x3a5a)[0x55babc7c3a5a]
/arrow/cpp/src/plasma/store.ccAborted (core dumped)
:749: Disconnecting client on fd 6{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)