Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Patch]-Avoid "WARN {VFSTransportListener} -clustering config are not present log when enabling ClusterAware" in MI cluster #2231

Closed
veneerac opened this issue Oct 19, 2023 · 0 comments · Fixed by wso2/wso2-synapse#2111

Comments

@veneerac
Copy link

veneerac commented Oct 19, 2023

Description

When using the VFS Lister proxy in the MI cluster, it is necessary to configuretransport.vfs.ClusterAware parameter as per the guidelines outlined in [1]. This parameter should be set as follows:

<parameter name="transport.vfs.ClusterAware">true</parameter>

After configuring the cluster and deploying the VFS proxy, the VFS Lister logs warnings on each node. Here are the warning logs:


2023-10-19 17:18:07,124]  WARN {VFSTransportListener} - Although proxy is cluster aware, clustering config are not present, hence running the the polling task in this node
 
[2023-10-19 17:18:22,403]  WARN {VFSTransportListener} - Although proxy is cluster aware, clustering config are not present, hence running the the polling task in this node

[2023-10-19 17:18:37,684]  WARN {VFSTransportListener} - Although proxy is cluster aware, clustering config are not present, hence running the the polling task in this node

[2023-10-19 17:18:52,954]  WARN {VFSTransportListener} - Although proxy is cluster aware, clustering config are not present, hence running the the polling task in this node

[2023-10-19 17:19:08,239]  WARN {VFSTransportListener} - Although proxy is cluster aware, clustering config are not present, hence running the the polling task in this node

[2023-10-19 17:19:23,520]  WARN {VFSTransportListener} - Although proxy is cluster aware, clustering config are not present, hence running the the polling task in this node

[1] https://ei.docs.wso2.com/en/7.0.0/micro-integrator/references/synapse-properties/transport-parameters/vfs-transport-parameters/

Steps to Reproduce

Steps to re-produce the issue

  1. set up two MI cluster nodes.

Deploy the following proxy configuration in MI nodes :

<proxy xmlns="http://ws.apache.org/ns/synapse" name="StockQuoteProxy" transports="vfs">
    <target>
        <inSequence>
	    <log level="custom"> <property value="#############VFS#########" name="log"/> </log>
            <log level="full"/>
        </inSequence>
    </target>
    <parameter name="transport.vfs.FileURI">sftp://user_name:password@<host_name>:<port_number>test/in?transport.vfs.AvoidPermissionCheck=true</parameter>
    <parameter name="transport.vfs.ContentType">text/xml</parameter>
    <parameter name="transport.vfs.FileNamePattern">.*\.xml</parameter>
    <parameter name="transport.PollInterval">15</parameter>
    <parameter name="transport.vfs.ClusterAware">true</parameter>
    <parameter name="transport.vfs.MoveAfterProcess">sftp://user_name:password@<host_name>:<port_number>test/out?transport.vfs.AvoidPermissionCheck=true</parameter>
    <parameter name="transport.vfs.MoveAfterFailure">sftp://user_name:password@<host_name>:<port_number>test/out?transport.vfs.AvoidPermissionCheck=true</parameter>
    <parameter name="transport.vfs.ActionAfterProcess">MOVE</parameter>
    <parameter name="transport.vfs.ActionAfterFailure">MOVE</parameter>
</proxy>

After few seconds, you will notice a continuous WARNING message in the logs, even if your cluster configuration is correct:
WARN {VFSTransportListener} - Although the proxy is cluster-aware, the required clustering configurations are missing, resulting in the execution of the polling task on this node.

WARN {VFSTransportListener} - Although the proxy is cluster-aware, the required clustering configurations are missing, resulting in the execution of the polling task on this node.

Affected Component

Analytics

Version

MI 4.1.0

Environment Details (with versions)

MI 4.1.0

Relevant Log Output

WARN {VFSTransportListener} - Although the proxy is cluster-aware, the required clustering configurations are missing, resulting in the execution of the polling task on this node.

Related Issues

No response

Suggested Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant