Skip to content
Snippets Groups Projects

feature: new lua api: whoami, peer_info

Merged Yaroslav Dynnikov requested to merge remove-is-ready-flag into master
All threads resolved!

Example:

tarantool> picolib.whoami()
---
- raft_id: 1
  cluster_id: demo
  instance_id: i1
...

tarantool> picolib.peer_info("i1")
---
- raft_id: 1
  instance_id: i1
  instance_uuid: 68d4a766-4144-3248-aeb4-e212356716e4
  replicaset_uuid: e0df68c5-e7f9-395f-86b3-30ad9e1b7b07
  replicaset_id: r1
  advertise_address: localhost:3301
  target_grade: Online
  current_grade: Online
...
Edited by Yaroslav Dynnikov

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Yaroslav Dynnikov marked this merge request as draft

    marked this merge request as draft

  • Yaroslav Dynnikov added 16 commits

    added 16 commits

    Compare with previous version

  • Yaroslav Dynnikov resolved all threads

    resolved all threads

  • added 2 commits

    • 387052d2 - feature: new lua api: whoami, peer_info
    • 65f4fca7 - refactor: replace is_ready flag with grade checking

    Compare with previous version

  • added 2 commits

    • 4cc2ad0f - feature: new lua api: whoami, peer_info
    • 8b07e6bf - refactor: replace is_ready flag with grade checking

    Compare with previous version

  • added 2 commits

    • 529d1dde - feature: new lua api: whoami, peer_info
    • c53b0b62 - refactor: replace is_ready flag with grade checking

    Compare with previous version

  • Author Maintainer

    История получилась такая. Я переделал апишку на tlua::Throw, потом решил дописать тесты на незабутстрапленный инстанс. Увидел неконсистентность с другими функциями picolib.*, и переделал эксепшены на return nil, err)))

    Edited by Yaroslav Dynnikov
  • Yaroslav Dynnikov marked this merge request as ready

    marked this merge request as ready

  • added 2 commits

    • 3c922708 - feature: new lua api: whoami, peer_info
    • 8b4b4ba8 - refactor: replace is_ready flag with grade checking

    Compare with previous version

  • Georgy Moshkin
  • mentioned in issue #150 (closed)

  • Yaroslav Dynnikov resolved all threads

    resolved all threads

  • Please register or sign in to reply
    Loading