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

panic at src/mito2/src/memtable/time_series.rs:188:52 #2480

Closed
killme2008 opened this issue Sep 24, 2023 · 2 comments
Closed

panic at src/mito2/src/memtable/time_series.rs:188:52 #2480

killme2008 opened this issue Sep 24, 2023 · 2 comments
Assignees
Labels
C-bug Category Bugs

Comments

@killme2008
Copy link
Contributor

What type of bug is this?

Unexpected error

What subsystems are affected?

Datanode

What happened?

Running the java example more than once

https://docs.greptime.com/user-guide/write-data/sdk-libraries/java

After the first execution, the second execution panic at src/mito2/src/memtable/time_series.rs:188:52

2023-09-24T15:32:18.541899Z ERROR common_telemetry::panic_hook: panicked at src/mito2/src/memtable/time_series.rs:188:52:
called `Result::unwrap()` on an `Err` value: CastType { msg: "Failed to cast value ref Int64(1695569538016) to Timestamp", location: Location { file: "src/datatypes/src/value.rs", line: 959, column: 9 } } backtrace=   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
  20: <unknown>
  21: <unknown>
  22: <unknown>
  23: <unknown>
  24: <unknown>
  25: <unknown>
  26: <unknown>
 panic.file="src/mito2/src/memtable/time_series.rs" panic.line=188 panic.column=52

Then the worker 0 exited:

2023-09-24T15:33:07.130925Z  WARN mito2::worker: Worker 0 is already exited but the running flag is still true
2023-09-24T15:33:07.131683Z ERROR servers::grpc::greptime_handler: Failed to handle request trace_id=0 err.msg=Failed to insert data, source: Failed to handle request for region 4402341478400(1025, 0), source: Worker 0 is stopped, location: src/mito2/src/worker.rs:297:55, location: src/datanode/src/region_server.rs:263:14 err.code=Internal err.source=Failed to insert data, source: Failed to handle request for region 4402341478400(1025, 0), source: Worker 0 is stopped, location: src/mito2/src/worker.rs:297:55, location: src/datanode/src/region_server.rs:263:14 err.source.sources=[Failed to insert data, source: Failed to handle request for region 4402341478400(1025, 0), source: Worker 0 is stopped, location: src/mito2/src/worker.rs:297:55, location: src/datanode/src/region_server.rs:263:14, Failed to handle request for region 4402341478400(1025, 0), source: Worker 0 is stopped, location: src/mito2/src/worker.rs:297:55, location: src/datanode/src/region_server.rs:263:14, Failed to handle request for region 4402341478400(1025, 0), source: Worker 0 is stopped, location: src/mito2/src/worker.rs:297:55, location: src/datanode/src/region_server.rs:263:14, Failed to handle request for region 4402341478400(1025, 0), source: Worker 0 is stopped, location: src/mito2/src/worker.rs:297:55, location: src/datanode/src/region_server.rs:263:14, Failed to handle request for region 4402341478400(1025, 0), source: Worker 0 is stopped, location: src/mito2/src/worker.rs:297:55, location: src/datanode/src/region_server.rs:263:14, Worker 0 is stopped, location: src/mito2/src/worker.rs:297:55]

What operating system did you use?

All system

Relevant log output and stack trace

No response

How can we reproduce the bug?

Run the java write example more than once

https://docs.greptime.com/user-guide/write-data/sdk-libraries/java

@killme2008 killme2008 added the C-bug Category Bugs label Sep 24, 2023
@killme2008
Copy link
Contributor Author

Looks like it's the document issue, it's outdated for v0.4

@evenyag
Copy link
Contributor

evenyag commented Sep 25, 2023

#2460 should fix this.

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

No branches or pull requests

3 participants