Is it possible to run the call /lib/resource/ReintrospectDataSource() concurrently from a TDV java client?

Is it possible to run the call /lib/resource/ReintrospectDataSource() concurrently from a TDV java client?

book

Article ID: KB0077156

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization 7.0.x and higher

Description

When invoked from a client application, the /lib/resource/ReintrospectDataSource fails with : 
--------------
Caused by: The resource named "/shared/test/hello.csv" of type "TABLE" could not be saved. Another resource with the same name and type was created by another user or process.
--------------
   

Issue/Introduction

Is it possible to run the call /lib/resource/ReintrospectDataSource() concurrently from a TDV java client?

Resolution

The /lib/resource/ReintrospectDataSource call is not intended to be used for carrying out multiple concurrent introspections. TDV is able to prevent introspection from running concurrently when the introspection is carried out in Studio (or, through a trigger). However, TDV cannot prevent concurrent introspection when it is carried out via calls from a client program, and so TDV will throw an error of the type below.

--------------
Caused by: The resource named "/shared/test/hello.csv" of type "TABLE" could not be saved. Another resource with the same name and type was created by another user or process.
    [repository-1900004]
    at com.compositesw.server.repository.internal.RepositoryImpl.performThreeWayMergeOfContainerChildren(RepositoryImpl.java:3714)
    at com.compositesw.server.repository.internal.RepositoryImpl.checkForConcurrentResourceModifications(RepositoryImpl.java:3649)
    at com.compositesw.server.repository.internal.RepositoryImpl.checkForConcurrentModifications(RepositoryImpl.java:3545)
    at com.compositesw.server.repository.internal.RepositoryImpl.commitConnection(RepositoryImpl.java:2598)
--------------