[
https://issues.apache.org/jira/browse/KUDU-3533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18137241#comment-18137241
]
ASF subversion and git services commented on KUDU-3533:
-------------------------------------------------------
Commit be0084db6888a37c5bdbb8723e82c4f5610a5bdc in kudu's branch
refs/heads/master from Alexey Serbin
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=be0084db6 ]
KUDU-3533 restore some webserver tests on macOS
KUDU-3533 reported several scenarios of webserver-test failing when
using the Heimdal Kerberos implementation. However, Kudu on macOS is
supposed to use the MIT Kerberos implementation: the installation
instructions [1] explicitly mention installing 'krb5' using brew [2]
(available as 'kerberos5' in MacPorts [3]).
This changelist re-enables several scearios from webserver-test and
the TestNoKinitGetTables scenario from spnego_rest_catalog-test. The
latter was previously attributed to KUDU-3533, but the actual root
cause was the difference in implementations of the SASL library
on Linux and macOS.
I verified that all the test scenarios of the updated tests compiled
with Xcode.26.6 on macOS 26.7.2 pass when with 'kerberos5' installed
using MacPorts [3].
The motivation for this update was seeing the following test failures
on macOS with gmock-1.12.1 due to empty list of parameterized test
fixtures for AuthnWebserverTest left by the ifndef macro added by [4]:
src/kudu/server/webserver-test.cc:1108: Failure
Parameterized test suite AuthnWebserverTest is instantiated via
INSTANTIATE_TEST_SUITE_P, but no tests are defined via TEST_P . No test
cases will run.
Ideally, INSTANTIATE_TEST_SUITE_P should only ever be invoked from code
that always depend on code that provides TEST_P. Failing to do so is
often an indication of dead code, e.g. the last TEST_P was removed
but the rest got left behind.
To suppress this error for this test suite, insert the following line
(in a non-header) in the namespace it is defined in:
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(AuthnWebserverTest);
[1] https://kudu.apache.org/docs/installation.html#osx_from_source
[2] https://formulae.brew.sh/formula/krb5
[3] https://ports.macports.org/port/kerberos5/
[4] https://github.com/apache/kudu/commit/1a9862324
Change-Id: Id27359ace3828abb152dc671378e83c219960580
Reviewed-on: https://gerrit.cloudera.org/25272
Tested-by: Kudu Jenkins
Reviewed-by: Marton Greber <[email protected]>
Reviewed-by: Gabriella Lotz <[email protected]>
> gssapi related unit test fails on MacOS
> ---------------------------------------
>
> Key: KUDU-3533
> URL: https://issues.apache.org/jira/browse/KUDU-3533
> Project: Kudu
> Issue Type: Bug
> Reporter: halim kim
> Priority: Major
>
> In Kudu, There are some unit test cases for gssapi verification. these test
> cases are passed without any problem on centos(and other OSs except MacOS).
> The thing is on MacOS. MacOS uses heimdal kerberos implementaion instead of
> MITs.
> Consequently, results of some unit tests are different from what we expected.
> What I've experienced is SpnegoWebserverTest(in webserver-test.cc) failure.
> I was trying to add more SpnegoWebserverTest cases, but only the first
> SpnegoWebserverTest test case succeed and others does not. To figure out the
> cause, I checked the test logs setting 'KRB5_TRACE' env variable as
> '/dev/stderr'.
> I finally found that all the test cases use kdc port number same as first
> test case kdc port. Therefore only the first case passes the test and others
> can't do that. I think heimdal kerberos caches kdc information somewhere. I
> tried to find purge cache data completely but I couldn't find how to do that.
> My suggestion is to skip a test like above on MacOS until get to know how to
> manipulate heimdal kerberos cache. Using '#ifndef __APPLE__' can help it.
> Kudu already do so on
> negotiation-test(https://github.com/apache/kudu/blob/ae7b08c006167da1ebb0c4302e5d6d7aa739a862/src/kudu/rpc/negotiation-test.cc#L1399-L1402)
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)