can't use client to query data from a follower node
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 25.1k
- Forks
- 5k
- Avg merge
- 4d 59m
- Merged PRs (30d)
- 7
Description
Ubuntu系统,三个服务器分别为tdengine01、tdengine02和tdengine03
/etc/hosts中配置如下:
192.168.1.190 tdengine00
192.168.1.191 tdengine01
192.168.1.192 tdengine02
/etc/taos/taos.cfg下配置如下:
############### 1. Cluster End point ############################
The end point of the first dnode in the cluster to be connected to when this dnode or the CLI utility is started
firstEp tdengine02:6030
The end point of the second dnode to be connected to if the firstEp is not available
secondEp tdengine01:6030
############### 2. Configuration Parameters of current dnode #####
The FQDN of the host on which this dnode will be started. It can be IP address
fqdn tdengine02
启动服务后三台服务器中均能查询到数据(直接再服务器终端中进行数据查询):
taos> show databases;
name |
information_schema |
performance_schema |
log |
now_tech |
Query OK, 4 row(s) in set (0.004447s)
其中now_tech为我新增的数据库
然而,当我通过Windows的TDengine-client登录服务器查询数据时,只有做为主服务器的tdengine02上能查询到数据,其它从服务器上均无法查询到数据,请问这是BUG还是配置错误?
主服务器上:
从服务器上:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the reported /etc/hosts and /etc/taos/taos.cfg settings, especially firstEp, secondEp, and fqdn, then compare how TDengine-client connects to tdengine02 versus tdengine01 and tdengine03. Reproduce the show databases query from the Windows client and determine whether the differing results indicate a configuration error or a client/database bug.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql
- Domain
- databases, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100