halim kim created KUDU-3533:
-------------------------------
Summary: 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
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
(v8.20.10#820010)