You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/01/21 08:25:15 UTC

[GitHub] [incubator-shardingsphere] kimmking opened a new issue #4062: Sharding-Proxy should start more than one instance from the start-script

kimmking opened a new issue #4062: Sharding-Proxy should start more than one instance from the start-script
URL: https://github.com/apache/incubator-shardingsphere/issues/4062
 
 
   ## Bug Report
   Download the proxy binary zip file and extract to a proxy directory.
   After start one proxy with start.bat or start.sh, run it with another port and config path, but some  occurs. 
   Sharding-Proxy should start more than one instance from the start-script.
   
   ```
   Exception in thread "main" com.atomikos.icatch.SysException: Error in init: Log already in use? xa_tx in ./logs\
           at com.atomikos.icatch.provider.imp.AssemblerImp.createRepository(AssemblerImp.java:181)
           at com.atomikos.icatch.provider.imp.AssemblerImp.assembleTransactionService(AssemblerImp.java:156)
           at com.atomikos.icatch.config.Configuration.assembleSystemComponents(Configuration.java:485)
           at com.atomikos.icatch.config.Configuration.init(Configuration.java:448)
           at com.atomikos.icatch.config.UserTransactionServiceImp.initialize(UserTransactionServiceImp.java:105)
           at com.atomikos.icatch.config.UserTransactionServiceImp.init(UserTransactionServiceImp.java:219)
           at org.apache.shardingsphere.transaction.xa.atomikos.manager.AtomikosTransactionManager.init(AtomikosTransactionManager.java:43)
           at org.apache.shardingsphere.transaction.xa.XAShardingTransactionManager.init(XAShardingTransactionManager.java:54)
           at org.apache.shardingsphere.transaction.ShardingTransactionManagerEngine.init(ShardingTransactionManagerEngine.java:69)
           at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.datasource.JDBCBackendDataSource.<init>(JDBCBackendDataSource.java:68)
           at org.apache.shardingsphere.shardingproxy.backend.schema.LogicSchema.<init>(LogicSchema.java:57)
           at org.apache.shardingsphere.shardingproxy.backend.schema.impl.ShardingSchema.<init>(ShardingSchema.java:81)
           at org.apache.shardingsphere.shardingproxy.backend.schema.LogicSchemaFactory.newInstance(LogicSchemaFactory.java:56)
           at org.apache.shardingsphere.shardingproxy.backend.schema.LogicSchemas.initSchemas(LogicSchemas.java:105)
           at org.apache.shardingsphere.shardingproxy.backend.schema.LogicSchemas.init(LogicSchemas.java:94)
           at org.apache.shardingsphere.shardingproxy.Bootstrap.startWithRegistryCenter(Bootstrap.java:116)
           at org.apache.shardingsphere.shardingproxy.Bootstrap.main(Bootstrap.java:83)
   Caused by: com.atomikos.recovery.LogException: Log already in use? xa_tx in ./logs\
           at com.atomikos.persistence.imp.LogFileLock.acquireLock(LogFileLock.java:59)
           at com.atomikos.recovery.imp.FileSystemRepository.init(FileSystemRepository.java:55)
           at com.atomikos.icatch.provider.imp.AssemblerImp.createCoordinatorLogEntryRepository(AssemblerImp.java:229)
           at com.atomikos.icatch.provider.imp.AssemblerImp.createRepository(AssemblerImp.java:179)
           ... 16 more
   ```
   
   ### Which version of ShardingSphere did you use?
   4.0.0 or 5.0.0-RC1-SNAPSHOT in dev branch
   
   ### Which project did you use? Sharding-JDBC or Sharding-Proxy?
   
   ### Expected behavior
   use 
   > start.bat 3307 
   > start.bat 3308 /conf1/
   
   Then will be starting two proxy server successfully.
   
   ### Actual behavior
   Errors occur.
   
   ### Reason analyze (If you can)
   Config path param isn't passed to ShardingConfigurationLoader.load method.
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] terrymanu closed issue #4062: Sharding-Proxy should be able to start more than one instance from the start-script

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #4062: Sharding-Proxy should be able to start more than one instance from the start-script
URL: https://github.com/apache/incubator-shardingsphere/issues/4062
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services