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
HAWQ-1480 - Added feature for packing a core file #1251
Conversation
tools/sbin/packcore
Outdated
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
# Copyright Pivotal 2014 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't suggest add "Copyright Pivotal 2014" here, since hawq is under Apache license.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@linwen It was in the original code repo I merged it from. Wanted to keep it there for reference/credits. Something similar to what is done here- incubator-hawq/tools/sbin/hawqstandbywatch.py
Let me know if it is feasible removing copyright from merged code. I can update my branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is better to remove it, also the ""Copyright Pivotal" in hawqstandbywatch.py. How do you think of this Roman? @rvs Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to remove Pivotal copyright since we are contributing this code in Apache and doing so under Apache license.
tools/sbin/packcore
Outdated
|
||
def _getLibraryListWithLDD(binary): | ||
# We manually seed this with a few libraries that are missed | ||
# This may not be needed for all proces, but will round out the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"proces" is misspelled.
tools/sbin/packcore
Outdated
u = '''%prog [options] core_file | ||
This will create an archive with the core file and all required | ||
libraries for analysis. The preference is to use GDB so that we can | ||
resolve dependancies for extensions.''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"dependancies" is misspelled.
Aside from the two misspellings identified and the pending determination to keep or remove the "Copyright Pivotal 2014" string, this PR looks good. I have run the packcore against a HAWQ instance and it performed as expected. Will we need to add documentation for this utility? |
Additionally, is a test being added to validate the functionality of packcore? |
Ed, I agree with you on adding documentation for this utility. I have some concern on adding a test case, is it a little bit strange to have a core dump file in source repository(maybe two, OSX and Linux)? Or write a test case which can trigger a core dump, then run this script. |
@edespino @vVineet @linwen - Thank you for the reviews and comments. I have incorporated the changes and removed the copyright for now. @linwen What kind of documentation do you have in mind? Here are some options -
Additional suggestions are welcomed. |
@outofmem0ry - Thanks for addressing the issues. FYI: It is helpful to push the changes to your repo:branch (outofmem0ry:feature-packcore) that this PR is based on so we can see that the issues were indeed addressed. The PR will automatically get updated when you push to your dev branch. Thanks, -=e |
@outofmem0ry - It might be helpful to check with David Yozie (@dyozie) to see if we can get this into the public HAWQ user/admin documentation. |
I doesn't look like Greenplum documents packcore either. |
I'm thinking from the perspective of an Apache developer. They shouldn't have to go to external corporate documentation sets or knowledge bases (https://discuss.pivotal.io/hc/en-us/articles/201081408-How-to-collect-core-files-for-analysis) to get useful information about a utility (packcore) included with the HAWQ distribution. As it stands, the utility (packcore) will be automatically bundled with all future HAWQ releases. |
@dyozie correct, it is not documented in greenplum. Let me know if that sounds good and I can start with the documentation. |
@dyozie - is it easy for @outofmem0ry to add docs for this utility (packcore) in incubator-hawq-docs/markdown/admin/. Can you provide some guidance? It will be helpful to share this with the dev community for future reference. |
Yes - it should be straightforward to add this information, and docs can
provide further assistance via the PR.
…-David
On Thu, Jun 8, 2017 at 9:22 AM, Ed Espino ***@***.***> wrote:
@dyozie <https://github.com/dyozie> - is it easy for @outofmem0ry
<https://github.com/outofmem0ry> to add docs for this utility (packcore)
in incubator-hawq-docs/markdown/admin/. Can you provide some guidance? It
will be helpful to share this with the dev community for future reference.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1251 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFbpVqKXGUwWZePsUGLPQFv8P9plQvyWks5sCB_IgaJpZM4Nw2Wo>
.
|
@dyozie @edespino - submitted documentation under incubator-hawq-docs pull Request #123. |
LGTM |
This PR (sans documentation which is included in PR #123) LGTM. |
merged, this pr can be closed now. Thanks! |
Shubham, this PR has been merged into master. Would you please close it? Thanks! |
Thank you for the merge @linwen. Marking it closed. |
Currently there is no way to packing a core file with its context – executable, application and system shared libraries in hawq. This information can be later unpacked on another system and helps in debugging. It is a useful feature to quickly gather all the data needed from a crash/core generated on the system to analyze it later.
Another open source project, greenplum, uses a script https://github.com/greenplum-db/gpdb/blob/master/gpMgmt/sbin/packcore to collect this information. Merging this into hawq.