Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-09-16 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  closed
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:  fixed
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by karsten):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Replying to [comment:10 fava]:
 > [...] there are no more issues for try-with-resources .

 Cool! Closing this ticket then. Want to create a new ticket for the next
 issue type? Thanks!

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-09-07 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by fava):

 Replying to [comment:9 karsten]:
 > Looks good! Merged to master. Thanks!
 >

 Last compressed archive with all remaining try-with-resource
 [attachment:30544-resource-leak-v4.tar.gz​].

 I also execute travis + sonarcloud on a branch master + try-with-
 resources-patches and there are no more issues for try-with-resources .
 Please find at [https://sonarcloud.io/project/issues?id=org.torproject
 %3Ametrics-lib=false latest analysis]

 Best Regards

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-09-07 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by fava):

 * Attachment "30544-resource-leak-v4.tar.gz" added.


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-09-02 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by karsten):

 Looks good! Merged to master. Thanks!

 Don't worry about ticket status. I receive an email for every change on
 this ticket, so I'll notice whenever there's something to review. It would
 just be more convenient to have the status changed to needs_review,
 because then the ticket would show up in queries, too. But that's not your
 fault!

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-08-29 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by fava):

 Hi karsten,

 Replying to [comment:7 karsten]:
 > Looks good to me! Merged all three commits and pushed them to master.
 Sorry for missing the part about not being able to change ticket status,
 I'll try to remember that. Setting this ticket to new for the remaining
 try-with-resources cases, unless you tell me there are none anymore.
 Thanks!

 I found another try-with-resources case please find in attachment a patch
 [[0001-Fix-leaking-resource-in-TorperfResultImpl.java.patch​​]] for this
 last case.

 I also create my remote branch https://github.com/f-a-v-a/metrics-
 lib/tree/30544-try-with-resources-2 .

 I cannot be able to change ticket status as I sown in snapshot [[actions-
 trac-30544.png​​]]

 Let me know
 Best Regards

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-08-29 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by fava):

 * Attachment "actions-trac-30544.png" added.

 Actions trac

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-08-29 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by fava):

 * Attachment "0001-Fix-leaking-resource-in-TorperfResultImpl.java.patch"
 added.

 Fix leaking resource TorpertResultImpl

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-08-23 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by karsten):

 * status:  needs_revision => new


Comment:

 Looks good to me! Merged all three commits and pushed them to master.
 Sorry for missing the part about not being able to change ticket status,
 I'll try to remember that. Setting this ticket to new for the remaining
 try-with-resources cases, unless you tell me there are none anymore.
 Thanks!

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-08-22 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  needs_revision
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+

Comment (by fava):

 Hi karsten

 Replying to [comment:5 karsten]:
 >  - There are some minor whitespace issues. Please run `ant checks`
 before submitting a patch.
 I created a new version of path starting from updated master, fix `ant
 checks` whitespace and comment rewrited with your advice
 [[attachment:30544-resource-leak-v2.zip​]]

 I also update my remote branch https://github.com/f-a-v-a/metrics-
 lib/tree/30544-try-with-resources .

 >  - Those TODO comments look reasonable, but let's maybe try to just fix
 them now, each of them in a separate commit. Otherwise we'll just collect
 more things to do in the sources.
 I prefer to create a new trac tasks for TODO comment after this patch will
 be merged into master branch. This help me to focus on one activity at
 time and split different activities

 >  - Our commit messages typically start with a roughly 50 chars long
 summary line, followed by two newlines, followed by text wrapped to 70
 chars. Can you try to rephrase your commit messages accordingly?
 Done
 >  - Can you rebase your edited commits to master?
 Done
 >  - When you post a patch or branch, be sure to change status to
 needs_review. To be clear, this is not the main reason for us not
 reviewing sooner, but it could be a possible reason for future delays.
 As I wrote on 21 May 2019 "Re: [metrics-team] Sonarqube on metrics-lib" :
 {{{
 So I created the first issue on trac system [1] (Using
 try-with-resources or close resource) but I cannot change status to in
 progress or assign to me.
 }}}

 Please let me know your code review,
 Best Regards

 fava

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-08-21 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  needs_revision
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+
Changes (by fava):

 * Attachment "30544-resource-leak-v2.zip" added.

 Version 2 patch

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-07-10 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  needs_revision
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+
Changes (by karsten):

 * status:  new => needs_revision


Comment:

 This took much longer than it should have, sorry for that. Trying to get
 faster with future reviews!

 Here's what I found:

  - There are some minor whitespace issues. Please run `ant checks` before
 submitting a patch.
  - Those TODO comments look reasonable, but let's maybe try to just fix
 them now, each of them in a separate commit. Otherwise we'll just collect
 more things to do in the sources.
  - Our commit messages typically start with a roughly 50 chars long
 summary line, followed by two newlines, followed by text wrapped to 70
 chars. Can you try to rephrase your commit messages accordingly?
  - Can you rebase your edited commits to master?
  - When you post a patch or branch, be sure to change status to
 needs_review. To be clear, this is not the main reason for us not
 reviewing sooner, but it could be a possible reason for future delays.

 Thanks again!

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-06-03 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by fava):

 Replying to [comment:1 karsten]:
 > Would you be able to submit a patch that fixes one instance of this
 issue? It could be a GitHub branch or a patch created with `git format-
 patch`.

 Replying to [comment:2 irl]:
 > GitHub mirror is here if you want to fork it:
 ​https://github.com/torproject/metrics-lib

 Please find in attachment my patch files [[attachment:patch-fix-resource-
 leak.zip]]
 There is also a specific github branch https://github.com/f-a-v-a/metrics-
 lib/tree/30544-try-with-resources .

 Please let me know your code review,
 Best Regards

 Let me kn

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-06-03 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by fava):

 * Attachment "patch-fix-resource-leak.zip" added.


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-05-29 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by fava):

 Replying to [comment:2 irl]:
 > GitHub mirror is here if you want to fork it:
 https://github.com/torproject/metrics-lib

 I just created a fork and pushed a specific branch for this ticket
 https://github.com/f-a-v-a/metrics-lib/tree/30544-try-with-resources.

 At the moment this branch contains my temporary work and I did not
 complete the task.

 I will inform you when I finish the development.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-05-21 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by irl):

 GitHub mirror is here if you want to fork it:
 https://github.com/torproject/metrics-lib

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-05-21 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by karsten):

 Would you be able to submit a patch that fixes one instance of this issue?
 It could be a GitHub branch or a patch created with `git format-patch`.

 Regarding the fix, I'd say that using try-with-resources is better than
 explicitly closing the resource. But let's discuss this more once there's
 a patch.

 Thanks!

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-05-20 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
-+--
 Reporter:  fava |  Owner:  metrics-team
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Library  |Version:
 Severity:  Major| Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by fava):

 * Attachment "try-with-resources.csv" added.

 Sonarqube try-with-resources

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

[tor-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

2019-05-20 Thread Tor Bug Tracker & Wiki
#30544: Using try-with-resources or close resource
+-
 Reporter:  fava|  Owner:  metrics-team
 Type:  defect  | Status:  new
 Priority:  Medium  |  Component:  Metrics/Library
  Version:  |   Severity:  Major
 Keywords:  |  Actual Points:
Parent ID:  | Points:
 Reviewer:  |Sponsor:
+-
 Sonarqube identifies a list of case as:
 Use try-with-resources or close this ...

 Please find in attachment a detailed report for this issues type.

 It is required to check or use try-with-resources statementa change in
 source code.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs