You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Hao Hao (Code Review)" <ge...@cloudera.org> on 2017/11/15 06:43:09 UTC

[kudu-CR] [spark] Remove AsyncClient in KuduContext

Hao Hao has uploaded this change for review. ( http://gerrit.cloudera.org:8080/8551


Change subject: [spark] Remove AsyncClient in KuduContext
......................................................................

[spark] Remove AsyncClient in KuduContext

This patch removes asyncClient in KuduContext to aviod misuse, since
currently syncClient and asyncClient do not share the same AsyncKuduClient
instance.

Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
---
M java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/KuduContext.scala
M java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduContextTest.scala
2 files changed, 0 insertions(+), 24 deletions(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 1
Gerrit-Owner: Hao Hao <ha...@cloudera.com>

[kudu-CR] [spark] Remove syncCache in KuduConnection

Posted by "Hao Hao (Code Review)" <ge...@cloudera.org>.
Hello Dan Burkert, Kudu Jenkins, Todd Lipcon, 

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

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

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

Change subject: [spark] Remove syncCache in KuduConnection
......................................................................

[spark] Remove syncCache in KuduConnection

This patch removes syncCache in KuduConnection and uses the same
AsyncKyduClient instance for both syncClient and asyncClient in
KuduContext to avoid misuse.

Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
---
M java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/KuduContext.scala
M java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduContextTest.scala
2 files changed, 1 insertion(+), 22 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/51/8551/5
-- 
To view, visit http://gerrit.cloudera.org:8080/8551
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 5
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>

[kudu-CR] [spark] Remove AsyncClient in KuduContext

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

Change subject: [spark] Remove AsyncClient in KuduContext
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG@7
PS1, Line 7: [spark] Remove AsyncClient in KuduContext
wouldn't this be a breaking change? I see we have annotated KuduContext as "Unstable" audience, but it seems a little bit harsh to remove a feature from it with no deprecation period, etc. Curious what Dan thinks about this.



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 1
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-Comment-Date: Wed, 15 Nov 2017 22:50:01 +0000
Gerrit-HasComments: Yes

[kudu-CR] [spark] Remove AsyncClient in KuduContext

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

Change subject: [spark] Remove AsyncClient in KuduContext
......................................................................


Patch Set 2:

> Uploaded patch set 2: Patch Set 1 was rebased.

This is only a rebase.


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 2
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-Comment-Date: Thu, 16 Nov 2017 00:14:40 +0000
Gerrit-HasComments: No

[kudu-CR] [spark] Remove syncCache in KuduConnection

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

Change subject: [spark] Remove syncCache in KuduConnection
......................................................................

[spark] Remove syncCache in KuduConnection

This patch removes syncCache in KuduConnection and uses the same
AsyncKyduClient instance for both syncClient and asyncClient in
KuduContext to avoid misuse.

Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Reviewed-on: http://gerrit.cloudera.org:8080/8551
Reviewed-by: Dan Burkert <da...@apache.org>
Tested-by: Kudu Jenkins
---
M java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/KuduContext.scala
M java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduContextTest.scala
2 files changed, 1 insertion(+), 22 deletions(-)

Approvals:
  Dan Burkert: Looks good to me, approved
  Kudu Jenkins: Verified

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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 6
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>

[kudu-CR] [spark] Remove AsyncClient in KuduContext

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

Change subject: [spark] Remove AsyncClient in KuduContext
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG@7
PS1, Line 7: [spark] Remove AsyncClient in KuduContext
> Now we only update sync client for timestamp propagation and I don't see in
Indeed, I think a good compromise is to remove the sync cache, and change the sync method to

  def getSyncClient(kuduMaster: String): KuduClient = {
    getAsyncClient(kuduMaster).syncClient()
  }



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 1
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-Comment-Date: Tue, 21 Nov 2017 18:21:57 +0000
Gerrit-HasComments: Yes

[kudu-CR] [spark] Remove AsyncClient in KuduContext

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

Change subject: [spark] Remove AsyncClient in KuduContext
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG@9
PS1, Line 9: avoid
> avoid
Done



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 3
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-Comment-Date: Fri, 17 Nov 2017 02:38:06 +0000
Gerrit-HasComments: Yes

[kudu-CR] [spark] Remove syncCache in KuduConnection

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

Change subject: [spark] Remove syncCache in KuduConnection
......................................................................


Patch Set 4:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG@7
PS1, Line 7: [spark] Remove syncCache in KuduConnection
> Indeed, I think a good compromise is to remove the sync cache, and change t
Done



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 4
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-Comment-Date: Tue, 21 Nov 2017 20:04:57 +0000
Gerrit-HasComments: Yes

[kudu-CR] [spark] Remove syncCache in KuduConnection

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

Change subject: [spark] Remove syncCache in KuduConnection
......................................................................


Patch Set 4:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/8551/4/java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/KuduContext.scala
File java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/KuduContext.scala:

http://gerrit.cloudera.org:8080/#/c/8551/4/java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/KuduContext.scala@60
PS4, Line 60:     if (authnCredentials != null) {
            :       c.importAuthenticationCredentials(authnCredentials)
            :     }
            :     c
In order to avoid importing authentication credentials twice to the client, you could simplify this to

  @transient lazy val syncClient: KuduClient = asyncClient.syncClient()



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 4
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-Comment-Date: Tue, 21 Nov 2017 20:10:11 +0000
Gerrit-HasComments: Yes

[kudu-CR] [spark] Remove AsyncClient in KuduContext

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

Change subject: [spark] Remove AsyncClient in KuduContext
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG@7
PS1, Line 7: [spark] Remove AsyncClient in KuduContext
> I suggested the removal, since it's not used internally, and both this API 
Can we not just update both the sync and async clients? And propagate the max from either one?



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 3
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-Comment-Date: Fri, 17 Nov 2017 21:40:09 +0000
Gerrit-HasComments: Yes

[kudu-CR] [spark] Remove syncCache in KuduConnection

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

Change subject: [spark] Remove syncCache in KuduConnection
......................................................................


Patch Set 5:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/8551/4/java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/KuduContext.scala
File java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/KuduContext.scala:

http://gerrit.cloudera.org:8080/#/c/8551/4/java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/KuduContext.scala@60
PS4, Line 60:   @transient lazy val asyncClient: AsyncKuduClient = {
            :     val c = KuduConnection.getAsyncClient(kuduMaster)
            :     if (authnCredentials != null) {
            :      
> In order to avoid importing authentication credentials twice to the client,
Done



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 5
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-Comment-Date: Tue, 21 Nov 2017 20:17:12 +0000
Gerrit-HasComments: Yes

[kudu-CR] [spark] Remove AsyncClient in KuduContext

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

Change subject: [spark] Remove AsyncClient in KuduContext
......................................................................


Patch Set 1:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG@7
PS1, Line 7: [spark] Remove AsyncClient in KuduContext
> wouldn't this be a breaking change? I see we have annotated KuduContext as 
I suggested the removal, since it's not used internally, and both this API and the AsyncKuduClient class itself are marked unstable.  Having two clients be available means that timestamp propagation doesn't work correctly.


http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG@9
PS1, Line 9: aviod
avoid



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 1
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-Comment-Date: Fri, 17 Nov 2017 00:44:53 +0000
Gerrit-HasComments: Yes

[kudu-CR] [spark] Remove AsyncClient in KuduContext

Posted by "Hao Hao (Code Review)" <ge...@cloudera.org>.
Hello Dan Burkert, Kudu Jenkins, Todd Lipcon, 

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

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

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

Change subject: [spark] Remove AsyncClient in KuduContext
......................................................................

[spark] Remove AsyncClient in KuduContext

This patch removes asyncClient in KuduContext to avoid misuse, since
currently syncClient and asyncClient do not share the same AsyncKuduClient
instance.

Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
---
M java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/KuduContext.scala
M java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduContextTest.scala
2 files changed, 0 insertions(+), 24 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/51/8551/3
-- 
To view, visit http://gerrit.cloudera.org:8080/8551
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 3
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>

[kudu-CR] [spark] Remove syncCache in KuduConnection

Posted by "Hao Hao (Code Review)" <ge...@cloudera.org>.
Hello Dan Burkert, Kudu Jenkins, Todd Lipcon, 

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

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

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

Change subject: [spark] Remove syncCache in KuduConnection
......................................................................

[spark] Remove syncCache in KuduConnection

This patch removes syncCache in KuduConnection and uses the same
AsyncKyduClient instance for both syncClient and asyncClient in
KuduContext to avoid misuse.

Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
---
M java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/KuduContext.scala
M java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduContextTest.scala
2 files changed, 1 insertion(+), 16 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/51/8551/4
-- 
To view, visit http://gerrit.cloudera.org:8080/8551
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 4
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>

[kudu-CR] [spark] Remove syncCache in KuduConnection

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

Change subject: [spark] Remove syncCache in KuduConnection
......................................................................


Patch Set 5: Code-Review+2


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 5
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-Comment-Date: Tue, 21 Nov 2017 20:14:24 +0000
Gerrit-HasComments: No

[kudu-CR] [spark] Remove AsyncClient in KuduContext

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

Change subject: [spark] Remove AsyncClient in KuduContext
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/8551/1//COMMIT_MSG@7
PS1, Line 7: [spark] Remove AsyncClient in KuduContext
> Can we not just update both the sync and async clients? And propagate the m
Now we only update sync client for timestamp propagation and I don't see in this way it would affect the correctness? I thought the concern is to avoid misuse in future? (Maybe I have missed something)

If we are worrying about compatibility,  I remember Dan suggested another way is to redefine AsyncClient so that they are sharing the same client instance underneath.



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ica8745d8503a35e17a632d0a0cde5738915f00fb
Gerrit-Change-Number: 8551
Gerrit-PatchSet: 3
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <to...@apache.org>
Gerrit-Comment-Date: Fri, 17 Nov 2017 22:17:23 +0000
Gerrit-HasComments: Yes