Skip to content

Shutdown issue with badgerDS - keeps reading from the disk #7283

@RubenKelevra

Description

@RubenKelevra

Version information:

go-ipfs version: 0.6.0-dev
Repo version: 9
System version: amd64/linux
Golang version: go1.14.2

Commit 591c541

Description:

  • I created a fresh datastore with ipfs init --profile=badgerds.
  • Started the daemon
  • I pinned QmdB8kVBeWvLKyZrvxAAzrVfkLZC3zqcu6o7twLAqUcC67
  • IPFS run for some hours with no user input

Then I tried to shut down the daemon. Unexpectedly IPFS started to read on the disk, while nothing was written (according to iotop for minutes):

Screenshot_20200506_212433

The following experimental features was activated at the time in the config:

  • Filestore
  • URLStore
  • QUIC

Datastore config:

"Datastore": {
    "BloomFilterSize": 0,
    "GCPeriod": "1h",
    "HashOnRead": false,
    "Spec": {
      "child": {
        "path": "badgerds",
        "syncWrites": false,
        "truncate": true,
        "type": "badgerds"
      },
      "prefix": "badger.datastore",
      "type": "measure"
    },
    "StorageGCWatermark": 90,
    "StorageMax": "1000GB"
  },
  • The IPFS binary was set cap_net_bind_service=+ep to be able to run on port 443.
  • The environment variable LIBP2P_SWARM_FD_LIMIT was set to 1000.
  • IPFS was called with /usr/bin/ipfs daemon --init --migrate

I fetched the debug data and killed it with SIGABRT to get the stack trace - both are attached.

stacktrace.txt
debug.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: Good to have, but can wait until someone steps upexp/intermediatePrior experience is likely helpfulkind/bugA bug in existing code (including security flaws)status/acceptedThis issue has been acceptedtopic/badgerTopic badgertopic/datastoreTopic datastore

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions