Skip to content

Add more debug logs for task action#24

Open
nishantmonu51 wants to merge 1 commit into0.8.3-mmxfrom
0.8.3-mmx-debug
Open

Add more debug logs for task action#24
nishantmonu51 wants to merge 1 commit into0.8.3-mmxfrom
0.8.3-mmx-debug

Conversation

@nishantmonu51
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

why catch and suppress Throwable rather than Exception or IOException?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nm, didn't realize this was metamx/druid. do what you want :)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

But really, this will catch things like OOME, which is probably not want to be caught.

Suggest checking for Exception, and throwing if is a fatal type.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

changing to Exception.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This should probably be debug level.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done.

review comment

review comments
return taskAction.perform(task, toolbox);
RetType rv = taskAction.perform(task, toolbox);
log.debug(
"Completed action for task[%s]: %s. Took [%d]ms",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Completed action for task[%s]: %s in [%d]ms might be easier to read

@xvrl
Copy link
Copy Markdown

xvrl commented Mar 9, 2016

@nishantmonu51 I think we can submit this directly to upstream and merge into our 0.9 branch

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.

4 participants