Hash SNO errors. If the hash is unique, send the error to storj. Storj stores hash. Future SNOs check storj to see if it is known issue and whether SNO should be concerned about said issue

  • Robert Stanfield
  • Jul 17 2019
  • Attach files
  • Robert Stanfield commented
    17 Jul 21:13
    for example if error is let x = "ERROR piecestore protocol: rpc error: code = Canceled desc = context canceled storj.io/storj/storagenode/piecestore.(*Endpoint).Upload:238 storj.io/storj/pkg/pb._Piecestore_Upload_Handler:701 storj.io/storj/pkg/server.logOnErrorStreamInterceptor:23 google.golang.org/grpc.(*Server).processStreamingRPC:1209 google.golang.org/grpc.(*Server).handleStream:1282 google.golang.org/grpc.(*Server).serveStreams.func1.1:717" then let hash = HASH(x); let known_issues = fetchFromStorj(); if (in_array(hash, array_keys(known_issues)) { // log status known as well as any relevant details for // SNO operators if it is a concern } else { // log status unknown and send to storj for evaluation // if error level is implemented, perhaps mark this one critical }