Skip to content

KeyStreamOutput freezes after 1 minute #74

@pavelsmolka

Description

@pavelsmolka

When I implement KeyStreamOutput and use it, it freezes after 1 minute:

class DeleteStream implements KeyStreamOutput {

    /** @var Bucket */
    public $bucket;

    public function __construct(Bucket $bucket) {
        $this->bucket = $bucket;
    }

    public function process($key) {
        echo "Deleting key $key\n";
        $this->bucket->delete($key);
    }
}

$bucket = $riak->getBucket('test');
$bucket->getKeyStream(new DeleteStream($bucket));

This example works for approximately 1 minute and then stops printing anything. Also, no more keys are deleted, after 1 minute. Is is possible Riak disconnects the connection and our library does not reconnects?

Metadata

Metadata

Assignees

No one assigned

    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