dongjoon-hyun opened a new pull request #23463: 
[SPARK-26536][BUILD][FOLLOWUP][test-maven] Make StreamingReadSupport public for 
maven testing
URL: https://github.com/apache/spark/pull/23463
 
 
   ## What changes were proposed in this pull request?
   
   `StreamingReadSupport` is designed to be `package` interface. Mockito seems 
to complain in `Maven` test environment. For testing purpose, this PR makes it 
`public` interface and adds explicit comments like `public interface 
ReadSupport`
   
   ```scala
   EpochCoordinatorSuite:
   *** RUN ABORTED ***
     java.lang.IllegalAccessError: tried to access class 
org.apache.spark.sql.sources.v2.reader.streaming.StreamingReadSupport from 
class 
org.apache.spark.sql.sources.v2.reader.streaming.ContinuousReadSupport$MockitoMock$58628338
     at 
org.apache.spark.sql.sources.v2.reader.streaming.ContinuousReadSupport$MockitoMock$58628338.<clinit>(Unknown
 Source)
     at 
sun.reflect.GeneratedSerializationConstructorAccessor632.newInstance(Unknown 
Source)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
     at 
org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.newInstance(SunReflectionFactoryInstantiator.java:48)
     at org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.java:73)
     at 
org.mockito.internal.creation.instance.ObjenesisInstantiator.newInstance(ObjenesisInstantiator.java:19)
     at 
org.mockito.internal.creation.bytebuddy.SubclassByteBuddyMockMaker.createMock(SubclassByteBuddyMockMaker.java:47)
     at 
org.mockito.internal.creation.bytebuddy.ByteBuddyMockMaker.createMock(ByteBuddyMockMaker.java:25)
     at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:35)
     at org.mockito.internal.MockitoCore.mock(MockitoCore.java:69)
   ```
   
   ## How was this patch tested?
   
   Pass the Jenkins with Maven build

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to