Comments (7)
Sorry, I don't get it. Could you paste the screenshot here?
from nebula-console.
e.g.
E1222 15:08:19.979668 82943 GraphService.cpp:161] Execute query: YIELD 1
E1222 15:08:25.319705 82943 GraphService.cpp:161] Execute query: return 'abc'
I just execute return 'abc'
, but console send YIELD 1
too.
from nebula-console.
e.g.
E1222 15:08:19.979668 82943 GraphService.cpp:161] Execute query: YIELD 1 E1222 15:08:25.319705 82943 GraphService.cpp:161] Execute query: return 'abc'
I just execute
return 'abc'
, but console sendYIELD 1
too.
When get a new connection, nebula-go will call ping()
, which will execute YIELD 1
.
See https://github.com/vesoft-inc/nebula-go/blob/40030d441885c03c34054391e841e8f59443e0af/connection_pool.go#L149.
nebula-cpp also did so:
https://github.com/vesoft-inc/nebula-cpp/blob/e34071fe7bfb68e2012c94fcd03be4707216c45a/src/client/ConnectionPool.cpp#L63
bool Connection::isOpen() { return ping(); }
void Connection::close() {
if (client_ != nullptr) {
clientLoopThread_->getEventBase()->runImmediatelyOrRunInEventBaseThreadAndWait(
[this]() { delete client_; });
client_ = nullptr;
}
}
bool Connection::ping() {
auto resp = execute(0 /*Only check connection*/, "YIELD 1");
if (resp.errorCode == ErrorCode::E_RPC_FAILURE || resp.errorCode == ErrorCode::E_DISCONNECTED) {
from nebula-console.
I know ping, But nebula-console will send ping when user send query not just when connecting.
from nebula-console.
But console just uses the nebula-go's interface session.execute
, it doesn't use ping
.
from nebula-console.
Which version of server do you use? I couldn't find this line GraphService.cpp:161] Execute query:
in the code.
from nebula-console.
Which version of server do you use? I couldn't find this line
GraphService.cpp:161] Execute query:
in the code.
That's code I added to print the query, you could add too.
from nebula-console.
Related Issues (20)
- What is the problem with installing console errors? HOT 27
- there is no x86 version release for nebula-console HOT 6
- add arm64 docker build HOT 3
- log into nebula without a password HOT 1
- profile/explain via -e/eval with issues HOT 2
- keep session alive(not idle) or add session-respawn when expired
- Invalid graphviz string format when profiling some complex query
- docker image for arm64 HOT 2
- Display result vertically
- console quit with searching ālā and enter button HOT 1
- do we need so many command in console?
- send keepalive package
- Support Ctrl+C to kill current session
- When there are spaces before or after the quit or exit commands, the console does not exit as expected
- The unit of timeout argument should be millisecond not second
- servername is supported when tls is enabled
- version display? ? ?
- The profiling data of the Travers operator is shown as empty
- Can nebula support '--help' function? HOT 3
- Multi-line / New Lines in NGQL statements cause syntax errors HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nebula-console.