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

Fix #841 #14

Merged
merged 2 commits into from
Sep 21, 2017
Merged

Fix #841 #14

merged 2 commits into from
Sep 21, 2017

Conversation

mocchira
Copy link
Member

@yosukehara
Copy link
Member

@mocchira the test case has been not passed for three straight times as below:

=ERROR REPORT==== 21-Sep-2017::11:12:25 ===
** State machine leo_compact_worker_0 terminating
** Last message in was {'$gen_sync_event',
                           {<0.2066.0>,#Ref<0.0.1.19278>},
                           {compaction_event_info,undefined,run,<0.2066.0>,
                               undefined,false,false,false,
                               #Fun<leo_object_storage_api_tests.143.17770642>}}
** When State == idling
**      Data  == {compaction_worker_state,leo_compact_worker_0,
                     leo_object_storage_0,leo_object_storage_read_0,
                     leo_metadata_0,
                     {backend_info,undefined,<<>>,<<>>,[],[],undefined,
                         undefined},
                     undefined,leo_diagnosis_log_0,idling,false,false,false,
                     false,false,100,300,0,50,150,10,
                     {compaction_prms,<<>>,<<>>,
                         {metadata_3,<<>>,0,0,0,<<>>,0,0,0,0,0,0,0,0,0,
                             undefined,0,0,0,0,0,0},
                         0,0,undefined,0,0,0,0},
                     {compaction_skip_garbage,<<>>,0,512,false,false},
                     0,0,undefined,[],undefined}
** Reason for termination =
** {{db_open,"IO error: lock /home/yosuke/dev/projects/leo-project/leofs/deps/leo_object_storage/.eunit/comaction_test/avs1/metadata/0_63673179145//LOCK: Resource temporarily unavailable"},
    {gen_server,call,[leo_metadata_0,run_compaction,30000]}}

=CRASH REPORT==== 21-Sep-2017::11:12:25 ===
  crasher:
    initial call: leo_compact_fsm_worker:init/1
    pid: <0.1999.0>
    registered_name: leo_compact_worker_0
    exception exit: {{db_open,"IO error: lock /home/yosuke/dev/projects/leo-project/leofs/deps/leo_object_storage/.eunit/comaction_test/avs1/metadata/0_63673179145//LOCK: Resource temporarily unavailable"},
                     {gen_server,call,[leo_metadata_0,run_compaction,30000]}}
      in function  gen_fsm:terminate/7 (gen_fsm.erl, line 626)
    ancestors: [leo_object_storage_sup,<0.1954.0>]
    messages: []
    links: [#Port<0.56777>,<0.1955.0>,#Port<0.56772>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2586
    stack_size: 27
    reductions: 15378
  neighbours:

@mocchira
Copy link
Member Author

@yosukehara

/home/yosuke/dev/projects/leo-project/leofs/deps/leo_object_storage/.eunit/comaction_test/avs1/metadata/0_63673179145//LOCK: Resource temporarily unavailable

It seems the existing directory - compaction_test under .eunit may cause this problem. how about make eunit after removing -rf .eunit/compaction_test ? If this works for you, we may have to add some clean up code into test suites.

@yosukehara
Copy link
Member

@mocchira After removing .eunit/, It works fine.

we may have to add some cleanup code into test suites.

To avoid test case failure, we need to implement the cleanup code.

@mocchira
Copy link
Member Author

@yosukehara PTAL.

@yosukehara yosukehara merged commit 023cd7c into leo-project:develop Sep 21, 2017
@yosukehara
Copy link
Member

@mocchira Merged, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants