Sega76 commented on a change in pull request #8385:
URL: https://github.com/apache/ignite/pull/8385#discussion_r594189606
##########
File path:
modules/ducktests/tests/ignitetest/services/utils/templates/cache_macro.j2
##########
@@ -15,17 +15,43 @@
limitations under the License.
#}
+
+{% macro rendezvous_backup_filter(affinity) %}
+ <bean
class="org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction">
+ <property name="affinityBackupFilter">
+ <bean
class="org.apache.ignite.internal.ducktest.tests.cellular_affinity_test.CellularAffinityBackupFilter">
+ <constructor-arg value="{{ affinity.attr_name }}"/>
+ </bean>
+ </property>
+ </bean>
+{% endmacro %}
+
{% macro cache_configs(caches) %}
{% if caches %}
<property name="cacheConfiguration">
<list>
{% for cache in caches %}
<bean
class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="{{ cache.name }}"/>
- {% if cache.cache_mode == 'PARTITIONED' %}
- <property name="backups" value="{{ cache.backups or 0
}}"/>
+ <property name="backups" value="{{ cache.backups }}"/>
Review comment:
0 is default
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]