You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ignite TC Bot (Jira)" <ji...@apache.org> on 2022/09/05 07:10:00 UTC

[jira] [Commented] (IGNITE-17541) Add "set" prefix to ThinClientConfiguration#sendServerExceptionStackTraceToClient()

    [ https://issues.apache.org/jira/browse/IGNITE-17541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17600234#comment-17600234 ] 

Ignite TC Bot commented on IGNITE-17541:
----------------------------------------

{panel:title=Branch: [pull/10230/head] Base: [master] : No blockers found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/10230/head] Base: [master] : No new tests found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}{panel}
[TeamCity *--&gt; Run :: All* Results|https://ci.ignite.apache.org/viewLog.html?buildId=6756488&amp;buildTypeId=IgniteTests24Java8_RunAll]

> Add "set" prefix to ThinClientConfiguration#sendServerExceptionStackTraceToClient()
> -----------------------------------------------------------------------------------
>
>                 Key: IGNITE-17541
>                 URL: https://issues.apache.org/jira/browse/IGNITE-17541
>             Project: Ignite
>          Issue Type: Improvement
>          Components: thin client
>    Affects Versions: 2.13
>            Reporter: Ilya Shishkov
>            Assignee: Julia Bakulina
>            Priority: Minor
>              Labels: ise, newbie
>          Time Spent: 2h 25m
>  Remaining Estimate: 0h
>
> IGNITE-13389 introduces {{ThinClientConfiguration#sendServerExceptionStackTraceToClient()}}, but name of the method does not allow to set up this option in XML configuration, because Spring expects "set" prefix for setters.
> As you can see below, there is a workaround, but it would be more convenient to set up this property directly.
> Workaround:
> {code:xml|title=Add extra ThinClientConfiguration bean with necessary parameters}
> <bean id="thinClientCfg" class="org.apache.ignite.configuration.ThinClientConfiguration">
>     <property name="maxActiveTxPerConnection" value="15"/>
> </bean>
> {code}
> {code:xml|title=Set up thinClientConfiguration by means of SpEL}
> <property name="clientConnectorConfiguration">
>     <bean class="org.apache.ignite.configuration.ClientConnectorConfiguration">
>         <property name="thinClientConfiguration"
>                   value="#{thinClientCfg.sendServerExceptionStackTraceToClient(true)}"/>
>     </bean>
> </property>
> {code}
> We should add "set" and "get" prefix to setter and getter methods respectively or add extra methods with such prefixes from the point of possible compatibility issues (see IGNITE-16549).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)