Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Querying both the Time field and the t1 field triggers a crash bug. #13728

Open
2 tasks done
LingweiKuang opened this issue Oct 11, 2024 · 1 comment
Open
2 tasks done

Comments

@LingweiKuang
Copy link

LingweiKuang commented Oct 11, 2024

Search before asking

  • I searched in the issues and found nothing similar.

Version

1.3.2

Describe the bug and provide the minimal reproduce step

DROP DATABASE root.db0
CREATE DATABASE root.db0

INSERT INTO root.db0(timestamp,t1) VALUES(1724497540136, true)

# query 1 success
SELECT time FROM root.db0
SELECT t1 FROM root.db0

# query 2 error
SELECT time, t1 FROM root.db0

What did you expect to see?

Query 1.1 returns "No Results," while Query 1.2 can retrieve all the data. Query 2 should correctly return all the data.

What did you see instead?

Query 2 reports the following error:

4668710 [main] WARN  o.a.t.transport.TIOStreamTransport - Error closing output stream. 
java.net.SocketException: Socket closed
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
        at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
        at org.apache.thrift.transport.TIOStreamTransport.close(TIOStreamTransport.java:156)
        at org.apache.thrift.transport.TSocket.close(TSocket.java:252)
        at org.apache.iotdb.rpc.TElasticFramedTransport.close(TElasticFramedTransport.java:106)
        at org.apache.iotdb.jdbc.IoTDBConnection.reconnect(IoTDBConnection.java:545)
        at org.apache.iotdb.jdbc.IoTDBStatement.reConnect(IoTDBStatement.java:705)
        at org.apache.iotdb.jdbc.IoTDBStatement.requestStmtId(IoTDBStatement.java:690)
        at org.apache.iotdb.jdbc.IoTDBStatement.<init>(IoTDBStatement.java:93)
        at org.apache.iotdb.jdbc.IoTDBStatement.<init>(IoTDBStatement.java:127)
        at org.apache.iotdb.jdbc.IoTDBConnection.createStatement(IoTDBConnection.java:202)
        at org.apache.iotdb.cli.AbstractCli.executeQuery(AbstractCli.java:549)
        at org.apache.iotdb.cli.AbstractCli.handleInputCmd(AbstractCli.java:435)
        at org.apache.iotdb.cli.AbstractCli.processCommand(AbstractCli.java:811)
        at org.apache.iotdb.cli.Cli.readerReadLine(Cli.java:216)
        at org.apache.iotdb.cli.Cli.receiveCommands(Cli.java:199)
        at org.apache.iotdb.cli.Cli.serve(Cli.java:163)
        at org.apache.iotdb.cli.Cli.runCli(Cli.java:101)
        at org.apache.iotdb.cli.Cli.main(Cli.java:60)
Msg: java.sql.SQLException: org.apache.thrift.transport.TTransportException: Socket is closed by peer.

Anything else?

Dear IoTDB team, I believe this should be classified as a crash bug. If it is a bug, please mark this issue as "bug". Thank you!

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@CritasWang
Copy link
Collaborator

The Time column is always included in IoTDB's regular queries and does not need to be manually specified. Additionally, this error occurred during the runtime when the connection between the client and server was interrupted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants