You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2020/01/24 02:45:59 UTC

[kudu-CR] [util] add error buffer for EasyCurl wrapper

Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/15101


Change subject: [util] add error buffer for EasyCurl wrapper
......................................................................

[util] add error buffer for EasyCurl wrapper

Enabled CURLOPT_ERRORBUFFER option for the EasyCurl utility wrapper.
This is to help collecting additional information on the error occurred,
if any.

Change-Id: I6e4a8a8a42671f141842ff6051aa18820a8f7f5a
---
M src/kudu/util/curl_util.cc
M src/kudu/util/curl_util.h
2 files changed, 34 insertions(+), 15 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/01/15101/1
-- 
To view, visit http://gerrit.cloudera.org:8080/15101
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6e4a8a8a42671f141842ff6051aa18820a8f7f5a
Gerrit-Change-Number: 15101
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>

[kudu-CR] [util] add error buffer for EasyCurl wrapper

Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/15101 )

Change subject: [util] add error buffer for EasyCurl wrapper
......................................................................


Patch Set 1:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/15101/1/src/kudu/util/curl_util.h
File src/kudu/util/curl_util.h:

http://gerrit.cloudera.org:8080/#/c/15101/1/src/kudu/util/curl_util.h@24
PS1, Line 24: #include <curl/curl.h>
Would be nice if we could avoid leaking this header to whomever includes curl_util.h.


http://gerrit.cloudera.org:8080/#/c/15101/1/src/kudu/util/curl_util.cc
File src/kudu/util/curl_util.cc:

http://gerrit.cloudera.org:8080/#/c/15101/1/src/kudu/util/curl_util.cc@173
PS1, Line 173:   if (strlen(errbuf_) != 0) {
Maybe we can pass errbuf_ by arg and avoid exposing TranslateError as a member function?



-- 
To view, visit http://gerrit.cloudera.org:8080/15101
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6e4a8a8a42671f141842ff6051aa18820a8f7f5a
Gerrit-Change-Number: 15101
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Fri, 24 Jan 2020 03:27:12 +0000
Gerrit-HasComments: Yes

[kudu-CR] [util] add error buffer for EasyCurl wrapper

Posted by "Volodymyr Verovkin (Code Review)" <ge...@cloudera.org>.
Volodymyr Verovkin has posted comments on this change. ( http://gerrit.cloudera.org:8080/15101 )

Change subject: [util] add error buffer for EasyCurl wrapper
......................................................................


Patch Set 2: Code-Review+1


-- 
To view, visit http://gerrit.cloudera.org:8080/15101
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6e4a8a8a42671f141842ff6051aa18820a8f7f5a
Gerrit-Change-Number: 15101
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Volodymyr Verovkin <ve...@cloudera.com>
Gerrit-Comment-Date: Sat, 25 Jan 2020 02:22:34 +0000
Gerrit-HasComments: No

[kudu-CR] [util] add error buffer for EasyCurl wrapper

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/15101 )

Change subject: [util] add error buffer for EasyCurl wrapper
......................................................................


Patch Set 1:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/15101/1/src/kudu/util/curl_util.h
File src/kudu/util/curl_util.h:

http://gerrit.cloudera.org:8080/#/c/15101/1/src/kudu/util/curl_util.h@24
PS1, Line 24: #include <curl/curl.h>
> Would be nice if we could avoid leaking this header to whomever includes cu
Done


http://gerrit.cloudera.org:8080/#/c/15101/1/src/kudu/util/curl_util.cc
File src/kudu/util/curl_util.cc:

http://gerrit.cloudera.org:8080/#/c/15101/1/src/kudu/util/curl_util.cc@173
PS1, Line 173:   if (strlen(errbuf_) != 0) {
> Maybe we can pass errbuf_ by arg and avoid exposing TranslateError as a mem
Done



-- 
To view, visit http://gerrit.cloudera.org:8080/15101
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6e4a8a8a42671f141842ff6051aa18820a8f7f5a
Gerrit-Change-Number: 15101
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Volodymyr Verovkin <ve...@cloudera.com>
Gerrit-Comment-Date: Sat, 25 Jan 2020 00:25:59 +0000
Gerrit-HasComments: Yes

[kudu-CR] [util] add error buffer for EasyCurl wrapper

Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/15101 )

Change subject: [util] add error buffer for EasyCurl wrapper
......................................................................


Patch Set 2: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/15101
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6e4a8a8a42671f141842ff6051aa18820a8f7f5a
Gerrit-Change-Number: 15101
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Volodymyr Verovkin <ve...@cloudera.com>
Gerrit-Comment-Date: Sat, 25 Jan 2020 01:04:17 +0000
Gerrit-HasComments: No

[kudu-CR] [util] add error buffer for EasyCurl wrapper

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Hello Kudu Jenkins, Adar Dembo, Volodymyr Verovkin, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/15101

to look at the new patch set (#2).

Change subject: [util] add error buffer for EasyCurl wrapper
......................................................................

[util] add error buffer for EasyCurl wrapper

Enabled CURLOPT_ERRORBUFFER option for the EasyCurl utility wrapper.
This is to help collecting additional information on the error occurred,
if any.

Change-Id: I6e4a8a8a42671f141842ff6051aa18820a8f7f5a
---
M src/kudu/util/curl_util.cc
M src/kudu/util/curl_util.h
2 files changed, 57 insertions(+), 38 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/01/15101/2
-- 
To view, visit http://gerrit.cloudera.org:8080/15101
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6e4a8a8a42671f141842ff6051aa18820a8f7f5a
Gerrit-Change-Number: 15101
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Volodymyr Verovkin <ve...@cloudera.com>

[kudu-CR] [util] add error buffer for EasyCurl wrapper

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/15101 )

Change subject: [util] add error buffer for EasyCurl wrapper
......................................................................

[util] add error buffer for EasyCurl wrapper

Enabled CURLOPT_ERRORBUFFER option for the EasyCurl utility wrapper.
This is to help collecting additional information on the error occurred,
if any.

Change-Id: I6e4a8a8a42671f141842ff6051aa18820a8f7f5a
Reviewed-on: http://gerrit.cloudera.org:8080/15101
Tested-by: Kudu Jenkins
Reviewed-by: Adar Dembo <ad...@cloudera.com>
Reviewed-by: Volodymyr Verovkin <ve...@cloudera.com>
---
M src/kudu/util/curl_util.cc
M src/kudu/util/curl_util.h
2 files changed, 57 insertions(+), 38 deletions(-)

Approvals:
  Kudu Jenkins: Verified
  Adar Dembo: Looks good to me, approved
  Volodymyr Verovkin: Looks good to me, but someone else must approve

-- 
To view, visit http://gerrit.cloudera.org:8080/15101
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I6e4a8a8a42671f141842ff6051aa18820a8f7f5a
Gerrit-Change-Number: 15101
Gerrit-PatchSet: 3
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Volodymyr Verovkin <ve...@cloudera.com>