-
Notifications
You must be signed in to change notification settings - Fork 26
-
Notifications
You must be signed in to change notification settings - Fork 26
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
NullPointerException thrown from MultithreadedMapper doing a forest import. #4
Comments
I still see this issue happening with latest mlcp.zip form QA directory here is the stack trace /space/Head/qa/mlcp/mlcp-9.0/bin/mlcp.sh IMPORT -input_file_path /var/opt/MarkLogic/Forests/mlcp-f15a -input_file_type forest -host localhost -port 5275 -username admin -password admin -output_collections A -mode local I have a test mlcp-da-test15.xml which has the scenario. |
Sravan, Please file a separate bug. This seems a different stack. I'll take a look. Jane |
Your forest is generated from an 8.0 database? |
If this works against a 9.0 forest, file a separate bug; otherwise, you can reopen this bug and assign it to me. |
I ran the test against 9.0 trunk build and apart from the properties, I also have permissions, collections in the forests if that makes difference here. |
Don't understand what you mean. When you ran it against a 9.0 forest, did you reproduce NullPointerException? If not, what did you get after the import? |
I ran the test mlcp-da-test15.xml against 9.0 nightly and found mlcp throwing below error mlcp-da-test14.xml is a new test which I wrote yesterday based on the bug desription , after running mlcp command I can only see documents being imported but no properties command that I ran /space/Head/qa/mlcp/marklogic-contentpump/bin/mlcp.sh IMPORT -input_file_path /var/opt/MarkLogic/Forests/mlcp-f15a -input_file_type forest -host localhost -port 5275 -username admin -password admin -output_collections A -output_uri_prefix /Test1 -mode local Please find more details in the test. |
I tried against both a 9.0 and an 8.0 forest. Both worked. Please give me access to the forest which failed for you. Make sure the forest is offline when you copy it. |
I am trying to do this as dynamic, here are my steps
Am I missing anything here, am I suppose to do another step of setting forest to offline? detaching from database isn't work? |
The above steps sound fine. But you need to give me access to the forest, so that I can reproduce. Basically with my forests, the NPE isn't reproducible. |
There's a test Sravan told me about: mlcp-da-test15. Thank you. Here's what I got: [jchen@jchen-z620 mlcp]$ mlcp-9.0/bin/mlcp.sh IMPORT -input_file_path /var/opt/MarkLogic/Forests/mlcp-f15a -input_file_type forest -host localhost -port 5275 -username admin -password admin -output_collections A -output_uri_prefix /Test1 -mode local |
Verified on the latest build and updated the key, looks good to me |
mlcp-9.0/bin/mlcp.sh import -username admin -password admin -host jchen -port 5275 -input_file_type forest -input_file_path /space/projects/head/xdmp/src/Data2/Forests/Documents
16/07/20 15:23:01 ERROR contentpump.MultithreadedMapper:
java.lang.NullPointerException
at com.marklogic.contentpump.MultithreadedMapper$SubMapRecordReader.nextKeyValue(MultithreadedMapper.java:285)
at org.apache.hadoop.mapreduce.task.MapContextImpl.nextKeyValue(MapContextImpl.java:80)
at org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.nextKeyValue(WrappedMapper.java:91)
at com.marklogic.contentpump.BaseMapper.runThreadSafe(BaseMapper.java:45)
at com.marklogic.contentpump.MultithreadedMapper$MapRunner.run(MultithreadedMapper.java:376)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Have a forest with properties fragments. Not sure why it's not a problem with other errors. Seems like something we are not covering in regression tests.
The text was updated successfully, but these errors were encountered: