[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-12-06 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/850 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-10-21 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-149862804 Sure, I think that a more specific “throws” clause has to be used. Throws exception, was just an expression. --- If your project is set up for it, y

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-10-21 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-149862051 not "throws Exception" but a more specific throws. In this case the exceptions are silently ignored as part of a happy flow. I don't like that but I'm not goin

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-10-21 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-149861633 If an exception occurs, is the test still going to pass? If that is not the case, I would use "throws Exception" on each one of those tests. --- If y

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-10-21 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-149818277 the reason for ignoring should be made more explicit in one way or the other. I'm not hellbound on logging but I see no problem in it. A caught and ignored exce

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-10-20 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-149744151 Do you guys really think that is a good idea to log exceptions in a test case? If the case is just to ignore them, it could be done without logging.

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-10-19 Thread ustcweizhou
Github user ustcweizhou commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-149162987 LGTM --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature e

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-09-30 Thread koushik-das
Github user koushik-das commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-144384074 @DaanHoogland @borisroman The test needs to invoke a protected method from a class and so is done using reflection. The test case already asserts for the method

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-09-30 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-144363576 @borisroman the expeted attribute is not there and as I understand with reason. The exceptions are part of the contract and need to be handled by the client. Th

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-09-19 Thread borisroman
Github user borisroman commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-141662154 @DaanHoogland Why log when an exception is thrown? In a test when an exception is thrown it should either fail, or when @Test(expected = --exception.class--) is d

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-09-18 Thread koushik-das
Github user koushik-das commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-141620583 LGTM --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature e

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-09-18 Thread DaanHoogland
GitHub user DaanHoogland opened a pull request: https://github.com/apache/cloudstack/pull/850 CLOUDSTACK-8656: tests ignoring exceptions final few ignored exceptions supplied with log messages. You can merge this pull request into a Git repository by running: $ git pull https:/

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-14 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/654 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-14 Thread remibergsma
Github user remibergsma commented on the pull request: https://github.com/apache/cloudstack/pull/654#issuecomment-131214770 @bhaisaab Indeed, let's fix forward when needed :-) There's always a risk, but I'm happy to see this work being done :+1: --- If your project is set up for it,

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-14 Thread remibergsma
Github user remibergsma commented on the pull request: https://github.com/apache/cloudstack/pull/654#issuecomment-131212079 @DaanHoogland I agree, we should only squash if there is no value to have the commits separated. I usually ask for squashing when feedback was processed in a sep

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-14 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/654#issuecomment-131181130 You know I am a great advocate of not squashing, right. All commits are atomic. Yes there is a lot because the work has also been scattered and a lot. --- If y

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-14 Thread bhaisaab
Github user bhaisaab commented on the pull request: https://github.com/apache/cloudstack/pull/654#issuecomment-131179496 Another way of fixing a regression could be to simply fix the issue, instead of reverting at all. --- If your project is set up for it, you can reply to this email

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-14 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/654#issuecomment-131178239 All kinds of regressions may be introduced. This is (one of the reasons) why I will not squash. for a single regression we only have to revert a single commit,

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-14 Thread bhaisaab
Github user bhaisaab commented on the pull request: https://github.com/apache/cloudstack/pull/654#issuecomment-131175032 look alright, but could it introduce any regressions in the upgrade path? Also, I would love to see a single squashed patched with the changes given ~30 patches for

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-14 Thread wido
Github user wido commented on the pull request: https://github.com/apache/cloudstack/pull/654#issuecomment-131164822 LGTM --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-11 Thread mike-tutkowski
Github user mike-tutkowski commented on the pull request: https://github.com/apache/cloudstack/pull/654#issuecomment-129990097 LGTM --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this featur

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-11 Thread mike-tutkowski
Github user mike-tutkowski commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/654#discussion_r36774764 --- Diff: services/console-proxy/server/src/com/cloud/consoleproxy/vnc/packet/server/RawRect.java --- @@ -50,26 +52,27 @@ public void paint(Buffer

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-04 Thread DaanHoogland
Github user DaanHoogland commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/654#discussion_r36167090 --- Diff: vmware-base/src/com/cloud/hypervisor/vmware/mo/SnapshotDescriptor.java --- @@ -166,12 +168,7 @@ public void removeDiskReferenceFromSnapshot

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-04 Thread koushik-das
Github user koushik-das commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/654#discussion_r36166742 --- Diff: vmware-base/src/com/cloud/hypervisor/vmware/mo/SnapshotDescriptor.java --- @@ -166,12 +168,7 @@ public void removeDiskReferenceFromSnapshot(

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-04 Thread koushik-das
Github user koushik-das commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/654#discussion_r36166324 --- Diff: utils/src/com/cloud/utils/AutoCloseableUtil.java --- @@ -0,0 +1,20 @@ +package com.cloud.utils; --- End diff -- License? -

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-03 Thread mike-tutkowski
Github user mike-tutkowski commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/654#discussion_r36141245 --- Diff: utils/src/com/cloud/utils/AutoCloseableUtil.java --- @@ -0,0 +1,20 @@ +package com.cloud.utils; + +import org.apache.log4j.Log

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-03 Thread mike-tutkowski
Github user mike-tutkowski commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/654#discussion_r36141156 --- Diff: framework/db/src/com/cloud/utils/db/DbUtil.java --- @@ -43,8 +43,10 @@ import org.apache.log4j.Logger; +import static

[GitHub] cloudstack pull request: Cloudstack 8656: do away with more silent...

2015-08-03 Thread DaanHoogland
GitHub user DaanHoogland opened a pull request: https://github.com/apache/cloudstack/pull/654 Cloudstack 8656: do away with more silently ignoring exceptions You can merge this pull request into a Git repository by running: $ git pull https://github.com/DaanHoogland/cloudstack

[GitHub] cloudstack pull request: Cloudstack 8656: do away with silently ig...

2015-08-03 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/649 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is

[GitHub] cloudstack pull request: Cloudstack 8656: do away with silently ig...

2015-08-03 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/649#issuecomment-127398255 two lgtm and succesful travis, merge gives no conflicts but will do a local build before push anyway --- If your project is set up for it, you can reply to thi

[GitHub] cloudstack pull request: Cloudstack 8656: do away with silently ig...

2015-08-03 Thread mike-tutkowski
Github user mike-tutkowski commented on the pull request: https://github.com/apache/cloudstack/pull/649#issuecomment-127359986 I just had a comment on 87ae150. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your proje

[GitHub] cloudstack pull request: Cloudstack 8656: do away with silently ig...

2015-08-03 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/649#issuecomment-127357042 @mike-tutkowski sorry didn't notice your reply, I added a view more. Can you have a look? --- If your project is set up for it, you can reply to this email and

Re: [GitHub] cloudstack pull request: Cloudstack 8656: do away with silently ig...

2015-08-03 Thread Mike Tutkowski
Yes On Monday, August 3, 2015, DaanHoogland wrote: > Github user DaanHoogland commented on the pull request: > > https://github.com/apache/cloudstack/pull/649#issuecomment-127284140 > > @mike-tutkowski are you alright with this now (merge-level allright;)? > > > --- > If your project is

[GitHub] cloudstack pull request: Cloudstack 8656: do away with silently ig...

2015-08-03 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/649#issuecomment-127284140 @mike-tutkowski are you alright with this now (merge-level allright;)? --- If your project is set up for it, you can reply to this email and have your reply app

[GitHub] cloudstack pull request: Cloudstack 8656: do away with silently ig...

2015-08-03 Thread wilderrodrigues
Github user wilderrodrigues commented on the pull request: https://github.com/apache/cloudstack/pull/649#issuecomment-127174572 LGTM :+1: --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this

[GitHub] cloudstack pull request: Cloudstack 8656: do away with silently ig...

2015-08-02 Thread mike-tutkowski
Github user mike-tutkowski commented on the pull request: https://github.com/apache/cloudstack/pull/649#issuecomment-127112655 Aside from a few comments on 04e9083c3199effa295e47bc617b9b406adb6109, LGTM. --- If your project is set up for it, you can reply to this email and have your r

[GitHub] cloudstack pull request: Cloudstack 8656: do away with silently ig...

2015-08-02 Thread DaanHoogland
GitHub user DaanHoogland opened a pull request: https://github.com/apache/cloudstack/pull/649 Cloudstack 8656: do away with silently ignoring exceptions You can merge this pull request into a Git repository by running: $ git pull https://github.com/DaanHoogland/cloudstack CLOU

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-30 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/637 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-30 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126331708 So I will amend the interrupted to be level debug and then merge. next I will create a new PR for any remaining empty catch blocks, @koushik-das. --- If your p

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-30 Thread koushik-das
Github user koushik-das commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126260440 @DaanHoogland Merge this in 4.6. If possible push the log level changes in 4.6 as well. --- If your project is set up for it, you can reply to this email and ha

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-30 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126238495 So @koushik-das Do you propose the folowing? - merge this for 4.6 - make a critical ticket for 4.7 to asses log levels note that I am not completely d

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-30 Thread koushik-das
Github user koushik-das commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126233316 Changes LGTM, since we are creating a separate bug for correctly handling log levels. @DaanHoogland I am not saying to remove the interrupted exceptions, just

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-30 Thread wilderrodrigues
Github user wilderrodrigues commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126215256 @kishankavala @DaanHoogland :+1: for the Jira ticket. After 4.6 we can come back to this and assess the messages accordingly. But would be nice to h

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-30 Thread wido
Github user wido commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126214607 Code wise it is LGTM --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-30 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126206244 @kishankavala you actually made me think I should wait till after 4.6, on the other hand we will have to take the pain in a release. --- If your project is set

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-30 Thread kishankavala
Github user kishankavala commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126205414 @DaanHoogland Agreed that setting appropriate log level is out of the scope for this PR. But we should file a jira ticket to track and address it before nex

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-29 Thread wilderrodrigues
Github user wilderrodrigues commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126204154 Fair enough, @DaanHoogland Thanks for the exaplanation. :) LGTM :+1: --- If your project is set up for it, you can reply to this email an

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-29 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126202911 @koushik-das, Ignoring interrupted exceptions means that you do not allow the user or other threads to interrupt you. To me that seems serious. I did not in any

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-29 Thread wilderrodrigues
Github user wilderrodrigues commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126200897 Hi @DaanHoogland Nice you took time to have a look at those. It really helps sys admins to know what is going on with ACS. However, I would rather h

[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...

2015-07-29 Thread koushik-das
Github user koushik-das commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126185823 Since all these "ignore" messages are logged at INFO level, it needs to be ensured that logs are not getting filled up too soon. Also I see lot of instances for

[GitHub] cloudstack pull request: Cloudstack 8656

2015-07-29 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126094297 @wilderrodrigues @wido @bhaisaab @rajesh-battala @koushik-das @kishankavala @K0zka I am taking this by exception type now so this is going to give conflicts

[GitHub] cloudstack pull request: Cloudstack 8656

2015-07-29 Thread DaanHoogland
GitHub user DaanHoogland opened a pull request: https://github.com/apache/cloudstack/pull/637 Cloudstack 8656 filling empty catch clauses with log messages You can merge this pull request into a Git repository by running: $ git pull https://github.com/DaanHoogland/cloudstack CL