apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
https://seata.apache.org/
Apache License 2.0
25.35k stars 8.78k forks source link

使用zk作为配置中心,seata能连接zk但无法读取zk配置,且无法查看Exception 异常堆栈信息 #2548

Closed luojiachengaccp closed 4 years ago

luojiachengaccp commented 4 years ago

2020-04-14 11:16:45.323 INFO [main]io.seata.config.FileConfiguration.:101 -The file name of the operation is registry.conf 2020-04-14 11:16:45.443 WARN [main]io.seata.config.ConfigurationFactory.:68 -failed to load extConfiguration:not found service provider for : io.seata.config.ExtConfigurationProvider[null] and classloader : sun.misc.Launcher$AppClassLoader@77459877 io.seata.common.loader.EnhancedServiceNotFoundException: not found service provider for : io.seata.config.ExtConfigurationProvider[null] and classloader : sun.misc.Launcher$AppClassLoader@77459877 2020-04-14 11:16:45.458 INFO [main]io.seata.common.loader.EnhancedServiceLoader.loadFile:247 -load ConfigurationProvider[ZK] extension by class[io.seata.config.zk.ZookeeperConfigurationProvider] 2020-04-14 11:16:45.471 INFO [ZkClient-EventThread-11-10.72.27.60:2181,10.72.27.160:2181,10.72.27.150:2081]org.I0Itec.zkclient.ZkEventThread.run:65 -Starting ZkClient event thread. 2020-04-14 11:16:45.477 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:zookeeper.version=3.4.14-4c25d480e66aadd371de8bd2fd8da255ac140bcf, built on 03/06/2019 16:18 GMT 2020-04-14 11:16:45.477 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:host.name=tclshop-pc2-green 2020-04-14 11:16:45.477 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:java.version=1.8.0_111 2020-04-14 11:16:45.477 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:java.vendor=Oracle Corporation 2020-04-14 11:16:45.477 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:java.home=/kuyu/soft/jdk1.8.0_111/jre 2020-04-14 11:16:45.478 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:java.class.path=/kuyu/soft/seata/conf:/kuyu/soft/seata/lib/hessian-3.3.6.jar:/kuyu/soft/seata/lib/seata-config-all-1.1.0.jar:/kuyu/soft/seata/lib/apollo-core-1.1.0.jar:/kuyu/soft/seata/lib/zookeeper-3.4.14.jar:/kuyu/soft/seata/lib/consul-api-1.4.2.jar:/kuyu/soft/seata/lib/seata-discovery-custom-1.1.0.jar:/kuyu/soft/seata/lib/netty-all-4.1.30.Final.jar:/kuyu/soft/seata/lib/seata-common-1.1.0.jar:/kuyu/soft/seata/lib/commons-math-2.2.jar:/kuyu/soft/seata/lib/compactmap-1.2.1.jar:/kuyu/soft/seata/lib/failureaccess-1.0.1.jar:/kuyu/soft/seata/lib/zkclient-0.11.jar:/kuyu/soft/seata/lib/commons-pool-1.6.jar:/kuyu/soft/seata/lib/joda-time-2.3.jar:/kuyu/soft/seata/lib/druid-1.1.12.jar:/kuyu/soft/seata/lib/proto-google-common-protos-1.0.0.jar:/kuyu/soft/seata/lib/grpc-protobuf-1.17.1.jar:/kuyu/soft/seata/lib/jersey-apache-client4-1.19.1.jar:/kuyu/soft/seata/lib/grpc-protobuf-lite-1.17.1.jar:/kuyu/soft/seata/lib/seata-compressor-gzip-1.1.0.jar:/kuyu/soft/seata/lib/jettison-1.3.7.jar:/kuyu/soft/seata/lib/seata-metrics-core-1.1.0.jar:/kuyu/soft/seata/lib/seata-discovery-eureka-1.1.0.jar:/kuyu/soft/seata/lib/seata-metrics-exporter-prometheus-1.1.0.jar:/kuyu/soft/seata/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/kuyu/soft/seata/lib/reflectasm-1.11.3.jar:/kuyu/soft/seata/lib/jersey-client-1.19.1.jar:/kuyu/soft/seata/lib/nacos-client-1.0.0.jar:/kuyu/soft/seata/lib/kryo-4.0.2.jar:/kuyu/soft/seata/lib/mysql-connector-java-5.1.30.jar:/kuyu/soft/seata/lib/kryo-serializers-0.42.jar:/kuyu/soft/seata/lib/checker-qual-2.5.2.jar:/kuyu/soft/seata/lib/gson-2.8.2.jar:/kuyu/soft/seata/lib/objenesis-2.6.jar:/kuyu/soft/seata/lib/opencensus-api-0.17.0.jar:/kuyu/soft/seata/lib/seata-serializer-protobuf-1.1.0.jar:/kuyu/soft/seata/lib/antlr-runtime-3.4.jar:/kuyu/soft/seata/lib/servo-core-0.12.21.jar:/kuyu/soft/seata/lib/simpleclient_common-0.6.0.jar:/kuyu/soft/seata/lib/nacos-common-1.0.0.jar:/kuyu/soft/seata/lib/stax-api-1.0.1.jar:/kuyu/soft/seata/lib/jetcd-core-0.3.0.jar:/kuyu/soft/seata/lib/jackson-core-2.9.8.jar:/kuyu/soft/seata/lib/seata-metrics-registry-compact-1.1.0.jar:/kuyu/soft/seata/lib/seata-core-1.1.0.jar:/kuyu/soft/seata/lib/seata-serializer-all-1.1.0.jar:/kuyu/soft/seata/lib/grpc-core-1.17.1.jar:/kuyu/soft/seata/lib/seata-server-1.1.0.jar:/kuyu/soft/seata/lib/seata-config-nacos-1.1.0.jar:/kuyu/soft/seata/lib/asm-5.0.4.jar:/kuyu/soft/seata/lib/j2objc-annotations-1.1.jar:/kuyu/soft/seata/lib/protobuf-java-util-3.5.1.jar:/kuyu/soft/seata/lib/commons-io-2.2.jar:/kuyu/soft/seata/lib/netty-3.10.6.Final.jar:/kuyu/soft/seata/lib/commons-logging-1.2.jar:/kuyu/soft/seata/lib/seata-config-etcd3-1.1.0.jar:/kuyu/soft/seata/lib/simpleclient_httpserver-0.6.0.jar:/kuyu/soft/seata/lib/postgresql-42.1.4.jar:/kuyu/soft/seata/lib/sofa-common-tools-1.0.12.jar:/kuyu/soft/seata/lib/jackson-annotations-2.9.4.jar:/kuyu/soft/seata/lib/servlet-api-2.5.jar:/kuyu/soft/seata/lib/seata-config-zk-1.1.0.jar:/kuyu/soft/seata/lib/opencensus-contrib-grpc-metrics-0.17.0.jar:/kuyu/soft/seata/lib/netflix-infix-0.3.0.jar:/kuyu/soft/seata/lib/seata-metrics-api-1.1.0.jar:/kuyu/soft/seata/lib/simpleclient-0.5.0.jar:/kuyu/soft/seata/lib/seata-config-core-1.1.0.jar:/kuyu/soft/seata/lib/seata-discovery-core-1.1.0.jar:/kuyu/soft/seata/lib/grpc-grpclb-1.17.1.jar:/kuyu/soft/seata/lib/audience-annotations-0.5.0.jar:/kuyu/soft/seata/lib/logback-core-1.2.0.jar:/kuyu/soft/seata/lib/seata-discovery-sofa-1.1.0.jar:/kuyu/soft/seata/lib/dexx-collections-0.2.jar:/kuyu/soft/seata/lib/antlr-2.7.7.jar:/kuyu/soft/seata/lib/netflix-eventbus-0.3.0.jar:/kuyu/soft/seata/lib/jackson-databind-2.9.9.jar:/kuyu/soft/seata/lib/commons-codec-1.11.jar:/kuyu/soft/seata/lib/seata-config-apollo-1.1.0.jar:/kuyu/soft/seata/lib/httpclient-4.5.8.jar:/kuyu/soft/seata/lib/lookout-api-1.5.2.jar:/kuyu/soft/seata/lib/seata-discovery-consul-1.1.0.jar:/kuyu/soft/seata/lib/jetcd-common-0.3.0.jar:/kuyu/soft/seata/lib/jcommander-1.72.jar:/kuyu/soft/seata/lib/commons-pool2-2.4.2.jar:/kuyu/soft/seata/lib/config-1.2.1.jar:/kuyu/soft/seata/lib/archaius-core-0.7.6.jar:/kuyu/soft/seata/lib/seata-config-consul-1.1.0.jar:/kuyu/soft/seata/lib/jline-0.9.94.jar:/kuyu/soft/seata/lib/spotbugs-annotations-3.1.9.jar:/kuyu/soft/seata/lib/seata-discovery-zk-1.1.0.jar:/kuyu/soft/seata/lib/protobuf-java-3.7.1.jar:/kuyu/soft/seata/lib/seata-metrics-all-1.1.0.jar:/kuyu/soft/seata/lib/xmlpull-1.1.3.1.jar:/kuyu/soft/seata/lib/xpp3_min-1.1.4c.jar:/kuyu/soft/seata/lib/grpc-context-1.17.1.jar:/kuyu/soft/seata/lib/commons-jxpath-1.3.jar:/kuyu/soft/seata/lib/commons-lang3-3.4.jar:/kuyu/soft/seata/lib/hessian-4.0.63.jar:/kuyu/soft/seata/lib/guice-4.1.0.jar:/kuyu/soft/seata/lib/commons-lang-2.6.jar:/kuyu/soft/seata/lib/seata-serializer-kryo-1.1.0.jar:/kuyu/soft/seata/lib/seata-serializer-hessian-1.1.0.jar:/kuyu/soft/seata/lib/stringtemplate-3.2.1.jar:/kuyu/soft/seata/lib/grpc-netty-1.17.1.jar:/kuyu/soft/seata/lib/javax.inject-1.jar:/kuyu/soft/seata/lib/commons-configuration-1.8.jar:/kuyu/soft/seata/lib/xstream-1.4.10.jar:/kuyu/soft/seata/lib/commons-dbcp-1.3.jar:/kuyu/soft/seata/lib/log4j-1.2.17.jar:/kuyu/soft/seata/lib/seata-serializer-seata-1.1.0.jar:/kuyu/soft/seata/lib/nacos-api-1.0.0.jar:/kuyu/soft/seata/lib/guava-27.0.1-jre.jar:/kuyu/soft/seata/lib/error_prone_annotations-2.2.0.jar:/kuyu/soft/seata/lib/slf4j-api-1.7.22.jar:/kuyu/soft/seata/lib/aopalliance-1.0.jar:/kuyu/soft/seata/lib/h2-1.4.181.jar:/kuyu/soft/seata/lib/registry-client-all-5.2.0.jar:/kuyu/soft/seata/lib/seata-compressor-all-1.1.0.jar:/kuyu/soft/seata/lib/animal-sniffer-annotations-1.17.jar:/kuyu/soft/seata/lib/fastjson-1.2.60.jar:/kuyu/soft/seata/lib/minlog-1.3.0.jar:/kuyu/soft/seata/lib/apollo-client-1.1.0.jar:/kuyu/soft/seata/lib/httpcore-4.4.11.jar:/kuyu/soft/seata/lib/bolt-1.4.6.jar:/kuyu/soft/seata/lib/eureka-client-1.9.5.jar:/kuyu/soft/seata/lib/seata-discovery-nacos-1.1.0.jar:/kuyu/soft/seata/lib/seata-discovery-all-1.1.0.jar:/kuyu/soft/seata/lib/jsr311-api-1.1.1.jar:/kuyu/soft/seata/lib/logback-classic-1.2.0.jar:/kuyu/soft/seata/lib/jersey-core-1.19.1.jar:/kuyu/soft/seata/lib/seata-discovery-redis-1.1.0.jar:/kuyu/soft/seata/lib/grpc-stub-1.17.1.jar:/kuyu/soft/seata/lib/jetcd-resolver-0.3.0.jar:/kuyu/soft/seata/lib/jsr305-3.0.2.jar:/kuyu/soft/seata/lib/seata-discovery-etcd3-1.1.0.jar:/kuyu/soft/seata/lib/jedis-2.9.0.jar 2020-04-14 11:16:45.478 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 2020-04-14 11:16:45.478 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:java.io.tmpdir=/tmp 2020-04-14 11:16:45.478 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:java.compiler= 2020-04-14 11:16:45.478 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:os.name=Linux 2020-04-14 11:16:45.478 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:os.arch=amd64 2020-04-14 11:16:45.478 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:os.version=4.14.106-97.85.amzn2.x86_64 2020-04-14 11:16:45.479 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:user.name=root 2020-04-14 11:16:45.479 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:user.home=/root 2020-04-14 11:16:45.479 INFO [main]org.apache.zookeeper.ZooKeeper.logEnv:100 -Client environment:user.dir=/kuyu/soft/seata 2020-04-14 11:16:45.480 INFO [main]org.apache.zookeeper.ZooKeeper.:442 -Initiating client connection, connectString=10.72.27.60:2181,10.72.27.160:2181,10.72.27.150:2081 sessionTimeout=60000 watcher=org.I0Itec.zkclient.ZkClient@76329302 2020-04-14 11:16:45.492 INFO [main]org.I0Itec.zkclient.ZkClient.waitForKeeperState:936 -Waiting for keeper state SyncConnected 2020-04-14 11:16:45.496 INFO [main-SendThread(tclshop-wap2-green:2181)]org.apache.zookeeper.ClientCnxn.logStartConnect:1025 -Opening socket connection to server tclshop-wap2-green/10.72.27.160:2181. Will not attempt to authenticate using SASL (unknown error) 2020-04-14 11:16:45.500 INFO [main-SendThread(tclshop-wap2-green:2181)]org.apache.zookeeper.ClientCnxn.primeConnection:879 -Socket connection established to tclshop-wap2-green/10.72.27.160:2181, initiating session 2020-04-14 11:16:45.505 INFO [main-SendThread(tclshop-wap2-green:2181)]org.apache.zookeeper.ClientCnxn.onConnected:1299 -Session establishment complete on server tclshop-wap2-green/10.72.27.160:2181, sessionid = 0x170ae2b5d6900b8, negotiated timeout = 40000 2020-04-14 11:16:45.507 INFO [main-EventThread]org.I0Itec.zkclient.ZkClient.processStateChanged:713 -zookeeper state changed (SyncConnected) 2020-04-14 11:16:45.515 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig store.mode is error or timeout,return defaultValue file 2020-04-14 11:16:45.518 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig metrics.enabled is error or timeout,return defaultValue false 2020-04-14 11:16:45.522 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig transport.threadFactory.bossThreadPrefix is error or timeout,return defaultValue null 2020-04-14 11:16:45.523 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig transport.threadFactory.workerThreadPrefix is error or timeout,return defaultValue null 2020-04-14 11:16:45.525 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig transport.threadFactory.shareBossWorker is error or timeout,return defaultValue false 2020-04-14 11:16:45.526 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig transport.type is error or timeout,return defaultValue TCP 2020-04-14 11:16:45.528 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig transport.threadFactory.workerThreadSize is error or timeout,return defaultValue null 2020-04-14 11:16:45.533 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig transport.server is error or timeout,return defaultValue NIO 2020-04-14 11:16:45.540 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig transport.heartbeat is error or timeout,return defaultValue true 2020-04-14 11:16:45.554 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig transport.threadFactory.bossThreadSize is error or timeout,return defaultValue 1 2020-04-14 11:16:45.557 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig transport.threadFactory.bossThreadPrefix is error or timeout,return defaultValue NettyBoss 2020-04-14 11:16:45.558 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig transport.threadFactory.bossThreadSize is error or timeout,return defaultValue 1 2020-04-14 11:16:45.606 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig transport.threadFactory.workerThreadPrefix is error or timeout,return defaultValue NettyServerNIOWorker 2020-04-14 11:16:45.611 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig store.file.dir is error or timeout,return defaultValue sessionStore 2020-04-14 11:16:45.614 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig store.file.sessionReloadReadSize is error or timeout,return defaultValue 100 2020-04-14 11:16:45.625 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig store.file.file-write-buffer-cache-size is error or timeout,return defaultValue 16384 2020-04-14 11:16:45.627 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig store.file.flush-disk-mode is error or timeout,return defaultValue null 2020-04-14 11:16:45.630 INFO [main]io.seata.common.loader.EnhancedServiceLoader.loadFile:247 -load TransactionStoreManager[FILE] extension by class[io.seata.server.store.file.FileTransactionStoreManager] 2020-04-14 11:16:45.630 INFO [main]io.seata.common.loader.EnhancedServiceLoader.loadFile:247 -load SessionManager[FILE] extension by class[io.seata.server.session.file.FileBasedSessionManager] 2020-04-14 11:16:45.637 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig server.recovery.committingRetryPeriod is error or timeout,return defaultValue 1000 2020-04-14 11:16:45.638 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig server.recovery.asynCommittingRetryPeriod is error or timeout,return defaultValue 1000 2020-04-14 11:16:45.640 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig server.recovery.rollbackingRetryPeriod is error or timeout,return defaultValue 1000 2020-04-14 11:16:45.641 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig server.recovery.timeoutRetryPeriod is error or timeout,return defaultValue 1000 2020-04-14 11:16:45.642 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig server.undo.logDeletePeriod is error or timeout,return defaultValue 86400000 2020-04-14 11:16:45.646 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig server.maxCommitRetryTimeout is error or timeout,return defaultValue -1ms 2020-04-14 11:16:45.647 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig server.maxRollbackRetryTimeout is error or timeout,return defaultValue -1ms 2020-04-14 11:16:45.649 ERROR[main]io.seata.config.zk.ZookeeperConfiguration.getConfig:120 -getConfig server.rollbackRetryTimeoutUnlockEnable is error or timeout,return defaultValue false 2020-04-14 11:16:45.787 INFO [main]io.seata.core.rpc.netty.RpcServerBootstrap.start:155 -Server started ... 2020-04-14 11:16:45.798 INFO [main]io.seata.common.loader.EnhancedServiceLoader.loadFile:247 -load RegistryProvider[ZK] extension by class[io.seata.discovery.registry.zk.ZookeeperRegistryProvider] 2020-04-14 11:16:45.801 INFO [ZkClient-EventThread-26-10.72.27.60:2181,10.72.27.160:2181,10.72.27.150:2081]org.I0Itec.zkclient.ZkEventThread.run:65 -Starting ZkClient event thread. 2020-04-14 11:16:45.801 INFO [main]org.apache.zookeeper.ZooKeeper.:442 -Initiating client connection, connectString=10.72.27.60:2181,10.72.27.160:2181,10.72.27.150:2081 sessionTimeout=60000 watcher=org.I0Itec.zkclient.ZkClient@65f095f8 2020-04-14 11:16:45.801 INFO [main]org.I0Itec.zkclient.ZkClient.waitForKeeperState:936 -Waiting for keeper state SyncConnected 2020-04-14 11:16:45.805 INFO [main-SendThread(10.72.27.150:2081)]org.apache.zookeeper.ClientCnxn.logStartConnect:1025 -Opening socket connection to server 10.72.27.150/10.72.27.150:2081. Will not attempt to authenticate using SASL (unknown error) 2020-04-14 11:16:45.805 INFO [main-SendThread(10.72.27.150:2081)]org.apache.zookeeper.ClientCnxn.primeConnection:879 -Socket connection established to 10.72.27.150/10.72.27.150:2081, initiating session 2020-04-14 11:16:45.807 INFO [main-SendThread(10.72.27.150:2081)]org.apache.zookeeper.ClientCnxn.onConnected:1299 -Session establishment complete on server 10.72.27.150/10.72.27.150:2081, sessionid = 0x370ae2b5d9b00e4, negotiated timeout = 40000 2020-04-14 11:16:45.807 INFO [main-EventThread]org.I0Itec.zkclient.ZkClient.processStateChanged:713 -zookeeper state changed (SyncConnected) 2020-04-14 11:19:45.709 INFO [UndoLogDelete_1]io.seata.server.coordinator.DefaultCoordinator.undoLogDelete:359 -no active rm channels to delete undo log

希望能在ZookeeperConfiguration类的getConfig中输入读取不到config的异常堆栈信息。

lightClouds917 commented 4 years ago

I will optimize it.

slievrly commented 4 years ago

@luojiachengaccp 1.2.0 resolve the problem.