David Ribeiro Alves has posted comments on this change.

Change subject: Add snapshot scans to fuzz-itest
......................................................................


Patch Set 12:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/4996/12/src/kudu/integration-tests/fuzz-itest.cc
File src/kudu/integration-tests/fuzz-itest.cc:

PS12, Line 574: down_cast<kudu::server::LogicalClock*>(
              :             tablet()->clock().get())
> How do you guarantee that all path which you code will see in release mode 
you mean in this test? how could it be different?

In any case if you look throughout the whole code base this is _always_ how we 
do it. there isn't a single instance of dynamic_cast and 16 instances of 
down_cast.

I remain unconvinced that this test, in which we choose the clock 
implementation on start up, should be the exception. Particularly as if you 
change the clock implementation on set up and not the the down_cast the build 
would fail.


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I4d15129e83c5c9afa9b643e674c8a23e18a2fa0e
Gerrit-PatchSet: 12
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: David Ribeiro Alves <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: David Ribeiro Alves <[email protected]>
Gerrit-Reviewer: Jean-Daniel Cryans <[email protected]>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <[email protected]>
Gerrit-Reviewer: Tidy Bot
Gerrit-Reviewer: Todd Lipcon <[email protected]>
Gerrit-HasComments: Yes

Reply via email to