View Issue Details

IDProjectCategoryView StatusLast Update
0002585SymmetricDSBugpublic2016-05-17 13:01
ReportermmichalekAssigned Tommichalek 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.7.32 
Target Version3.7.33Fixed in Version3.7.33 
Summary0002585: C Client doesn't populate failure code on RemoteNodeStatus
DescriptionIt's difficult to get details about a push or pull right now. This fix/improvement properly sets the failure flag, status code, and adds a failureMessage to the RemoteNodeStatus when using the push and pull services.

Here's an example of determining if a node is offline after attempting a pull.

        SymRemoteNodeStatuses *statuses = this->engine->pull(this->engine);
        if (statuses->nodes != NULL && statuses->nodes->size > 0) {
            int i;
            for (i = 0; i < statuses->nodes->size; ++i) {
                SymRemoteNodeStatus *status = (SymRemoteNodeStatus*)statuses->nodes->get(statuses->nodes, i);
                if (status->failed && status->status == SYM_REMOTE_NODE_STATUS_OFFLINE) {
                    printf("Node %s is offline. Message: %s\n", status->nodeId, status->failureMessage);
                }
            }
        }
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

SymmetricDS: 3.7 78783916

2016-05-03 00:29:45

mmichalek

Details Diff
0002585: C Client doesn't populate failure code on RemoteNodeStatus
0002585
mod - symmetric-client-clib/inc/model/RemoteNodeStatus.h Diff File
mod - symmetric-client-clib/inc/transport/IncomingTransport.h Diff File
mod - symmetric-client-clib/inc/transport/OutgoingTransport.h Diff File
mod - symmetric-client-clib/inc/transport/http/HttpIncomingTransport.h Diff File
mod - symmetric-client-clib/inc/transport/http/HttpTransportManager.h Diff File
mod - symmetric-client-clib/src/service/DataExtractorService.c Diff File
mod - symmetric-client-clib/src/service/DataLoaderService.c Diff File
mod - symmetric-client-clib/src/transport/file/FileIncomingTransport.c Diff File
mod - symmetric-client-clib/src/transport/http/HttpIncomingTransport.c Diff File
mod - symmetric-client-clib/src/transport/http/HttpOutgoingTransport.c Diff File
mod - symmetric-client-clib/src/transport/http/HttpTransportManager.c Diff File

Issue History

Date Modified Username Field Change
2016-05-03 00:22 mmichalek New Issue
2016-05-03 00:22 mmichalek Status new => assigned
2016-05-03 00:22 mmichalek Assigned To => mmichalek
2016-05-03 00:30 mmichalek Status assigned => resolved
2016-05-03 00:30 mmichalek Resolution open => fixed
2016-05-03 00:30 mmichalek Fixed in Version => 3.7.33
2016-05-03 01:00 mmichalek Changeset attached => SymmetricDS 3.7 78783916
2016-05-17 13:01 chenson Status resolved => closed