You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Dengpan Yin (JIRA)" <ji...@apache.org> on 2019/05/15 00:45:00 UTC

[jira] [Created] (SAMZA-2193) Fix unit test failures after rate limiter is a required config

Dengpan Yin created SAMZA-2193:
----------------------------------

             Summary: Fix unit test failures after rate limiter is a required config
                 Key: SAMZA-2193
                 URL: https://issues.apache.org/jira/browse/SAMZA-2193
             Project: Samza
          Issue Type: Bug
          Components: test
            Reporter: Dengpan Yin


A recent code merge makes rate limiter as a required config. After that RB is created and before it's merged, some new tests are added without setting or disabling rate limiter.  This cause the unit-test failure. 

 

> Task :samza-core_2.11:test

testTableRetryPolicyToConfig FAILED
 java.lang.IllegalArgumentException: Read rate limiter is enabled, there is no read rate limiter configured.
 at com.google.common.base.Preconditions.checkArgument(Preconditions.java:135)
 at org.apache.samza.table.descriptors.RemoteTableDescriptor.validate(RemoteTableDescriptor.java:343)
 at org.apache.samza.table.descriptors.BaseTableDescriptor.toConfig(BaseTableDescriptor.java:75)
 at org.apache.samza.table.descriptors.RemoteTableDescriptor.toConfig(RemoteTableDescriptor.java:270)
 at org.apache.samza.table.remote.descriptors.TestRemoteTableDescriptor.testTableRetryPolicyToConfig(TestRemoteTableDescriptor.java:220)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)